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'
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:audb.Repository.name
: repository name, e.g."audb-public"
audb.Repository.backend
: backend name, e.g."s3"
audb.Repository.host
: host name, e.g."s3.dualstack.eu-north-1.amazonaws.com"