rtoml
A TOML library for python implemented in rust.
What it is and what it does
rtoml is a TOML parser and serializer for Python, implemented in Rust for performance. It provides four main functions: load() and loads() to parse TOML from files or strings into Python dictionaries, and dump() and dumps() to serialize Python objects back to TOML format. The library includes flexible None-value handling—you can control which TOML values map to Python None and how None values are serialized back to TOML.
The package is built on the stable toml-rs Rust library and passes all standard TOML compliance tests. It offers no runtime dependencies and is available as prebuilt wheels for Python 3.10+ on Linux, macOS, and Windows across multiple architectures. Installation is straightforward on supported platforms; unsupported platforms require a Rust compiler.
Use it for:
- Parse configuration files in TOML format into Python dicts for application settings.
- Serialize Python data structures to TOML and write them to disk for configuration storage.
- Handle TOML with None values by mapping a custom sentinel string (e.g., '@None') to represent nulls.
- Build tools or utilities that need fast, standards-compliant TOML parsing without external dependencies.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
rtoml parses and serializes TOML files and strings to and from Python dictionaries, with support for flexible None-value handling and optional pretty-printing.
Yes, if you need TOML parsing on Python 3.10+ and have a supported platform with prebuilt wheels. The library is stable, has no runtime dependencies, passes all TOML compliance tests, and offers strong performance. However, note that maintenance is aging (last release 299 days ago), so verify that the package still meets your needs and check whether prebuilt wheels exist for your architecture before committing to it.
Install
rtoml on PyPI
pip
pip install rtomluv
uv add rtomlpoetry
poetry add rtomlInstalling rtoml
Before you install
Medium install friction due to compiled wheels; prebuilt binaries are available for common platforms (Linux, macOS, Windows across multiple architectures), but installation from source requires Rust stable if no binary matches your system. Last release was 299 days ago; maintenance status is aging.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—standard for open-source libraries.
Quickstart
pip install rtoml
import rtoml
# Parse TOML string
data = rtoml.loads('title = "Example"')
# Serialize to TOML
toml_str = rtoml.dumps({'title': 'Example'})
Requires Python 3.10 or later. If no prebuilt wheel is available for your platform, Rust stable must be installed to build from source.
Verify before relying
- Current maintenance status and likelihood of future updates beyond the 299-day gap since last release.
- Whether prebuilt wheels cover all platforms you need (check PyPI files for your architecture).
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | aging — 299 days since the last release |
| First released | |
| Downloads | 979,024/month — #4,590 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rtoml-0.13.0-cp310-cp310-macosx_10_12_x86_64.whl; rtoml-0.13.0-cp310-cp310-macosx_11_0_arm64.whl; rtoml-0.13.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; rtoml-0.13.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; rtoml-0.13.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; rtoml-0.13.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; rtoml-0.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rtoml-0.13.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; rtoml-0.13.0-cp310-cp310-musllinux_1_1_aarch64.whl; rtoml-0.13.0-cp310-cp310-musllinux_1_1_x86_64.whl; rtoml-0.13.0-cp310-cp310-win32.whl; rtoml-0.13.0-cp310-cp310-win_amd64.whl; rtoml-0.13.0-cp311-cp311-macosx_10_12_x86_64.whl; rtoml-0.13.0-cp311-cp311-macosx_11_0_arm64.whl; rtoml-0.13.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; rtoml-0.13.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; rtoml-0.13.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; rtoml-0.13.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl; rtoml-0.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rtoml-0.13.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pytomlParses and writes TOML configuration files with…
permissive · top 15,000 on PyPI
tomlParses and generates TOML configuration files,…
permissive · top 1,000 on PyPI
toml-rsA high-performance TOML parser and serializer…
permissive · top 15,000 on PyPI
tomliTomli parses TOML configuration files and…
permissive · top 1,000 on PyPI
toml-sortCommand-line utility and Python library to sort…
permissive · top 15,000 on PyPI
lkmlParses LookML strings into Python objects or…
permissive · top 5,000 on PyPI
dom-tomlProvides utilities and helpers for working with…
permissive · top 5,000 on PyPI
tomli-wTomli-W serializes Python dictionaries to TOML…
permissive · top 1,000 on PyPI
tomlrtReads and writes TOML files while preserving…
permissive · top 15,000 on PyPI
orjsonorjson is a fast JSON serialization and…
copyleft · top 1,000 on PyPI