17.1.1.3.1.1.1.1. cobra.io.web.abstract_model_repository

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

17.1.1.3.1.1.1.1.1. Module Contents

17.1.1.3.1.1.1.1.1.1. Classes

AbstractModelRepository

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

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

_progress[source]
name :str = Abstract[source]
property url(self) → httpx.URL[source]

Return the repository’s URL.

abstract get_sbml(self, 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