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
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.