GlitchMuseum Python SDK
The Python SDK runs the shared evaluator through the GlitchMuseum Node CLI. Use Python 3.10 or later and Node 24 or 26. Install the wheel from the GitHub release and install the CLI in your project.
python -m pip install ./glitchmuseum-0.3.0-py3-none-any.whl
npm install --save-exact glitchmuseum@0.3.0
Pass parsed JSON objects to engine.validate, engine.verify or
engine.compare. The returned dictionaries use the same report fields
as Node. Set the CLI path to a trusted installed entry point. Evidence
goes to the local child process over stdin. The SDK needs no external model
or account.
CI conformance
The Python SDK uses the Node CLI's bridge command. When using pytest,
provide the CLI location explicitly and assert the structured result.
import json
from pathlib import Path
from glitchmuseum import GlitchMuseum
def test_recorded_run_has_required_evidence():
engine = GlitchMuseum(Path("node_modules/glitchmuseum/dist/index.js"))
bundle = json.loads(Path("test/bundle.json").read_text(encoding="utf-8"))
observed = json.loads(Path("test/observed.json").read_text(encoding="utf-8"))
report = engine.verify(bundle, observed)
assert report["status"] == "pass", report["counts"]
Generate your observed fixture with trusted hooks. The FastMCP example
shows a local MCP tool error and the recorded handoff evidence the evaluator
expects. Run the SDK's conformance test with python -m unittest discover -s sdk/python/tests
after installing the SDK locally.
Metadata
Release files for glitchmuseum 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| glitchmuseum-0.3.0.tar.gz | 7.4 kB | With provenance | Details for glitchmuseum-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glitchmuseum-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for glitchmuseum-0.3.0-py3-none-any.whl |
Total release size: 15.1 kB
Release files / glitchmuseum-0.3.0.tar.gz
| Download URL | glitchmuseum-0.3.0.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2eeb106216301a4eed0c457063080343ab4bac81e43b05d82ecd47471a9404b
|
|
BLAKE2b-256 checksum How to use checksums |
130e4c4d5afbd95ac231c668eb6824bc1cd4895ef095804e03cad49f8191638b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 4, 2026.
Transparency logRelease files / glitchmuseum-0.3.0-py3-none-any.whl
| Download URL | glitchmuseum-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9e65dc9e1e8583c1813ec141bfc71c0b6898d002ec402e68dd1f782a2b2023c
|
|
BLAKE2b-256 checksum How to use checksums |
ef67f62ef368f1777a12e1661e42e2aa950da93012f31a30ce44fe1edf65f36c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 4, 2026.
Transparency logSecurity for glitchmuseum 0.3.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for glitchmuseum-0.3.0.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 4, 2026.
Transparency logA 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.