Add docs for environment varibles interpolation in the Configuration provider

This commit is contained in:
Roman Mogylatov 2020-06-25 23:48:55 -04:00
parent 7491fc05a2
commit 284b258879

View File

@ -30,6 +30,10 @@ where ``examples/providers/configuration/config.ini`` is:
:language: ini
:linenos:
:py:meth:`Configuration.from_ini` supports environment variables interpolation. Use
``${ENV_NAME}`` format in the configuration file to substitute value of environment
variable ``ENV_NAME``.
Loading from ``yaml`` file
~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -48,6 +52,10 @@ where ``examples/providers/configuration/config.yml`` is:
:language: ini
:linenos:
:py:meth:`Configuration.from_yaml` supports environment variables interpolation. Use
``${ENV_NAME}`` format in the configuration file to substitute value of environment
variable ``ENV_NAME``.
.. note::
Loading configuration from yaml requires ``PyYAML`` package. You can install