flyingcircusio / batou

batou is a universal, fractal deployment utility using Python.
https://batou.readthedocs.org
Other
47 stars 12 forks source link

turn environment config into toml files #459

Open ctheune opened 1 month ago

ctheune commented 1 month ago

Should be a relatively simple replacement and will help embedding structured config more easily and would get rid of most type conversion issues.

Long term we want this to be different anyway, but this is a low hanging next step.

elikoga commented 1 month ago

Do we want this to completely replace the old configparser/configupdater format, so automatic migration step .cfg -> .toml is part of a ./batou migrate?

Also: What updating library to use?

In python 3.11 there is https://docs.python.org/3/library/tomllib.html, but there also is https://github.com/python-poetry/tomlkit with more support