What is TOML? An easier way to configure Python apps and more

What is TOML? An easier way to configure Python apps and more

It’s funny how some of the simplest software development decisions turn out to also be the toughest. One example is choosing the configuration file format for your application or service. Both JSON and YAML come to mind, of course. But if you need a config file format that’s easy to understand and relatively easy to parse into a data structure, you might consider TOML.

TOML, or Tom’s Obvious Minimal Language, was created chiefly for storing configuration data, with features that JSON and other formats lack. As an example, JSON doesn’t support inline comments. TOML lets you insert comments simply by prefixing them with a hash symbol, as you would in Python. Small wonder, then, that Python itself is gravitating toward TOML as a configuration standard. (See pyproject.toml used by pip to buld packages.)

To read this article in full, please click here