geovista.config

geovista.config#

Provide geovista resource configuration.

The resources dictionary defines the options used to configure the location of various geovista resources.

The following resources dictionary keys are defined:

The resources dictionary cache_dir may be overridden at a package system or environment level by creating a siteconfig.py file in the geovista package installation root directory and defining an update_config function that updates the resources dictionary. For example:

def update_config(resources: dict[str, str]) -> None:
    resources["cache_dir"] = "/var/cache/geovista"

The user may override both the default and package level configuration by defining an update_config function within a geovistaconfig user site-packages module.

Notes#

Added in version 0.1.0.

Module Contents#

geovista.config.resources: dict#

Resources configuration dictionary.