cobra.io.web.abstract_model_repository
======================================

.. py:module:: cobra.io.web.abstract_model_repository

.. autoapi-nested-parse::

   Provide an abstract base class that describes a remote model repository.



Classes
-------

.. autoapisummary::

   cobra.io.web.abstract_model_repository.AbstractModelRepository


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

.. py:class:: AbstractModelRepository(*, url: Union[httpx.URL, str], **kwargs)

   Bases: :py:obj:`abc.ABC`


   Define an abstract base class that describes a remote model repository.

   .. attribute:: name

      The name of the remote repository.

      :type: str


   .. py:attribute:: _progress


   .. py:attribute:: name
      :type:  str
      :value: 'Abstract'



   .. py:attribute:: _url


   .. py:property:: url
      :type: httpx.URL


      Return the repository's URL.


   .. py:method:: get_sbml(model_id: str) -> bytes
      :abstractmethod:


      Attempt to download an SBML document from the repository.

      :param model_id: The identifier of the desired metabolic model. This is typically repository
                       specific.
      :type model_id: str

      :returns: A gzip-compressed, UTF-8 encoded SBML document.
      :rtype: bytes



