Logo Search packages:      
Sourcecode: calibre version File versions

calibre::utils::zipfile Namespace Reference


Detailed Description

Read and write ZIP files. Modified by Kovid Goyal to support replacing files in 
a zip archive.


Classes

class  _ZipDecrypter
class  BadZipfile
class  LargeZipFile
class  PyZipFile
class  ZipExtFile
class  ZipFile
class  ZipInfo

Functions

def _EndRecData
def _EndRecData64
def is_zipfile
def main
def safe_replace

Variables

list __all__
int _CD64_CREATE_VERSION = 2
int _CD64_DIRECTORY_RECSIZE = 1
int _CD64_DIRECTORY_SIZE = 8
int _CD64_DISK_NUMBER = 4
int _CD64_DISK_NUMBER_START = 5
int _CD64_EXTRACT_VERSION = 3
int _CD64_NUMBER_ENTRIES_THIS_DISK = 6
int _CD64_NUMBER_ENTRIES_TOTAL = 7
int _CD64_OFFSET_START_CENTDIR = 9
int _CD64_SIGNATURE = 0
int _CD_COMMENT_LENGTH = 14
int _CD_COMPRESS_TYPE = 6
int _CD_COMPRESSED_SIZE = 10
int _CD_CRC = 9
int _CD_CREATE_SYSTEM = 2
int _CD_CREATE_VERSION = 1
int _CD_DATE = 8
int _CD_DISK_NUMBER_START = 15
int _CD_EXTERNAL_FILE_ATTRIBUTES = 17
int _CD_EXTRA_FIELD_LENGTH = 13
int _CD_EXTRACT_SYSTEM = 4
int _CD_EXTRACT_VERSION = 3
int _CD_FILENAME_LENGTH = 12
int _CD_FLAG_BITS = 5
int _CD_INTERNAL_FILE_ATTRIBUTES = 16
int _CD_LOCAL_HEADER_OFFSET = 18
int _CD_SIGNATURE = 0
int _CD_TIME = 7
int _CD_UNCOMPRESSED_SIZE = 11
int _ECD_COMMENT = 8
int _ECD_COMMENT_SIZE = 7
int _ECD_DISK_NUMBER = 1
int _ECD_DISK_START = 2
int _ECD_ENTRIES_THIS_DISK = 3
int _ECD_ENTRIES_TOTAL = 4
int _ECD_LOCATION = 9
int _ECD_OFFSET = 6
int _ECD_SIGNATURE = 0
int _ECD_SIZE = 5
int _FH_COMPRESSED_SIZE = 8
int _FH_COMPRESSION_METHOD = 4
int _FH_CRC = 7
int _FH_EXTRA_FIELD_LENGTH = 11
int _FH_EXTRACT_SYSTEM = 2
int _FH_EXTRACT_VERSION = 1
int _FH_FILENAME_LENGTH = 10
int _FH_GENERAL_PURPOSE_FLAG_BITS = 3
int _FH_LAST_MOD_DATE = 6
int _FH_LAST_MOD_TIME = 5
int _FH_SIGNATURE = 0
int _FH_UNCOMPRESSED_SIZE = 9
 crc32 = zlib.crc32
 error = BadZipfile
tuple sizeCentralDir = struct.calcsize(structCentralDir)
tuple sizeEndCentDir = struct.calcsize(structEndArchive)
tuple sizeEndCentDir64 = struct.calcsize(structEndArchive64)
tuple sizeEndCentDir64Locator = struct.calcsize(structEndArchive64Locator)
tuple sizeFileHeader = struct.calcsize(structFileHeader)
string stringCentralDir = "PK\001\002"
string stringEndArchive = "PK\005\006"
string stringEndArchive64 = "PK\x06\x06"
string stringEndArchive64Locator = "PK\x06\x07"
string stringFileHeader = "PK\003\004"
string structCentralDir = "<4s4B4HL2L5H2L"
string structEndArchive = "<4s4H2LH"
string structEndArchive64 = "<4sQ2H2L4Q"
string structEndArchive64Locator = "<4sLQL"
string structFileHeader = "<4s2B4HL2L2H"
tuple ZIP64_LIMIT = (1 << 31)
int ZIP_DEFLATED = 8
int ZIP_FILECOUNT_LIMIT = 1
tuple ZIP_MAX_COMMENT = (1 << 16)
int ZIP_STORED = 0
 zlib = None


Generated by  Doxygen 1.6.0   Back to index