网站
https://github.com/rochacbruno/dynaconf
https://dynaconf.com/

快速开始

  1. $ pip install dynaconf
  2. # 项目目录初始化 dynaconf
  3. $ cd path/to/your/project/
  4. $ dynaconf init -f toml
  5. ⚙️ Configuring your Dynaconf environment
  6. ------------------------------------------
  7. 🐍 The file `config.py` was generated.
  8. 🎛️ settings.toml created to hold your settings.
  9. 🔑 .secrets.toml created to hold your secrets.
  10. 🙈 the .secrets.* is also included in `.gitignore`
  11. beware to not push your secrets to a public repo.
  12. 🎉 Dynaconf is configured! read more on https://dynaconf.com