i'm using the python toml support in a recent project in place of os.environ and .env files. it's nice. we can use ansible vault to generate an encrypted toml, or just keep one in some other vault. i guess you can do the same with .env and some third party library, but toml is much more structured and readable.
SulfaTranny 8 days ago
Included in Python stdlib since v3.11.
BimanualLoser 8 days ago
i'm using the python toml support in a recent project in place of
os.environ
and .env files. it's nice. we can use ansible vault to generate an encrypted toml, or just keep one in some other vault. i guess you can do the same with .env and some third party library, but toml is much more structured and readable.I'm using it instead of env vars here too.