Recommending a TOML Parser

Python 3.11 and onward have tomllib as part of the standard library:

If you can’t use Python 3.11, try tomli. The pip tool itself switched from toml to tomli at some point.

If you need round-trippability, you could check out tomlkit: