Skip to main content
Incomplete provenance

1 of 2 files were uploaded without provenance metadata. View details.

Canonical Hash

Deterministic hashing for arbitrary Python objects.

Provides utilities for creating stable, deterministic hashes of Python objects, essential for cache key computation, data versioning, and reproducibility.

Usage

from scicanonicalhash import canonical_hash, generate_record_id

# Hash any supported Python object
h = canonical_hash(42)
h = canonical_hash([1, 2, 3])
h = canonical_hash({"key": "value"})

# Generates a 16-character hex string (first 64 bits of SHA-256)
assert len(h) == 16
assert canonical_hash(42) == canonical_hash(42)  # Deterministic

Supported Types

  1. JSON-serializable primitives (None, bool, int, float, str)
  2. numpy ndarrays (via shape + dtype + raw bytes)
  3. pandas DataFrames (via columns + index + array serialization)
  4. pandas Series (via name + array serialization)
  5. Dicts (sorted keys, recursive serialization)
  6. Lists/tuples (order-preserving, recursive serialization)

generate_record_id

Generate a unique record ID from type, schema version, content hash, and metadata:

rid = generate_record_id("MyData", 1, "abc123", {"subject": 1})

Metadata

Release files for scicanonicalhash 0.1.42

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

Incomplete provenance

1 of 2 files were uploaded without provenance metadata.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for scicanonicalhash 0.1.42
File Size Uploaded Provenance
scicanonicalhash-0.1.42.tar.gz 7.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for scicanonicalhash 0.1.42
File Interpreter ABI Platform
scicanonicalhash-0.1.42-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / scicanonicalhash-0.1.42.tar.gz

Incomplete provenance

This file belongs to a release with incomplete provenance: while other files in this release have provenance metadata, this file does not.

We recommend further investigation before installing this file. View details.

Download URL scicanonicalhash-0.1.42.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
172e33420900dc44fc2adc0d12d3104cc013165b5dc8a1727e4dc6e149ef6694
BLAKE2b-256 checksum
How to use checksums
247b15144fc99b34a2c64eaea6751c0c56c988d7722c55d71e015484f1a9ded5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.11

Release files / scicanonicalhash-0.1.42-py3-none-any.whl

Incomplete provenance

This file belongs to a release with incomplete provenance: while this file has provenance metadata, other files in this release do not.

We recommend further investigation before installing this file. View details.

Download URL scicanonicalhash-0.1.42-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f44863c4296f60ad773af0739903ecd46188bce1f253fe22f658bf07fdd8b5f2
BLAKE2b-256 checksum
How to use checksums
ccfd592e8674e8d71666aa8075fb13965a9e048dff012d4daac25fff5632b80f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for scicanonicalhash 0.1.42

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.

Incomplete provenance

1 of 2 files were uploaded without provenance metadata.

Files with provenance 1 / 2
Files without provenance 1 / 2
Select from 2 files

Attestations for scicanonicalhash-0.1.42.tar.gz

This file was uploaded without 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.

Release history Release notifications | RSS feed

This release
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