access()¶
- audbackend.access(name, host, repository, *, interface=<class 'audbackend.core.interface.versioned.Versioned'>, interface_kwargs=None)[source]¶
Access repository.
Returns an
interface
instance to access therepository
located athost
on the backend with aliasname
(seeaudbackend.register()
).Warning
audbackend.access()
is deprecated and will be removed in version 2.2.0. Repositories on backends are instead accessed by instantiating the corresponding backend class, and connecting to it using theopen()
method, e.g.backend = audbackend.backend.FileSystem(host, repo) backend.open()
- Parameters
- Return type
- Returns
interface object
- Raises
BackendError – if an error is raised on the backend, e.g. repository does not exist
ValueError – if no backend class with alias
name
has been registered