Important limitations of Tomli
masterWhen choosing tomli, be aware of the following:
- No Writing Support:
tomliis a read-only parser. It does not providedumps,dump,write, orencodefunctions. For writing TOML, use Tomli-W. - No Comment Preservation:
tomlireturns plain Python dictionaries. It does not preserve comments or formatting from the original TOML file. If you need round-trip parsing that preserves comments, use TOML Kit. - Basic Types Only: The parser is designed to output only basic data types and standard library types.