ConfigurationΒΆ

audb can be configured with a ~/.config/audb.yaml file. The configuration file is read during import and will overwrite the default settings. The default settings are:

cache_root: ~/audb
shared_cache_root: /data/audb
repositories:
  - name: audb-public
    backend: s3
    host: s3.dualstack.eu-north-1.amazonaws.com

After loading audb they can be accessed or changed using audb.config.

>>> audb.config.CACHE_ROOT
'~/audb'
>>> audb.config.SHARED_CACHE_ROOT
'/data/audb'
>>> audb.config.REPOSITORIES
[Repository('audb-public', 's3.dualstack.eu-north-1.amazonaws.com', 's3')]
>>> audb.config.CACHE_ROOT = "/user/cache"
>>> audb.config.CACHE_ROOT
'/user/cache'