mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 07:00:49 +03:00
Add docs for environment varibles interpolation in the Configuration provider
This commit is contained in:
parent
7491fc05a2
commit
284b258879
|
@ -30,6 +30,10 @@ where ``examples/providers/configuration/config.ini`` is:
|
||||||
:language: ini
|
:language: ini
|
||||||
:linenos:
|
: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
|
Loading from ``yaml`` file
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -48,6 +52,10 @@ where ``examples/providers/configuration/config.yml`` is:
|
||||||
:language: ini
|
:language: ini
|
||||||
:linenos:
|
: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::
|
.. note::
|
||||||
|
|
||||||
Loading configuration from yaml requires ``PyYAML`` package. You can install
|
Loading configuration from yaml requires ``PyYAML`` package. You can install
|
||||||
|
|
Loading…
Reference in New Issue
Block a user