Skip to content

Instantly share code, notes, and snippets.

@washingweb
Created January 4, 2021 03:09
Show Gist options
  • Save washingweb/54200d49e41fdde31ea0b0b5ab0cfe9f to your computer and use it in GitHub Desktop.
Save washingweb/54200d49e41fdde31ea0b0b5ab0cfe9f to your computer and use it in GitHub Desktop.
python conf
import os
from prettyconf import config
from prettyconf.loaders import RecursiveSearch, Environment


config.loaders = [Environment(), RecursiveSearch(starting_path=os.getcwd())]

CONF_A = config('CONF_A')
CONF_B = config('CONF_B', cast=int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment