Skip to main content

A simple Cython wrapper for the snappy compression library

Project description

A simple Cython wrapper for the snappy compression library

Installation

Usage

Deadly simple:

import snappyx
s = "Oh please compress me babe!..." * 10
c = snappyx.compress(s)
print("Raw size: {}\nCompressed size: {}\n".format(len(s), len(c)))
d = snappyx.decompress(c)
print("Checking: ", s == d)

That’s all.

History

v0.5.1

  • ‘nogil’ around compress/decompress operations

v0.5

  • Initial commit on github (based on snappy 1.1.3)

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page