geomancy.environment.parse_env#
- geomancy.environment.parse_env(string: str, strip_values: bool = True) dict#
Parse a string in env format into a dict.
See
sub_env()for details on substitution.Parameters#
- string
The string in env format to parse
- strip_values
Remove whitespace at the start and end of non-quoted values
Returns#
- env_vars
The parsed environment variables from the string. The variable names are dict keys and the variable values are dict values.