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 the repository located at host on the backend with alias name (see audbackend.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 the open() method, e.g.

backend = audbackend.backend.FileSystem(host, repo)
backend.open()
Parameters
  • name (str) – backend alias

  • host (str) – host address

  • repository (str) – repository name

  • interface (type[Base]) – interface class

  • interface_kwargs (Optional[dict]) – keyword arguments for interface class

Return type

Base

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