ersilia.setup package

Subpackages

Submodules

ersilia.setup.baseconda module

class ersilia.setup.baseconda.SetupBaseConda(config_json=None)[source]

Bases: object

A class to handle the setup of a base Conda environment for the model server.

find_closest_python_version(python_version)[source]

Finds the closest available Python version.

setup(org, tag)[source]

Creates a Conda environment to be used as base environment for the model server.

delete(org, tag)[source]

Deletes the specified Conda environment.

delete(org: str, tag: str) None[source]

Deletes the specified Conda environment.

Parameters:
  • org (str) – The organization name.

  • tag (str) – The tag in the format ‘0.0.0-py37’.

Return type:

None

find_closest_python_version(python_version: str) str[source]

Finds the closest available Python version.

Parameters:

python_version (str) – The desired Python version.

Returns:

The closest available Python version.

Return type:

str

setup(org: str, tag: str) None[source]

Creates a Conda environment to be used as base environment for the model server.

Parameters:
  • org (str) – The organization name (bentoml or ersiliaos).

  • tag (str) – The tag in the format ‘0.0.0-py37’.

Return type:

None

ersilia.setup.basedocker module

class ersilia.setup.basedocker.SetupBaseDocker(config_json=None)[source]

Bases: ErsiliaBase

A class to set up the base Docker image for Ersilia.

Parameters:

config_json (dict, optional) – Configuration settings in JSON format.

delete(org: str, tag: str) None[source]

Delete the Docker image.

Parameters:
  • org (str) – The organization name.

  • tag (str) – The tag for the Docker image.

Return type:

None

setup(org: str, tag: str) None[source]

Set up the Docker image.

Parameters:
  • org (str) – The organization name.

  • tag (str) – The tag for the Docker image.

Return type:

None

ersilia.setup.conda module

class ersilia.setup.conda.SetupConda[source]

Bases: object

Class to handle conda setup.

setup()[source]

Set up conda environment.

ersilia.setup.config module

class ersilia.setup.config.SetupConfig[source]

Bases: object

Class to handle configuration setup.

setup()[source]

Set up configuration.

ersilia.setup.profile module

class ersilia.setup.profile.SetupProfile[source]

Bases: object

Class to handle profile setup.

setup()[source]

Set up profile.

Module contents