implement the proposed snappy framing format #14

merged 10 commits into from Feb 19, 2013


None yet
2 participants

jtolds commented Nov 8, 2012


7f304a6 implements the framing format in the following manner:

  • first, it makes the root snappy module a python module instead of a compiled module, and renames the compiled module to _snappy. this enables a bunch of easy python language modifications and extensions
  • second, it exports some c code for the required crc format in the snappy framing format (crc-32c). this turned out not to already be in the python standard library, unfortunately, but the code was generated by the excellent pycrc (
  • third, it implements the actual snappy stream format as a pair of stream compressor/decompressor objects in straight python that match the zlib compressobj interface.
  • last, it merges the python 3 and python 2 tests to work under both python 3 and python 2

the other changes are luckily less monolithic.

this pull request should effectively close


andrix commented Feb 19, 2013

Sweeeet changes! I've just finished to review them, now I'm testing them. I'll try to get your PR on master today. I hope to release it too.

@andrix andrix merged commit 206168f into andrix:master Feb 19, 2013


andrix commented Feb 19, 2013

@jtolds just merged. Changes were OK and with tons of new functionallity. Thanks a lot for bringing them!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment