-
There are 2 popular Python libraries
tomlkit
and
toml
for parsing TOML formatted files in Python.
tomlkit
is preferred to
toml
as it is more flexible and style-preserving.
-
A TOML file always interpret a key (even a bare ASCII integer) as string.
For this reason, a dict with numerical keys …
Tips and Traps¶
- Make sure to use the mode
rb
/wb
when read/write pickle files.