murmurhash3
- Version:
1.0.3
- Download:
- Source:
- Keywords:
hash, MurmurHash
murmurhash3 is a Python library for MurmurHash (MurmurHash3), a set of fast and robust hash functions. This library is a Python extension module written in C.
Supports Python >= 2.7
Usage
Install:
pip install splitmmh3
Usage:
pip install splitmmh3
>>> import splitmmh3 as mmh3
>>> mmh3.hash('foo') # 32-bit signed int
-156908512
>>> mmh3.hash64('foo') # two 64-bit signed ints (the 128-bit hash sliced in half)
(-2129773440516405919, 9128664383759220103)
>>> mmh3.hash128('foo') # 128-bit signed int
168394135621993849475852668931176482145
>>> mmh3.hash_bytes('foo') # 128-bit value as bytes
'aE\xf5\x01W\x86q\xe2\x87}\xba+\xe4\x87\xaf~'
>>> mmh3.hash('foo', 42) # uses 42 for its seed
-1322301282
License
Public Domain
Metadata
Release files for splitmmh3 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| splitmmh3-1.0.3.tar.gz | 12.3 kB | Without provenance | Details |
Release files / splitmmh3-1.0.3.tar.gz
| Download URL | splitmmh3-1.0.3.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3fbd4e7971a3686888438c3b8a7cfd718aba1340059bb3bcd38c60e30a4f499
|
|
BLAKE2b-256 checksum How to use checksums |
8f16f185a0b07178b0b3e46440b551d4379c749d54cfbfc876c5eb0a44fa2aa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.10
|
Security for splitmmh3 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.