mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-30 19:24:31 +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
|
||||
: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
|
||||
|
|
Loading…
Reference in New Issue
Block a user