pyoaev.configuration.sources ============================ .. py:module:: pyoaev.configuration.sources Module Contents --------------- .. py:class:: EnvironmentSource A utility for fecthing a value in the env vars. .. py:method:: get(env_var: str) -> str | None :classmethod: Gets the value for the specified env var :param env_var: the name of the env var to query :type env_var: str :return: value of the env var, or None if not found :rtype: str | None .. py:class:: DictionarySource A utility for fetching a value from within a JSON-like (nested dict) structure .. py:method:: get(config_key_path: list[str], source_dict: dict) -> str | None :classmethod: Gets the value for the specified env var :param config_key_path: the two-level dictionary path to the config key :type config_key_path: list[str] :param source_dict: JSON-like (nested dict) structure containing config values. :type source_dict: dict :return: value for the config key at specified path, or None if not found :rtype: str | None