Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 683 Bytes

configsource.rst

File metadata and controls

22 lines (17 loc) · 683 Bytes

Implementing custom ConfigSource classes

If you want to get configuration settings from some other sources than the built-in sources, you should create a class that derives from :py~layeredconfig.ConfigSource and implement a few methods.

If your chosen source can expose the settings as a (possibly nested) :pydict, it might be easier to derive from :py~layeredconfig.DictSource which already provide implementations of many methods.

layeredconfig.ConfigSource

layeredconfig.DictSource