Provide an abstract base class that describes a remote model repository.
Module Contents
Classes
-
class cobra.io.web.abstract_model_repository.AbstractModelRepository(*, url: Union[httpx.URL, str], **kwargs)[source]
Bases: abc.ABC
Define an abstract base class that describes a remote model repository.
-
name[source]
The name of the remote repository.
- Type
str
-
property url: httpx.URL[source]
Return the repository’s URL.
-
_progress[source]
-
name: str = 'Abstract'[source]
-
abstract get_sbml(model_id: str) → bytes[source]
Attempt to download an SBML document from the repository.
- Parameters
model_id (str) – The identifier of the desired metabolic model. This is typically repository
specific.
- Returns
A gzip-compressed, UTF-8 encoded SBML document.
- Return type
bytes