zstream

Streaming/generator interface for zlib in Cython
Download

zstream Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Sam Rushing
  • Publisher web site:
  • http://github.com/ironport/

zstream Tags


zstream Description

zstream is a streaming/generator Python interface to zlib in Cython.InstallingMake sure you have Cython installed.To build:: python setup.py buildTo install: python setup.py installUsageto 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()Product's homepage


zstream Related Software