decentriq_platform.legacy.compute
Classes
DriverTaskConfig
DriverTaskConfig(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google.protobuf.pyext._message.CMessage
- google.protobuf.message.Message Instance variables
noop
: Field gcg.DriverTaskConfig.noop
staticContent
: Field gcg.DriverTaskConfig.staticContent
Noop
Noop(
name: str,
dependencies: List[str] = [],
)
Computation node which does not perform any operation and produces an empty output. This is mostly used to allow users to test the execution of other computation nodes without giving access to the results.
Ancestors (in MRO)
- decentriq_platform.legacy.node.Node
NoopConfig
NoopConfig(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google.protobuf.pyext._message.CMessage
- google.protobuf.message.Message
StaticContent
StaticContent(
name: str,
content: bytes,
dependencies: List[str] = [],
)
Computation node which outputs the content specified in its configuration. This is mostly used to allow users to specify dependencies with a static content, which are part of the DCR definition.
Create a node with the given name and content.
In case the source of the content is a file on your local machine, you can open the file in binary mode before reading it:
# Note the "rb" argument
with open("my_script.py", "rb") as data:
my_script_content = data.read()
# my_script_content can now be passed to the StaticContent constructor
Ancestors (in MRO)
- decentriq_platform.legacy.node.Node
StaticContentConfig
StaticContentConfig(
*args,
**kwargs,
)
A ProtocolMessage
Ancestors (in MRO)
- google.protobuf.pyext._message.CMessage
- google.protobuf.message.Message Instance variables
content
: Field gcg.StaticContentConfig.content