atlos_feeder_db_storage#

Submodules#

Package Contents#

class atlos_feeder_db_storage.AtlosFeederDbStorage#

Bases: auto_archiver.core.Feeder, auto_archiver.core.Database, auto_archiver.core.Storage

Base class for implementing feeders in the media archiving framework.

Subclasses must implement the __iter__ method to define platform-specific behavior.

setup() requests.Session#

create and return a persistent session.

failed(item: auto_archiver.core.Metadata, reason: str) None#

Mark an item as failed in Atlos, if the ID exists.

fetch(item: auto_archiver.core.Metadata) auto_archiver.core.Metadata | bool#

check and fetch if the given item has been archived already, each database should handle its own caching, and configuration mechanisms

done(item: auto_archiver.core.Metadata, cached: bool = False) None#

Mark an item as successfully archived in Atlos.

get_cdn_url(_media: auto_archiver.core.Media) str#

Return the base Atlos URL as the CDN URL.

upload(media: auto_archiver.core.Media, metadata: auto_archiver.core.Metadata | None = None, **_kwargs) bool#

Upload a media file to Atlos if it has not been uploaded already.

uploadf(file: IO[bytes], key: str, **kwargs: dict) bool#

Upload a file-like object; not implemented.