📄Tom's Obvious Minimal Language (TOML)
Also known as TOML, .toml file
A simple format for settings. Titles sit in brackets, with one setting per line.
Think of it like
Think of it like a book with titles. Under each title, each line sets one thing.
Example
Emma sets her Python project's name and version in pyproject.toml. Her build tool reads both from there.
Why it matters
Rust and modern Python tools are set up in TOML. It is clear and hard to get wrong.
Definition
Example code
toml
[package]
name = "shop"
version = "1.0.0"Common mistake
Key takeaways
- 1Headings in brackets. Sections group the settings.
- 2One value per line. Each line says key = value.
- 3Strict but clear. Fewer surprises than YAML.