ServerRuntime#
- class tierkreis.client.server_client.ServerRuntime(channel: Channel)[source]#
Bases:
RuntimeClient
Client for a tierkreis server connected over a GRPC channel.
Methods
Retrieve the namespaces and functions available on the runtime.
Execute a tierkreis graph on the runtime.
Blocking version of run_graph.
Socket address (host and port) of the server.
Type check the graph on the runtime and return a new type-annotated graph.
Attributes
Whether the runtime supports type-checking graphs.
- async get_signature(loc: Location = Location(location=[])) Signature [source]#
Retrieve the namespaces and functions available on the runtime.
- async run_graph(graph: TierkreisGraph, loc: Location = Location(location=[]), /, **py_inputs: Any) Dict[str, TierkreisValue] [source]#
Execute a tierkreis graph on the runtime. Inputs are taken as keyword arguments and each keyword argument must match an input port of the graph. Non-tierkreis values will be converted to tierkreis values if possible.
- run_graph_block(graph: TierkreisGraph, /, **py_inputs: Any) Dict[str, TierkreisValue] [source]#
Blocking version of run_graph.
- async type_check_graph(graph: TierkreisGraph, loc: Location = Location(location=[])) TierkreisGraph [source]#
Type check the graph on the runtime and return a new type-annotated graph.