Files
typeshed/builtins/2.7/zlib.pyi
2015-09-30 09:59:44 -07:00

31 lines
1.0 KiB
Python

# Stubs for zlib (Python 2.7)
#
# NOTE: This stub was automatically generated by stubgen.
DEFLATED = ... # type: int
DEF_MEM_LEVEL = ... # type: int
MAX_WBITS = ... # type: int
ZLIB_VERSION = ... # type: str
Z_BEST_COMPRESSION = ... # type: int
Z_BEST_SPEED = ... # type: int
Z_DEFAULT_COMPRESSION = ... # type: int
Z_DEFAULT_STRATEGY = ... # type: int
Z_FILTERED = ... # type: int
Z_FINISH = ... # type: int
Z_FULL_FLUSH = ... # type: int
Z_HUFFMAN_ONLY = ... # type: int
Z_NO_FLUSH = ... # type: int
Z_SYNC_FLUSH = ... # type: int
def adler32(data: str, value: int = ...) -> int: ...
def compress(data: str, level: int = ...) -> str: ...
# TODO: compressobj() returns a compress object
def compressobj(level: int = ..., method: int = ..., wbits: int = ..., memlevel: int = ...,
strategy: int = ...): ...
def crc32(data: str, value: int = ...) -> int: ...
def decompress(data: str, wbits: int = ..., bufsize: int = ...) -> str: ...
# TODO: decompressobj() returns a decompress object
def decompressobj(wbits: int = ...): ...
class error(Exception): ...