Skip to main content

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:

  1. validate that the input is a PEP 750 Template
  2. pass the template into the shared PyO3 bindings
  3. parse backend-specific structure in Rust
  4. run semantic checks in Rust
  5. render text and backend-native Python data
  6. 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

tstring_core-0.2.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tstring_core-0.2.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file tstring_core-0.2.1.tar.gz.

File metadata

  • Download URL: tstring_core-0.2.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tstring_core-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4ab4a43ad1cc2ad887665326df4c1938c056e2e2eefd85c3e5b1a9311feae5d3
MD5 b6cee2f6e69a1bbab476f2f0161f9c47
BLAKE2b-256 d60ae1c0e1798a609aecb617ceded070d5e85b392c42b685926a076e976c2c79

See more details on using hashes here.

Provenance

The following attestation bundles were made for tstring_core-0.2.1.tar.gz:

Publisher: publish-python.yml on koxudaxi/tstring-structured-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tstring_core-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tstring_core-0.2.1-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

Hashes for tstring_core-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08f2c2a8f9d3dd30b91abbf810027682e1cb9c313603cd8983cfdf20bf002486
MD5 e1d7c5bd45a214379fa90a44df1efa35
BLAKE2b-256 c02f013147d69c990ae7a9ac6e0d00797df37bd6b8479ab30c5cac692c0cbfa2

See more details on using hashes here.

Provenance

The following attestation bundles were made for tstring_core-0.2.1-py3-none-any.whl:

Publisher: publish-python.yml on koxudaxi/tstring-structured-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page