storage package¶
Submodules¶
tusclient.storage.interface module¶
Interface module defining a url storage API.
- class tusclient.storage.interface.Storage¶
Bases:
object- abstract get_item(key)¶
Return the tus url of a file, identified by the key specified.
- Args:
key[str]: The unique id for the stored item (in this case, url)
- Returns:
url[str]
- abstract remove_item(key)¶
Remove/Delete the url value under the unique key from storage.
- abstract set_item(key, value)¶
Store the url value under the unique key.
- Args:
key[str]: The unique id to which the item (in this case, url) would be stored.
value[str]: The actual url value to be stored.