toml
Python Library for Tom's Obvious, Minimal Language
Install
toml on PyPI
pip
pip install tomluv
uv add tomlpoetry
poetry add tomlPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=2.6, !=3.0.*, !=3.1.*, !=3.2.*) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 2,111 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: toml-0.10.2-py2.py3-none-any.whl
About toml
from the package's own PyPI description — quoted content, verbatim
TOML
.. image:: https://img.shields.io/pypi/v/toml :target: https://pypi.org/project/toml/
.. image:: https://travis-ci.org/uiri/toml.svg?branch=master :target: https://travis-ci.org/uiri/toml
.. image:: https://img.shields.io/pypi/pyversions/toml.svg :target: https://pypi.org/project/toml/
A Python library for parsing and creating TOML <https://en.wikipedia.org/wiki/TOML>_.
The module passes the TOML test suite <https://github.com/BurntSushi/toml-test>_.
See also:
The TOML Standard <https://github.com/toml-lang/toml>_The currently supported TOML specification <https://github.com/toml-lang/toml/blob/v0.5.0/README.md>_
Installation
To install the latest release on PyPI <https://pypi.org/project/toml/>_,
simply run:
::
pip install toml
Or to install the latest development version, run:
::
git clone https://github.com/uiri/toml.git cd toml python setup.py install
Quick Tutorial
toml.loads takes in a string containing standard TOML-formatted data and returns a dictionary containing the parsed data.
.. code:: pycon
>>> import toml >>> toml_string = """ ... # This is a TOML document....
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Parse and generate TOML configuration files, converting between TOML-formatted strings/files and Python dictionaries.
Installs cleanly with no runtime dependencies. Maintenance is dormant—last release was 2020-11-01 and the repository has not been updated since 2024-06-26—but the package is marked Production/Stable and passes the official TOML test suite.
Released under the MIT License (permissive), which allows free use, modification, and distribution with minimal restrictions.
Usage
pip install toml
import toml
toml_string = 'title = "Example"'
parsed = toml.loads(toml_string)
output = toml.dumps(parsed)
Verdict: A stable, zero-dependency TOML parser suitable for reading and writing configuration files. No known vulnerabilities and broad Python version support (2.6+, 3.3+). Dormant maintenance is a minor concern for long-term support, but the implementation is mature and passes the official test suite.
Needs verification
- Whether dormant status affects real-world compatibility with TOML spec updates or Python 3.10+ features
- Performance characteristics relative to alternative TOML libraries for large configuration files
Similar packages
permissive · top 1,000 on PyPI
humanizepermissive · top 1,000 on PyPI
ujsonpermissive · top 1,000 on PyPI
simplejsonpermissive · top 1,000 on PyPI
setuptools-scmpermissive · top 1,000 on PyPI
overridespermissive · top 1,000 on PyPI
rfc3986-validatorpermissive · top 1,000 on PyPI
logfirepermissive · top 1,000 on PyPI
rfc3339-validatorpermissive · top 1,000 on PyPI
argparsepermissive · top 1,000 on PyPI