ServerRuntime#

class tierkreis.client.server_client.ServerRuntime(channel: Channel)[source]#

Bases: RuntimeClient

Client for a tierkreis server connected over a GRPC channel.

Methods

get_signature

Retrieve the namespaces and functions available on the runtime.

run_graph

Execute a tierkreis graph on the runtime.

run_graph_block

Blocking version of run_graph.

socket_address

Socket address (host and port) of the server.

type_check_graph

Type check the graph on the runtime and return a new type-annotated graph.

Attributes

can_type_check

Whether the runtime supports type-checking graphs.

property can_type_check: bool#

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.

socket_address() str[source]#

Socket address (host and port) of the server.

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.