This is the end of your extensive tour of the TOML format and the ways that you can use it in Python. You’ve seen some of the features that make TOML a flexible and convenient format for configuration files. At the same time, you’ve uncovered some of the limitations that restrict its usefullness in other applications, like data serialization.
In this video course, you’ve:
- Learned about the TOML syntax and which data types it supports
- Parsed TOML documents with
tomli
andtomllib
- Written TOML documents with
tomli_w
- Losslessly updated TOML files with
tomlkit