Skip to main content

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

hayahash-0.4.2.tar.gz (19.6 kB view details)

Uploaded Source

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

Hashes for hayahash-0.4.2.tar.gz
Algorithm Hash digest
SHA256 534014284d84d065e46ebb701011af6ebc1d9d24a286f0f1b0b55da5aec2398a
MD5 d8863ff778837a5a09422762a05082a2
BLAKE2b-256 39c5451eca23c289cafc46f13f1ff8c9a689d8788c1f96755de6cc87ba205927

See more details on using hashes here.

Provenance

The following attestation bundles were made for hayahash-0.4.2.tar.gz:

Publisher: release.yml on thevilledev/hayahash

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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