beetbox / confuse

painless YAML config files for Python
https://pypi.org/project/confuse/
MIT License
415 stars 51 forks source link

TOML configuration file support #151

Open curtisma opened 2 years ago

curtisma commented 2 years ago

TOML is another configuration file format that is a little simpler to read and has a learning curve that's a bit less steep than YAML.

It would be great if we could use either format for the config files. There are existing libraries for reading a TOML file into a dictionary. So ideally the 2 formats could be interchangeable. Perhaps there could be an option to make the config files TOML-only, YAML-only, or either one depending on the file extension.

Is anybody else interested in this?

sampsyo commented 2 years ago

Seems pretty cool indeed! There are a few scattered YAML-specific notions around in the code, such as the dump method, so perhaps a good first step here would just be evolving the APIs to be more language-agnostic.