Skip to main content

xxHash Bindings for Python

Project description

xxhash is a Python binding for the xxHash library by Yann Collet.

Installation

$ pip install xxhash

Synopsis

>>> import xxhash
>>> xxhash.VERSION
'0.0.1'
>>> xxhash.XXHASH_VERSION
'r35'
>>> xxhash.xxh32('a')
1426945110
>>> xxhash.xxh32('a') == xxhash.xxh32('a', 0) == xxhash.xxh32('a', seed=0)
True
>>> xxhash.xxh64('a')
15154266338359012955L
>>> xxhash.xxh64('a') == xxhash.xxh64('a', 0) == xxhash.xxh64('a', seed=0)
True

Project details


Download files

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

Source Distributions

xxhash-0.0.1.zip (14.7 kB view hashes)

Uploaded Source

xxhash-0.0.1.tar.gz (10.6 kB view hashes)

Uploaded Source

xxhash-0.0.1.tar.bz2 (10.1 kB view hashes)

Uploaded Source

Supported by

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