| What it is | Style-preserving TOML library for Python that keeps comments and layout | Small, fast TOML 1.1.0 parser for Python |
| Kind | Open source | Open source |
| Trust | 0.62 | 0.42 |
| Stars | 872 | 579 |
| Last commit | 2026-11-27 | 2026-10-07 |
| Licence | MIT | MIT |
| Pricing | Free and open source | Free and open source |
| Free tier | Yes | Yes |
| Self-hostable | — | — |
| Ways to run it | — | — |
| SOC 2 | — | — |
| HIPAA | — | — |
| SSO | — | — |
| API | — | — |
| Plugins | — | — |
| MCP server | — | — |
| Company | Sébastien Eustace | Taneli Hukkinen |
| Features | - TOML 1.1.0 compliant
- parser that preserves comments, indentation, whitespace and element order
- edit a document through its API and write it back with the layout intact
- create new TOML documents from scratch
| - 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 | - A sub-table that extends an array of tables out of order is moved into the array's last element when the document is written back; the data is kept but its placement changes.
| - It only parses: writing TOML needs the separate Tomli-W package.
- It doesn't preserve comments or formatting, since it returns a plain dict.
|