Skip to main content

teptris-py — TOML for Python at libleptris speed

A native C-extension binding (no ctypes, no fallback) over libteptris — the TOML counterpart of leptris-py (XML) and yeptris-py (YAML). API shape mirrors tomllib/tomli (loads/load raising TOMLDecodeError) plus a dumps writer in the tomli_w spirit. Datetime mapping mirrors tomllib: aware/naive datetime, date, time.

Both directions are native: dumps walks the object tree in C through the builder API and emits via the shared engine emitter — 3.5×–14.2× faster than tomli_w on every benchmark shape. The engine implements the TOML 1.1 draft grammar (a strict superset of 1.0) with 100% toml-test conformance, and parses at ≥3× the best C/C++ competitor on every shape.

Development

The package loads a shared libteptris — from TEPTRIS_LIB_PATH, a vendored platform/ directory, the sibling C checkout's build tree, or the system loader.

cmake -B ../teptris/build-shared -S ../teptris \
    -DCMAKE_BUILD_TYPE=Release -DTEPTRIS_BUILD_SHARED=ON -DTEPTRIS_BUILD_STATIC=OFF
cmake --build ../teptris/build-shared
TEPTRIS_LIB_PATH=../teptris/build-shared/src/libteptris.dylib \
    python3 -m unittest discover -s tests -v

Publishing and version numbers are USER release decisions.

Release files for teptris 0.2.11

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

Built distributions (wheels)

Table of built distributions (wheels) for teptris 0.2.11
File
teptris-0.2.11-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details
teptris-0.2.11-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
teptris-0.2.11-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
teptris-0.2.11-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
teptris-0.2.11-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details
teptris-0.2.11-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 Details
teptris-0.2.11-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
teptris-0.2.11-cp39-abi3-macosx_10_9_x86_64.whl CPython 3.9 abi3 macOS 10.9+ x86-64 Details

Total release size:539.8 kB

Release files / teptris-0.2.11-cp39-abi3-win_arm64.whl

Download URL teptris-0.2.11-cp39-abi3-win_arm64.whl
Size 46.9 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
2a4bf70599f2a5bf04d074b6740fe170d01e6fbe73c4e8f9d85670dc526df9a8
BLAKE2b-256 checksum
How to use checksums
eea0de345cf3a3042396bb8cf9120ae95991f64b2e8a8ca7f699105b10b1146c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.5

Release files / teptris-0.2.11-cp39-abi3-win_amd64.whl

Download URL teptris-0.2.11-cp39-abi3-win_amd64.whl
Size 48.3 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6d4368438bd561a40876f7f045ec826c8a16b6843fd1a0469ba92e9d034c3e8f
BLAKE2b-256 checksum
How to use checksums
54b4440b9086b0f633f94d1cdc5be45456a0952c19e21fb889f546019f1edc61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.5

Release files / teptris-0.2.11-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL teptris-0.2.11-cp39-abi3-musllinux_1_2_x86_64.whl
Size 78.5 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
7109f31378614afd4a9eb3d7a795b78e047bac3e5eb8662a1b48e582add552fb
BLAKE2b-256 checksum
How to use checksums
94e97c4a540259f06303f141c2c0fbd62c59bd1e12a14d1ad2e3a31c0afb367b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.5

Release files / teptris-0.2.11-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL teptris-0.2.11-cp39-abi3-musllinux_1_2_aarch64.whl
Size 84.0 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
8a6cbdeee955a6ef52ec13d17614813d4957e78605aba7572a9ca82620088abe
BLAKE2b-256 checksum
How to use checksums
e4359af9ab584a430be5cbfcffcb895b0285194b9beee178402a355d97b48d5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.5

Release files / teptris-0.2.11-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL teptris-0.2.11-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 75.8 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
5aba3796df02acfee222080f149cbb42357ab63cfa7b91b3a6dc0a97ddb37e3e
BLAKE2b-256 checksum
How to use checksums
22b7bfb1ef7e6e7e2257cf777deee7e33bb077d35cb6d962c98cfe69e3c1777a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.5

Release files / teptris-0.2.11-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL teptris-0.2.11-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 82.0 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
dcdc7203b136a58f9c5a36fa1b5b816b1165d3b74e1991cb7e6d71b8e4ff3f3e
BLAKE2b-256 checksum
How to use checksums
dab815ecd737ed0d835c7ec1fc9dc82743c880e89a09958b0629c88613afd1d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.5

Release files / teptris-0.2.11-cp39-abi3-macosx_11_0_arm64.whl

Download URL teptris-0.2.11-cp39-abi3-macosx_11_0_arm64.whl
Size 62.6 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1b2c8d55daa1c9ce066f3e5707f96b10f10e9758c85a81d176c38794cc8d3cb3
BLAKE2b-256 checksum
How to use checksums
7299b825d4c87628dd1fbf2bce4f90f651f9b8130f1920016d4ae9681a413b78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.5

Release files / teptris-0.2.11-cp39-abi3-macosx_10_9_x86_64.whl

Download URL teptris-0.2.11-cp39-abi3-macosx_10_9_x86_64.whl
Size 61.7 kB
Tags CPython 3.9 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
fb710acd18e03512124f70b73f5d67d6e1621ed3b364939a510335e195988f47
BLAKE2b-256 checksum
How to use checksums
a4f81e495f21527289487ff2e9a6ff8fa2aa4100a88dfb39307852d2e360ee48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.5

Release history Release notifications | RSS feed

0.2.16

9 release files

0.2.15

9 release files

0.2.14

8 release files

0.2.13

8 release files

0.2.12

8 release files

This release

0.2.11 This release

8 release files

0.2.9

43 release files

0.2.8

43 release files

0.2.7

43 release files

0.2.6

43 release files

0.2.5

20 release files

0.2.4

20 release files

0.2.3

20 release files

0.2.2

20 release files

0.2.1

20 release files

0.2.0

12 release files

0.1.1

4 release files

0.1.0

3 release files

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