exists()

audmodel.exists(uid)[source]

Check if a model with this ID exists.

Parameters

uid (str) – unique model ID or short ID for latest version

Return type

bool

Returns

True if a model with this ID is found

Raises

audbackend.BackendError – if connection to repository on backend cannot be established

Examples

>>> exists("d4e9c65b-3.0.0")
True
>>> exists("d4e9c65b-9.9.9")
False