Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 1.5 KB

backends.rst

File metadata and controls

65 lines (40 loc) · 1.5 KB

Supported backends

The following backends are supported as of version :

  • commandline arguments (using argparse)
  • environment variables
  • ConfigObj files
  • JSON files
  • YAML files (using PyYAML)

backend interface

All backends implement the same interface, which allows for easy addition of new (or external backends).

commandline arguments

Command line arguments are implemented using argparse. This backend is enabled by default.

environment variables

Environments are read from os.environ. This backend is enabled by default.

ConfigObj files

Files in ConfigObj format are supported. This backend is only enabled if omniconf.configobj.filename is specified during setup.

JSON files

Files in JSON format are supported. This backend is only enabled if omniconf.json.filename is specified during setup.

YAML files

Files in YAML format are supported. This backend is only enabled if omniconf.yaml.filename is specified during setup.