$npx skillfedfor your agent

toml

Python Library for Tom's Obvious, Minimal Language

Worth itPyPI Released Nov 2020176.2M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — toml-0.10.2-py2.py3-none-any.whl
v0.10.2 · released 2020-11-01 · Python >=2.6, !=3.0.*, !=3.1.*, !=3.2.*

Yes. toml is a stable, zero-dependency library for TOML parsing and generation that is widely used (top 1000 on PyPI) and has no known vulnerabilities. Its dormant maintenance status is not a concern because TOML parsing is a well-defined, feature-complete task and the package passes the official test suite. Install it if you need to read or write TOML files in Python.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installs with no dependencies and low friction.
  • Maintenance is dormant—last release was 2020-11-01 and last commit 2024-06-26—but the package is marked Production/Stable and passes the TOML test suite, suggesting it is feature-complete rather than abandoned.

License · maintenance · safety

MIT (permissive) — Released under the MIT License, a permissive open-source license with no restrictions on use, modification, or distribution in commercial or proprietary projects.

last release 2020-11-01 (2112 days) · last repo commit 2024-06-26 · 1,136 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 176,194,404 downloads/mo, #238 on PyPI

Verify before relying

pip install toml

import toml

toml_string = 'title = "Example"\n[section]\nkey = "value"'
parsed = toml.loads(toml_string)
output = toml.dumps(parsed)
  • Whether dormant maintenance status poses a risk for future TOML specification updates or Python version compatibility.
  • Whether the package handles all edge cases in the current TOML specification or only the v0.5.0 version it targets.
Same gist for agents: .md · .json

What it is and what it does

toml is a pure-Python library for parsing TOML (Tom's Obvious, Minimal Language) configuration files and serializing Python dictionaries back to TOML format. It provides four main functions: toml.load() and toml.loads() to read TOML from files or strings into dictionaries, and toml.dump() and toml.dumps() to write dictionaries back to TOML format. The library passes the TOML test suite and supports both Python 2 and Python 3 across multiple versions.

The package has no runtime dependencies, making it lightweight and easy to integrate into any project that needs to read or write TOML configuration files. It includes a TomlNumpyEncoder for handling NumPy data types when serializing. With no external dependencies and a stable API, it is suitable for applications that need straightforward TOML I/O without additional complexity.

Use it for

  • Read configuration files in TOML format into Python dictionaries for application startup or settings management.
  • Serialize Python configuration objects back to TOML files for saving user preferences or deployment settings.
  • Parse pyproject.toml or similar build-tool configuration files in Python-based build systems or package managers.
  • Convert between TOML and Python data structures in CLI tools or configuration management utilities.
  • Handle NumPy arrays in TOML output by using the TomlNumpyEncoder for scientific computing workflows.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

toml is a stable, zero-dependency library for TOML parsing and generation that is widely used (top 1000 on PyPI) and has no known vulnerabilities. Its dormant maintenance status is not a concern because TOML parsing is a well-defined, feature-complete task and the package passes the official test suite. Install it if you need to read or write TOML files in Python.

Install

toml on PyPI

Before you install

Installs with no dependencies and low friction. Maintenance is dormant—last release was 2020-11-01 and last commit 2024-06-26—but the package is marked Production/Stable and passes the TOML test suite, suggesting it is feature-complete rather than abandoned.

License in practice

Released under the MIT License, a permissive open-source license with no restrictions on use, modification, or distribution in commercial or proprietary projects.

Quickstart

pip install toml

import toml

toml_string = 'title = "Example"\n[section]\nkey = "value"'
parsed = toml.loads(toml_string)
output = toml.dumps(parsed)

Verify before relying

  • Whether dormant maintenance status poses a risk for future TOML specification updates or Python version compatibility.
  • Whether the package handles all edge cases in the current TOML specification or only the v0.5.0 version it targets.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=2.6, !=3.0.*, !=3.1.*, !=3.2.*
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 2,112 days since the last release
Last repo commit
First released
Downloads176,194,404 / month, #238 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Evidence: toml-0.10.2-py2.py3-none-any.whl

Tags

Capabilities
toml parserparse toml filestoml configurationtoml to dictread toml configtoml serializationtoml encoder decoder
Topics
config-parsingfile-format

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “parse toml files”

  • tomlParses and generates TOML configuration files, converting between…
  • pytomlParses and writes TOML configuration files with a JSON-like…
  • tree-sitter-tomlProvides a tree-sitter parser grammar for TOML files, enabling…

Give your agent the search over MCP, or paste the wish link into any chat.

Similar packages

pytoml Skip
PyPI · Libraries · released Jul 2019

Parses and writes TOML configuration files with a JSON-like interface, supporting TOML version 0.4.0.

MITpure Python
604.6Kdownloads / mo
rtoml With conditions
PyPI · Python Modules · released Oct 2025

rtoml parses and serializes TOML files and strings to and from Python dictionaries, with support for flexible None-value handling and optional pretty-printing.

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…

MITcompiled wheel · 3.10+aging
979.0Kdownloads / mo
toml-sort Worth it
PyPI · Utilities · released Mar 2026

Command-line utility and Python library to sort and format TOML files while preserving comments and standardizing whitespace.

MITpure Python · 3.9+
723.4Kdownloads / mo
toml-rs With conditions
PyPI · Libraries · released Jul 2026

A high-performance TOML parser and serializer for Python, written in Rust, with drop-in compatibility for most tomllib use cases and support for TOML v1.0.0 and v1.1.0.

Unlicensecompiled wheel · 3.10+
104.6Kdownloads / mo
dom-toml With conditions
PyPI · Python Modules · released Jan 2026

Provides utilities and helpers for working with TOML configuration files, building on top of tomli to simplify parsing and manipulation of TOML data in Python.

MITpure Python · 3.7+
1.0Mdownloads / mo
types-toml With conditions
PyPI · released May 2026

Provides type hints for the toml package, enabling static type checkers like mypy and pyright to validate code that parses or manipulates TOML configuration files.

Apache-2.0pure Python · 3.10+
68.7Mdownloads / mo

See also asn1 · taplo · tomli · msgspec