:py:mod:`cobra.io.web.cobrapy_repository` ========================================= .. py:module:: cobra.io.web.cobrapy_repository .. autoapi-nested-parse:: Provide functions for loading metabolic models from local package data. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: cobra.io.web.cobrapy_repository.Cobrapy .. py:class:: Cobrapy(**kwargs) Bases: :py:obj:`cobra.io.web.abstract_model_repository.AbstractModelRepository` Define a concrete implementation of the cobrapy (local package) repository. Attributes ---------- name : str The name of the Cobrapy repository. .. py:attribute:: name :type: str :value: 'Cobrapy' .. py:method:: get_sbml(model_id: str) -> bytes Attempt to open an SBML document from the local 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