geomancy.environment.load_env#

geomancy.environment.load_env(filepath: str | Path, overwrite: bool = False, *args, **kwargs) dict#

Load an environment file.

Parameters#

filepath

The path to the file with environment settings to load

overwrite

If True, overwrite environment variables that already exist If False (default), only load environment variables that don’t already exist

args, kwargs

Arguments and keyword arguments passed to parse_env_str()

Returns#

env

A dict with all of the loaded env variable name-value pairs in a dict