Skip to main content

Python binding for xxHash

Project description

Build Status Latest Version Downloads Supported Python versions License

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
>>>
>>>
>>> x = xxhash.XXH32(seed=20140805)
>>> x.update('a')
>>> x.digest()
3923507256
>>> x.update('b')
>>> x.update('c')
>>> x.digest()
4042190321
>>>
>>> x = xxhash.XXH64(seed=20140805)
>>> x.digest()
2833816799783501320L
>>> x.update('a')
>>> x.update('b')
>>> x.update('c')
>>> x.digest()
3288515524728323397L

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.1.0.zip (17.0 kB view details)

Uploaded Source

xxhash-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

xxhash-0.1.0.tar.bz2 (12.0 kB view details)

Uploaded Source

File details

Details for the file xxhash-0.1.0.zip.

File metadata

  • Download URL: xxhash-0.1.0.zip
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xxhash-0.1.0.zip
Algorithm Hash digest
SHA256 c1b9c96a914cc9ae4b6adaf754bd4f7fae0e26773ad76acbff329cf01529ae7b
MD5 9c7a65ce94451fed95156e8575465fab
BLAKE2b-256 666d05cd8a8f925a54978bae7dd0e909a254bc4e5d0e3d28f572de0cc0c98eb1

See more details on using hashes here.

File details

Details for the file xxhash-0.1.0.tar.gz.

File metadata

  • Download URL: xxhash-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xxhash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce9927faf4eb3c7e822edcf224923d15958c9c3105b622e723eb92068e16175b
MD5 a2f4ed5ab312896802863a5a5b4fd3c6
BLAKE2b-256 9163358b9d8b73bed333522b0b5a2ddd7aee9a06c0c9222efa36838b432bff29

See more details on using hashes here.

File details

Details for the file xxhash-0.1.0.tar.bz2.

File metadata

  • Download URL: xxhash-0.1.0.tar.bz2
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xxhash-0.1.0.tar.bz2
Algorithm Hash digest
SHA256 8962c3c7f948cc9945c7f73fa2002cd90cae580358db04e3f690c2776f5f128b
MD5 ac4f20981d891b6e671ab5e0c8b1c25a
BLAKE2b-256 6ba5fd53629fdb4fb4d3b5557e224e82d694a56e54d15e21028dde115e1f212b

See more details on using hashes here.

Supported by

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