Skip to main content

Flamehaven Tensor Canon

"Data is not just numbers; it is a structural covenant."

Flamehaven Tensor Canon is a small library for:

  • Structural validation (shapes and optional dtypes)
  • Distribution drift detection (MMD-based)

PyTorch is required. NumPy support is optional.

Installation

pip install flamehaven-tensor-canon

Enable NumPy support:

pip install flamehaven-tensor-canon[numpy]

Quick start (validation)

import torch
from tensor_canon import validate

spec = "batch channels 224 224"
data = torch.randn(32, 3, 224, 224)

validate(data, spec, key="input_layer")

Drift detection

import torch
from tensor_canon.validator import engine

torch.manual_seed(42)
golden = torch.randn(100, 5)
engine.check_drift("embeddings", golden, register_golden=True)

current = golden + torch.randn_like(golden) * 0.01
drift = engine.check_drift("embeddings", current)
print("drift:", drift)

Development

pip install -e .[dev,numpy]
ruff check .
pytest -q

Docker

docker build -t tensor-canon .
docker run --rm tensor-canon

Release notes and security

  • See CHANGELOG.md for release notes.
  • See SECURITY.md for vulnerability reporting.

License

MIT. See LICENSE.

Metadata

Release files for flamehaven-tensor-canon 0.1.3

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

Source distribution (sdist)

Source distribution for flamehaven-tensor-canon 0.1.3
File Size Uploaded Provenance
flamehaven_tensor_canon-0.1.3.tar.gz 7.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for flamehaven-tensor-canon 0.1.3
File Interpreter ABI Platform
flamehaven_tensor_canon-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 17.4 kB

Release files / flamehaven_tensor_canon-0.1.3.tar.gz

Download URL flamehaven_tensor_canon-0.1.3.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5b3026be4ddb74d1089d89391a91ad14c874561cac8891203e238874a4c90273
BLAKE2b-256 checksum
How to use checksums
95170ca8a24640145052f55ac57bd0af949b1ab959eb45020cb9fa4a14ef8c05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Release files / flamehaven_tensor_canon-0.1.3-py3-none-any.whl

Download URL flamehaven_tensor_canon-0.1.3-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fe29f5732147fa588738dbf1c62491b311abd2933c4b7ee841f8de58db2612e
BLAKE2b-256 checksum
How to use checksums
f26106d2c1718c9383efe83c795a765db72541dbd876c28bc8161e83bf8b843f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 21, 2025.

Transparency log

Security for flamehaven-tensor-canon 0.1.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for flamehaven_tensor_canon-0.1.3.tar.gz

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 Dec 21, 2025.

Transparency log

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

0.1.3 This release

2 release files Full 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