Skip to content

Commit 284b258

Browse files
committed
Add docs for environment varibles interpolation in the Configuration provider
1 parent 7491fc0 commit 284b258

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/providers/configuration.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ where ``examples/providers/configuration/config.ini`` is:
3030
:language: ini
3131
:linenos:
3232

33+
:py:meth:`Configuration.from_ini` supports environment variables interpolation. Use
34+
``${ENV_NAME}`` format in the configuration file to substitute value of environment
35+
variable ``ENV_NAME``.
36+
3337
Loading from ``yaml`` file
3438
~~~~~~~~~~~~~~~~~~~~~~~~~~
3539

@@ -48,6 +52,10 @@ where ``examples/providers/configuration/config.yml`` is:
4852
:language: ini
4953
:linenos:
5054

55+
:py:meth:`Configuration.from_yaml` supports environment variables interpolation. Use
56+
``${ENV_NAME}`` format in the configuration file to substitute value of environment
57+
variable ``ENV_NAME``.
58+
5159
.. note::
5260

5361
Loading configuration from yaml requires ``PyYAML`` package. You can install

0 commit comments

Comments
 (0)