skip to navigation
skip to content

ctypes-snappy 1.03

Python ctypes interface to Google's libsnappy compression.

This module provides an interface to the lightweight snappy compression library:

http://code.google.com/p/snappy/

As it uses ctypes to provide a Python interface, rather then the Python API, it is suitable for use with PyPy. If you don’t need to use PyPy, then you will likely be just as happy using the python-snappy library:

http://pypi.python.org/pypi/python-snappy

The usage is a straightfoward copy of the gzip package:

import snappy
compressed = snappy.compress(‘abba’ * 100)
uncompressed = snappy.uncompress(compressed)
 
File Type Py Version Uploaded on Size
ctypes-snappy-1.03.linux-x86_64.tar.gz (md5)
built for Linux-3.2.0-26-generic-x86_64-with-glibc2.7
"dumb" binary any 2012-07-23 2KB