Shared runtime primitives for PEP 750 structural template renderers
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tstring_core-0.2.0.tar.gz.
File metadata
- Download URL: tstring_core-0.2.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0970094c6d40f1191be91e7ab6d54338a644334d5f071f8ad7ee27671546078
|
|
| MD5 |
c98ac4a073ffbcbc6a7b5ab4433bb4b2
|
|
| BLAKE2b-256 |
99ee8be87e5b2b695d821937a49c8bcb2f7f381d31848f74d53737197fd03e04
|
Provenance
The following attestation bundles were made for tstring_core-0.2.0.tar.gz:
Publisher:
publish-python.yml on koxudaxi/tstring-structured-data
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tstring_core-0.2.0.tar.gz -
Subject digest:
e0970094c6d40f1191be91e7ab6d54338a644334d5f071f8ad7ee27671546078 - Sigstore transparency entry: 1124409524
- Sigstore integration time:
-
Permalink:
koxudaxi/tstring-structured-data@05fa824a105cb87e90662f465cd0d744314fa863 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/koxudaxi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@05fa824a105cb87e90662f465cd0d744314fa863 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tstring_core-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tstring_core-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff0486529d5d6f3bafb67e79736c6749b23995810dc0c818075a17461a851815
|
|
| MD5 |
d35e354dbd30e70fba940306335dc0cf
|
|
| BLAKE2b-256 |
bd1fb3982ae07eabc6c5195ef40c46f05940fe9e895dca7e5fdff914069587d4
|
Provenance
The following attestation bundles were made for tstring_core-0.2.0-py3-none-any.whl:
Publisher:
publish-python.yml on koxudaxi/tstring-structured-data
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tstring_core-0.2.0-py3-none-any.whl -
Subject digest:
ff0486529d5d6f3bafb67e79736c6749b23995810dc0c818075a17461a851815 - Sigstore transparency entry: 1124409606
- Sigstore integration time:
-
Permalink:
koxudaxi/tstring-structured-data@05fa824a105cb87e90662f465cd0d744314fa863 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/koxudaxi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@05fa824a105cb87e90662f465cd0d744314fa863 -
Trigger Event:
push
-
Statement type: