TOML#
Overview#
Data structure support |
+ |
TOML (Tom’s Obvious, Minimal Language) supports most common including strings, integers, floats and dates, but not references like YAML does. |
Standardisation |
++ |
TOML is a formal strongly typed standard. |
Schema-IDL |
+- |
Partly with JSON Schema Everywhere |
Language support |
++ |
TOML is a relatively new serialization format and doesn’t have the same broad support as JSON, CSV or XML for various programming languages. |
Human readability |
++ |
One of TOML’s primary goals was to be very easy to read. |
Speed |
+- |
TOML can be processed at medium speed. |
File size |
- |
Only XML/HTML is less compact. |
You need the Python package toml to convert TOML files into Python Dictionaries. You can then load TOML files, for example with:
import toml
config = toml.load("pyproject.toml")