Skip to main content

secryst — Python crystal

Secryst is coined from scrying + crystal: gazing into an opaque script to reveal its hidden reading. This package is the Python crystal.

The Python crystal — reference implementation of IMF v1 model zips and the models.yaml index (the interscript-ml contract), the phonological layer of Interscript. The Ruby (secryst gem) and TypeScript (npm i secryst) crystals are diffed against this one on shared golden sets. This crystal owns golden generation and numerical adjudication for the family.

Home repo: https://github.com/secryst/secryst-py (this copy in interscript-ml/runtime is the frozen origin; the package now lives there).

from secryst import Model

model = Model.load("khm-latn-1.0")        # id: index resolve -> download
                                          # -> sha256-verify -> cache -> load
model.translate("ភាសា")                   # -> "pheasaea"
model.id                                   # "khm-latn-1.0"

model = Model.load("khm-latn-1.0.zip")    # or: a local zip path directly
  • Byte-level only: the canonical ByT5 table (byte b → id b+3, trailing EOS) — no vocab files, no per-model tokenization code.
  • Greedy KV-cache decode when the zip ships decoder-kv.onnx (default), plain full-recompute fallback otherwise.
  • Every .onnx member is sha256-verified against metadata.yaml before the session is created; corrupt downloads fail loudly.
  • Dynamic fetch per the models.yaml contract (shared with the Ruby and TypeScript runtimes): resolve id -> channel URL, download to temp, verify whole-file sha256 against the index, atomically install into ~/.cache/secryst/models/<id>/. Overrides: SECRYST_INDEX (URL or path), SECRYST_CACHE.

Install: pip install secryst (or pip install -e ".[dev]" from the repo).

Tests: python -m pytest runtime/tests — tiny-graph zips, no torch needed. The end-to-end golden test runs when SECRYST_E2E_ZIP points at a real zip (e.g. models/khm-latn/khm-latn-1.0-fp32.zip) and asserts byte-identical outputs against golden/khm-latn-100.jsonl.

License: BSD-3-Clause.

Metadata

Release files for secryst 0.2.1

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

Source distribution (sdist)

Source distribution for secryst 0.2.1
File Size Uploaded Provenance Actions
secryst-0.2.1.tar.gz 15.4 kB With provenance Details for secryst-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 26.9 kB

Release files / secryst-0.2.1.tar.gz

Download URL secryst-0.2.1.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
953f5c7518d44519dcfb3c83c2fe87c0e29296c322f4fc9c00d256ea06e474c8
BLAKE2b-256 checksum
How to use checksums
043e06c15a585685e7218b2dc928e1d3a06771c776823739dce16187095b8da9
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 5, 2026.

Transparency log

Release files / secryst-0.2.1-py3-none-any.whl

Download URL secryst-0.2.1-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b04b6576068edb7d0e9af74b422952ed216b965b7736687d40cc46d6c3c2348
BLAKE2b-256 checksum
How to use checksums
b72e9d2900c1770b6e0fa7cbd32c6cc7a660cda227a6af00109039889df4802c
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 5, 2026.

Transparency log

Security for secryst 0.2.1

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 secryst-0.2.1.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 Oct 5, 2026.

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.

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

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