# Tomli

> Small, fast TOML 1.1.0 parser for Python

Source: https://talira.ai/catalog/tomli-apnq570d
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / toml](https://talira.ai/categories/developer-tools/parsing/toml), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Supports: [TOML](https://talira.ai/standards/toml.md)[^1]
- Backed by: [Taneli Hukkinen](https://talira.ai/orgs/taneli-hukkinen.md)

Tomli is a small Python library that parses TOML into plain dicts of built-in types. Version 2.4.0 and later follow TOML v1.1.0. A version of it became the standard library's tomllib in Python 3.11 (PEP 680), and Tomli carries a TOML v1.1.0 backport for Python versions older than 3.15. It only reads TOML; its companion Tomli-W writes it.

## Links

- GitHub: https://github.com/hukkin/tomli

## Problems it solves

- read a pyproject.toml or other TOML config file in Python
- parse TOML on Python versions older than 3.11, which lack tomllib
- load TOML floats as exact decimals in Python

## Features

- parses TOML v1.1.0 (v2.4.0 and later) into a plain dict
- loads and load for strings and binary files
- parse_float hook, for example to build decimal.Decimal values
- TOML v1.1.0 backport of the standard library's tomllib for Python before 3.15
- optional mypyc-compiled wheel for speed

## Limitations

- It only parses: writing TOML needs the separate Tomli-W package.[^1]
- It doesn't preserve comments or formatting, since it returns a plain dict.[^1]

## Trust

Overall: 0.42 out of 1.
Signals: maintenance 0.54, adoption 0.55, momentum 0.30, community 0.48, backing 0.30, extensibility 0.00.

- last commit 53 days ago
- 14 commits in the last 90 days
- 579 GitHub stars
- 15 contributors
- backed by Taneli Hukkinen

## Alternatives

- [TOML Kit](https://talira.ai/catalog/toml-kit-6k5eyez9.md): Style-preserving TOML library for Python that keeps comments and layout

## Sources

[^1]: https://github.com/hukkin/tomli/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/hukkin/tomli/blob/master/LICENSE (checked 29 Nov 2026)
