config

class audmodel.config[source]

Get/set configuration values for the audmodel module.

The configuration values are read in during module import from the configuration file ~/.config/audmodel.yaml. You can change the configuration values after import, by setting the attributes directly. The cache related configuration value config.CACHE_ROOT can be overridden by the AUDMODEL_CACHE_ROOT environment variable.

Examples

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

CACHE_ROOT

config.CACHE_ROOT = '~/audmodel'

Default cache folder for storing models.

REPOSITORIES

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

Repositories, will be iterated in given order.

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