Skip to main content

Python ctypes interface to Google's libsnappy compression.

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ctypes-snappy-1.03.linux-x86_64.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Dumb Binary any

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page