From 284b2588793ba57fe9e77ff6780ffea78c1f1578 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Thu, 25 Jun 2020 23:48:55 -0400 Subject: [PATCH] Add docs for environment varibles interpolation in the Configuration provider --- docs/providers/configuration.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/providers/configuration.rst b/docs/providers/configuration.rst index 1b3d26c5..91e9d1de 100644 --- a/docs/providers/configuration.rst +++ b/docs/providers/configuration.rst @@ -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