Skip to content

vadmium/pyflate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Copyright 2006--2007-01-21 Paul Sladen

  https://www.paul.sladen.org/projects/compression/

You may use and distribute this code and documentation under any
DFSG-compatible license (eg. BSD, GNU GPLv2).

Stand-alone pure-Python DEFLATE (gzip) and bzip2 decoder/decompressor,
'pyflate'.

Example:

  $ ./pyflate.py foo.bz2
  ...
  $ ls -l out

  $ ./pyflate.py bar.gz
  ...
  $ ls -l out

For the moment, if the decoding is apparently successful, then output
is written (in one go) to a file called 'out', in the current directory
(yes, it'll overwrite whatever was there before...).

The source code maybe useful for learning about the DEFLATE and Bzip2
algorithms.  If you look through you'll see the huge number of 'print'
statements in the source code, feel free to uncomment some of them!

As a result of this learning experience, I've been able to update the
Wikipedia pages with useful technical descriptions:

  https://en.wikipedia.org/wiki/bzip2
  https://en.wikipedia.org/wiki/DEFLATE

Perhaps you could check and see if they could be improved!

	-Paul Sladen, 2007-01-22
-- 
Southampton, GB

About

Python 3 port of @sladen’s Deflate (gzip) and bzip2 decoder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%