Simple .rc file loading for your Python projects
Simple .rc file loading for your Python projects. Looks for config files in typical locations based on your app name:
Files are loaded such that files earlier in the above list override settings in later ones. The content of each file is parsed as YAML, falling back to JSON if that fails.
import dotrc # Loads .apprc, ~/.config/app, etc. config = dotrc.load('app')
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.