Understanding Toml
In the past I have used .ini files for Python config, while an older format it is easy to understand and has std-lib support with configparser. Since starting with Jekyll I have gotten used to working with ymal files. My pdf reading project needed a config file so I started to use ymal. But while looking for yaml on python docs I ran across several threads about yaml vs toml.
Reading through them changed my mind about using yaml. Reasons important to me to choose Toml:
- Default config format for Rust-Cargo
- Default config format for Pipenv
- Similar structure to .ini
- Clear way to nest tables
- More strongly typed than yaml
- Younger than yaml or JSON
Resources
Written on January 29, 2018