local_storage#
Submodules#
Package Contents#
- class local_storage.LocalStorage#
Bases:
auto_archiver.core.StorageBase class for implementing storage modules in the media archiving framework.
Subclasses must implement the get_cdn_url and uploadf methods to define their behavior.
- get_cdn_url(media: auto_archiver.core.Media) str#
Returns the URL of the media object stored in the CDN.
- upload(media: auto_archiver.core.Media, **kwargs) bool#
- uploadf(file: IO[bytes], key: str, **kwargs: dict) bool#
Uploads (or saves) a file to the storage service/location.