Skip to main content

decentriq_platform.analytics.python_environment_compute_nodes

Classes

PythonEnvironmentComputeNode

PythonEnvironmentComputeNode(
id: str,
name: str,
requirements_txt: str,
dcr_id: str,
session: Session,
node_definition: NodeDefinition,
*,
client: Client,
)

Class representing an Environment.

Initialise an instance of a PythonEnvironmentComputationNode.

Parameters:

  • id: ID of the PythonEnvironmentComputeNode.
  • name: Name of the PythonEnvironmentComputeNode.
  • requirements_txt: Content of the requirements.txt file which list the packages for the environment.
  • dcr_id: ID of the DCR the node is a member of.
  • session: The session with which to communicate with the enclave.
  • 'node_definition': Definition with which the node was built.
  • client: A Client object which can be used to perform operations such as uploading data and retrieving computation results.

Ancestors (in MRO)

  • decentriq_platform.analytics.high_level_node.ContainerComputationNode
  • decentriq_platform.analytics.high_level_node.ComputationNode
  • decentriq_platform.analytics.high_level_node.HighLevelNode
  • abc.ABC

get_installation_report_as_dict

def get_installation_report_as_dict(
self,
)> Optional[Dict[str, str]]

Retrieve the virtual environment creation report to this PythonEnvironmentComputeNode.

PythonEnvironmentComputeNodeDefinition

PythonEnvironmentComputeNodeDefinition(
name: str,
requirements_txt: str,
id: Optional[str] = None,
)

Class representing a Python Environment Definition.

Initialise a PythonEnvironmentDefinition.

Parameters:

  • name: Name of the PythonEnvironmentDefinition.
  • requirements_txt: Content of the requirements.txt file which list the packages for the environment.

Ancestors (in MRO)

  • decentriq_platform.analytics.node_definitions.NodeDefinition
  • abc.ABC Instance variables

required_workers :

build

def build(
self,
dcr_id: str,
node_definition: NodeDefinition,
client: Client,
session: Session,
)> PythonEnvironmentComputeNode

Construct a PythonEnvironmentComputeNode from the Node Definition.

Parameters:

  • dcr_id: ID of the DCR the node is a member of.
  • node_definition: Definition of the Python Environment Compute Node.
  • client: A Client object which can be used to perform operations such as uploading data and retrieving computation results.
  • session: The session with which to communicate with the enclave.