create()

audbackend.create(name, host, repository)[source]

Create repository.

Creates repository located at host on the backend with alias name (see audbackend.register()).

Note

For legacy reasons the method returns an (undocumented) instance of audbackend.interface.Versioned. Since the return value might be removed in a future version it is not recommended to use it.

Warning

audbackend.create() is deprecated and will be removed in version 2.2.0. Repositories on backends are instead created by the class method create() for the desired backend, e.g. audbackend.backend.FileSystem.create().

Parameters
  • name (str) – backend alias

  • host (str) – host address

  • repository (str) – repository name

Raises
  • BackendError – if an error is raised on the backend, e.g. repository exists already or cannot be created

  • ValueError – if no backend class with alias name has been registered