config¶
- class audmodel.config[source]¶
Get/set configuration values for the
audmodelmodule.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 valueconfig.CACHE_ROOTcan be overridden by theAUDMODEL_CACHE_ROOTenvironment 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:audmodel.Repository.name: repository name, e.g."audmodel-public"audmodel.Repository.backend: backend name, e.g."s3"audmodel.Repository.host: host name, e.g."s3.dualstack.eu-north-1.amazonaws.com"