talira

Compare

TOML KitTomli
What it isStyle-preserving TOML library for Python that keeps comments and layoutSmall, fast TOML 1.1.0 parser for Python
KindOpen sourceOpen source
Trust0.620.42
Stars872579
Last commit2026-11-272026-10-07
LicenceMITMIT
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostable——
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
CompanySébastien EustaceTaneli 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.