Skip to content

tomledit

Edit TOML from Python without reformatting the whole file. Parse a document, change the values you need, and write it back with comments, whitespace, and ordering preserved around the edits.

  • Quickstart: edit and save an existing TOML file.
  • Working with items: edit TOML like ordinary Python data and learn when item references become stale.
  • Comments: add, replace, and remove TOML comments.
  • TOML layout: work with table headers and array formatting.
  • API reference: look up functions, classes, and methods.