serp-tomllib
Read-only TOML parsing written in the Serpentine subset. Values are
kind-tagged TVal dataclasses (kind in str/int/float/bool/arr/table),
mirroring serp-json's JVal shape.
Supported TOML
Comments, bare/quoted/dotted keys, basic and literal strings (with
\n \t \r \" \\ \uXXXX escapes), decimal integers (underscores ok), floats,
booleans, single-line arrays, [a.b] table headers.
Not supported (raises ValueError): arrays of tables, inline tables,
multi-line strings/arrays, dates/times, hex/oct/bin integers. This covers the
serp.toml files the toolchain itself uses.
API
loads(text) -> TVal— root table.has / keys / get_str / get_int / get_float / get_bool (t, key)— navigation helpers (KeyErroron a missing key,ValueErroron a kind mismatch). Nested tables: navigate viat.tbl["name"].describe(t) -> str— canonical debug rendering.
Install
serp add serp-tomllib
pip install serp-tomllib
Metadata
Release files for serp-tomllib 0.2.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 |
|---|---|---|---|---|
| serp_tomllib-0.2.0.tar.gz | 5.2 kB | With provenance | Details for serp_tomllib-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serp_tomllib-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for serp_tomllib-0.2.0-py3-none-any.whl |
Total release size: 9.9 kB
Release files / serp_tomllib-0.2.0.tar.gz
| Download URL | serp_tomllib-0.2.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1314b20bb484cf4a73e608efbe7a402efd4eb7da9b921989fac7be5be4684e9
|
|
BLAKE2b-256 checksum How to use checksums |
0d918c3024f62101122237f9d010901339cfe13ce716fa4e5dac388196a42103
|
| 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 Sep 29, 2026.
Transparency logRelease files / serp_tomllib-0.2.0-py3-none-any.whl
| Download URL | serp_tomllib-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04f15429c6296d7cdc3defeb60300dfd3fe59778c4cb9c82de318958e90a811a
|
|
BLAKE2b-256 checksum How to use checksums |
098e80decfb3eb21d451f0ae87da818ef91096964440a806e2d04b1b60bb9983
|
| 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 Sep 29, 2026.
Transparency logSecurity for serp-tomllib 0.2.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 serp_tomllib-0.2.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 Sep 29, 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.