config

class audb.config[source]

Get/set configuration values for the audb module.

The configuration values are read in during module import from the configuration file ~/.config/audb.yaml. You can change the configuration values after import, by setting the attributes directly. The caching related configuration values can be overwritten by environment variables.

Examples

>>> audb.config.CACHE_ROOT
'~/audb'
>>> audb.config.CACHE_ROOT = "~/caches/audb"
>>> audb.config.CACHE_ROOT
'~/caches/audb'

CACHE_ROOT

config.CACHE_ROOT = '~/audb'

Default user cache folder.

REPOSITORIES

config.REPOSITORIES = [Repository('audb-public', 's3.dualstack.eu-north-1.amazonaws.com', 's3')]

Repositories, will be iterated in given order.

A repository is defined by the object audb.Repository, containing the following attributes:

SHARED_CACHE_ROOT

config.SHARED_CACHE_ROOT = '/data/audb'

Shared cache folder.