Skip to main content

Python extension for smhasher hash functions

Project description

python-smhasher is a Python 2.x/3.x wrapper for the SMHasher non-cryptographic hashing library. It currently supports the MurmurHash3 64-/128-bit and x86/x64 variants.

License: MIT License

Usage

>>> import smhasher
>>> [k for k in dir(smhasher) if k[0] == 'm']
['murmur3_x64_128', 'murmur3_x64_64', 'murmur3_x86_128', 'murmur3_x86_64']

>>> smhasher.murmur3_x86_128('hello')
213030289162235495270783145757721615258L

>>> seed = 1138
>>> smhasher.murmur3_x86_128('hello', seed)
94758481705480737162820094006203962724L

Project details


Download files

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

Source Distribution

smhasher-0.150.1.tar.gz (66.8 kB view details)

Uploaded Source

File details

Details for the file smhasher-0.150.1.tar.gz.

File metadata

  • Download URL: smhasher-0.150.1.tar.gz
  • Upload date:
  • Size: 66.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for smhasher-0.150.1.tar.gz
Algorithm Hash digest
SHA256 93cae302ea416ada847d8befe57fda6c7ad5d48bec24eb44e8d55ffa498ef19a
MD5 4fc61f36b141e137dd2d71ecd0167866
BLAKE2b-256 5fb2421c060300f1449646787273ecd7df558f6f8e4caee3d6fbe8b193cd60d4

See more details on using hashes here.

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