Skip to content

samrushing/zstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zstream

streaming/generator interface to zlib in Cython

installing

Make sure you have Cython installed.

To build::

$ python setup.py build

To install:

# python setup.py install

usage

to compress::

>>> f0 = open ('/tmp/test.z', 'wb')
>>> for block in zstream.compress (file_gen ('test.txt'), size=1024):
>>>     f0.write (block)
>>> f0.close()

to uncompress::

>>> f0 = open ('/tmp/test.txt', 'wb')
>>> for block in zstream.uncompress (file_gen ('/tmp/test.z'), size=1024):
>>>     f0.write (block)
>>> f0.close()

About

streaming/generator interface to zlib in Cython

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages