joshgordon / learndynaconf

Learn Dynaconf - the best config library for Python :)

Home Page:https://dynaconf.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learn X in Y minutes when X is Dynaconf

Dynaconf is a library aimed to be the best choice to manage configuration in Python.

It can read settings from various sources including environment variables, files, config servers, vaults etc.

It works for any kind of Python programs including Flask and Django extensions.

It is highly customizable and heavily tested.


Getting Started

Run this project from your browser

Choose one option.

Or Execute this project locally

Requirements: Python 3.6+

git clone https://github.com/rochacbruno/learndynaconf.git
cd learndynaconf
pip install dynaconf jinja2

Run

python main.py
dynaconf -i config.settingshelp
dynaconf -i config.settings list

Read and Explore

Open and read the files on this project in the following order

  1. config.py (settings and validation) <- START READING THIS
  2. default_settings.toml (default values)
  3. settings.toml (main settings)
  4. .secrets.toml (gitignored sensitive settings)
  5. envfile/.env (environment variables exported)
  6. main.py (the main program)

Full docs on https://dynaconf.com


thanks

Bruno - https://twitter.com/rochacbruno

About

Learn Dynaconf - the best config library for Python :)

https://dynaconf.com


Languages

Language:Python 100.0%