tstring-core
Shared Python compatibility layer for the Rust-first JSON, TOML, and YAML t-string backends.
Requires Python 3.14+.
This package depends on tstring-bindings, a native PyO3 extension. On
supported platforms, install from prebuilt wheels. Other environments require a
local Rust 1.94.0 toolchain build.
What It Provides
- shared error categories re-exported from the Rust bindings
- compatibility helper APIs for tokenization, spans, diagnostics, and slots
- a stable import surface for the Python wrapper packages and tests
What It Does Not Provide
- JSON grammar rules
- TOML grammar rules
- YAML grammar rules
- backend-specific representability policies
Those responsibilities now live in the Rust workspace under rust/.
Runtime Contract
Each backend exposed through the Python packages follows the same high-level pipeline:
- validate that the input is a PEP 750
Template - pass the template into the shared PyO3 bindings
- parse backend-specific structure in Rust
- run semantic checks in Rust
- render text and backend-native Python data
- materialize backend-native data from the same parsed/rendered structure
The shared layer is also responsible for keeping the Python-facing exception and typing surface stable across the JSON, TOML, and YAML wrapper packages.
See also
Metadata
Release files for tstring-core 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tstring_core-0.2.2.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tstring_core-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.7 kB
Release files / tstring_core-0.2.2.tar.gz
| Download URL | tstring_core-0.2.2.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5696a2c3e1f383869a9afa69daa7330f01ece15e2f62cf2586661b9e85030519
|
|
BLAKE2b-256 checksum How to use checksums |
0543ac6d506fef8d3cf5b952c87b7eb9e51543ec1123e1fcb366ba3694e69c1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 2, 2026.
Transparency logRelease files / tstring_core-0.2.2-py3-none-any.whl
| Download URL | tstring_core-0.2.2-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
303cdd5d9bec8be494695a11a444873f3f2a53e45a9771b0b95cabc578983732
|
|
BLAKE2b-256 checksum How to use checksums |
188260da3cf9ef3884af5f45195aafb1b51ba7888b94ee8fbc8d2a426fcd03f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 2, 2026.
Transparency log