hayahash for Python
CPython C extension over hayahash.h: a small, fast,
portable 64-bit non-cryptographic hash for targets with ordinary
wrapping 64×64→64 multiply.
from hayahash import hayahash64
h = hayahash64(b"hello world", 0)
h = hayahash64(data, seed=0x9E3779B97F4A7C15)
Requires CPython 3.9+. Package version tracks the shared algorithm version across every language port in this repository.
python -m pip install -e ".[test]"
pytest
The extension compiles the reference header directly (not a reimplementation).
When building from this monorepo, ../hayahash.h is preferred; the copy
under include/ is kept for sdists and checked against the root header in CI.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hayahash-0.4.2.tar.gz.
File metadata
- Download URL: hayahash-0.4.2.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
534014284d84d065e46ebb701011af6ebc1d9d24a286f0f1b0b55da5aec2398a
|
|
| MD5 |
d8863ff778837a5a09422762a05082a2
|
|
| BLAKE2b-256 |
39c5451eca23c289cafc46f13f1ff8c9a689d8788c1f96755de6cc87ba205927
|
Provenance
The following attestation bundles were made for hayahash-0.4.2.tar.gz:
Publisher:
release.yml on thevilledev/hayahash
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hayahash-0.4.2.tar.gz -
Subject digest:
534014284d84d065e46ebb701011af6ebc1d9d24a286f0f1b0b55da5aec2398a - Sigstore transparency entry: 2313550531
- Sigstore integration time:
-
Permalink:
thevilledev/hayahash@17dfa7c027f4084125b6d30e061bc84bddff2c16 -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/thevilledev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@17dfa7c027f4084125b6d30e061bc84bddff2c16 -
Trigger Event:
push
-
Statement type: