# 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](<https://dimbleby.github.io/tomledit/quickstart/index.md>): edit and save an existing TOML file.
- [Working with items](<https://dimbleby.github.io/tomledit/working-with-items/index.md>): edit TOML like ordinary Python data and learn when item references become stale.
- [Comments](<https://dimbleby.github.io/tomledit/comments/index.md>): add, replace, and remove TOML comments.
- [TOML layout](<https://dimbleby.github.io/tomledit/layout/index.md>): work with table headers and array formatting.
- [API reference](<https://dimbleby.github.io/tomledit/api/index.md>): look up functions, classes, and methods.
