binhex
index
/usr/local/lib/python2.3/binhex.py

Macintosh binhex compression/decompression.
 
easy interface:
binhex(inputfilename, outputfilename)
hexbin(inputfilename, outputfilename)

 
Modules
       
binascii
os
struct
sys

 
Classes
       
BinHex
exceptions.Exception
Error
FInfo
HexBin
openrsrc

 
class BinHex
     Methods defined here:
__init__(self, (name, finfo, dlen, rlen), ofp)
close(self)
close_data(self)
write(self, data)
write_rsrc(self, data)

 
class Error(exceptions.Exception)
     Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class FInfo
     Methods defined here:
__init__(self)

 
class HexBin
     Methods defined here:
__init__(self, ifp)
close(self)
close_data(self)
read(self, *n)
read_rsrc(self, *n)

 
class openrsrc
     Methods defined here:
__init__(self, *args)
close(self)
read(self, *args)
write(self, *args)

 
Functions
       
binhex(inp, out)
(infilename, outfilename) - Create binhex-encoded copy of a file
getfileinfo(name)
hexbin(inp, out)
(infilename, outfilename) - Decode binhexed file

 
Data
        LINELEN = 64
REASONABLY_LARGE = 32768
RUNCHAR = '\x90'
__all__ = ['binhex', 'hexbin', 'Error']