by fermigier · 6y ago · 0 comments
- Python application configuration -> https://github.com/edaniszewski/bison
- Configuration with env variables for Python -> https://github.com/hynek/environ_config
- Configuration library for python projects -> https://github.com/willkg/everett
- Strict separation of config from code -> https://github.com/henriquebastos/python-decouple
This is from my personal notes. See also: https://github.com/vinta/awesome-python#configuration
Anything else that we've missed ?
marshmallow.readthedocs.io/en/
One thing missing from this article is to always use a proper external key value store for everything but the stage (dev test prod etc) and the connections to the kv store. Config files on disk and even in environment variables suck for anything but the most trivial platforms.
https://github.com/madman-bob/python-dataclasses-serializati...
Works really well with marshmallow for additional validation.
https://github.com/google/gin-config
and Facebook's Hydra: