The following backends are supported as of version :
- commandline arguments (using argparse)
- environment variables
- ConfigObj files
- JSON files
- YAML files (using PyYAML)
All backends implement the same interface, which allows for easy addition of new (or external backends).
Command line arguments are implemented using argparse
. This backend is enabled by default.
Environments are read from os.environ
. This backend is enabled by default.
Files in ConfigObj format are supported. This backend is only enabled if omniconf.configobj.filename is specified during setup.
Files in JSON format are supported. This backend is only enabled if omniconf.json.filename is specified during setup.
Files in YAML format are supported. This backend is only enabled if omniconf.yaml.filename is specified during setup.