s3_storage
==========

.. py:module:: s3_storage


Submodules
----------

.. toctree::
   :maxdepth: 1

   /autoapi/s3_storage/s3_storage/index




Package Contents
----------------

.. py:class:: S3Storage

   Bases: :py:obj:`auto_archiver.core.Storage`


   Base class for implementing storage modules in the media archiving framework.

   Subclasses must implement the `get_cdn_url` and `uploadf` methods to define their behavior.


   .. py:method:: setup() -> None


   .. py:method:: get_cdn_url(media: auto_archiver.core.Media) -> str

      Returns the URL of the media object stored in the CDN.



   .. py:method:: uploadf(file: IO[bytes], media: auto_archiver.core.Media, **kwargs: dict) -> None

      Uploads (or saves) a file to the storage service/location.



   .. py:method:: is_upload_needed(media: auto_archiver.core.Media) -> bool


   .. py:method:: file_in_folder(path: str) -> str


