core.formatter
==============

.. py:module:: core.formatter

.. autoapi-nested-parse::

   Base module for formatters – modular components that format metadata into media objects for storage.

   The most commonly used formatter is the HTML formatter, which takes metadata and formats it into an HTML file for storage.





Module Contents
---------------

.. py:class:: Formatter

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


   Base class for implementing formatters in the media archiving framework.

   Subclasses must implement the `format` method to define their behavior.


   .. py:method:: format(item: auto_archiver.core.Metadata) -> auto_archiver.core.Media
      :abstractmethod:


      Formats a Metadata object into a user-viewable format (e.g. HTML) and stores it if needed.



