Skip to main content

This library provides a deterministic hash for Python objects. hash will give different results each process invocation, in order to thwart denial-of-service attacks based on intentionally triggering hash collisions (see -R in Python’s CLI options). Even setting PYTHONHASHSEED is not enough, because the hash can still use non-deterministic data such as pointer-addresses. By default, this package uses the xxhash algorithm, which is the fastest non-cryptographic hash I know of.

>>> from charmonium.determ_hash import determ_hash
>>> determ_hash(b"hello world")
141361478936837800319111455324245712876

Metadata

Release files for charmonium.determ-hash 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for charmonium.determ-hash 0.2.2
File Size Uploaded Provenance Actions
charmonium.determ_hash-0.2.2.tar.gz 5.4 kB Without provenance Details for charmonium.determ_hash-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for charmonium.determ-hash 0.2.2
File Interpreter ABI Platform Actions
charmonium.determ_hash-0.2.2-py3-none-any.whl Python 3 none any Details for charmonium.determ_hash-0.2.2-py3-none-any.whl

Total release size: 10.5 kB

Release files / charmonium.determ_hash-0.2.2.tar.gz

Download URL charmonium.determ_hash-0.2.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
81197d7988afde9014feb33d4df36a214e9d40804c448d9b5ee20e4797199c0f
BLAKE2b-256 checksum
How to use checksums
f4d8f86aa615485ee61d546fe4502371497425d662ef3ebeb85d2741a2258a5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.10 Linux/5.13.0-30-generic

Release files / charmonium.determ_hash-0.2.2-py3-none-any.whl

Download URL charmonium.determ_hash-0.2.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31f739ff3f35d4cec8c81dfb2104b722517856c12fb77a70e08b43395ab67b42
BLAKE2b-256 checksum
How to use checksums
538448de975e9abcdb22a294276d2ad25f803700a1e41d5ece0f3b35b7219f7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.10 Linux/5.13.0-30-generic

Security for charmonium.determ-hash 0.2.2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page