grai_client
endpoints
v1
utils

process_node_id

def process_node_id(
    client: ClientV1,
    grai_type: NodeIdTypes,
    options: ClientOptions = ClientOptions()
) -> NodeIdTypes

Process a NodeID object, either by returning if it has a known id, or by getting the id from the server.

Arguments:

client (ClientV1): grai_type (NodeIdTypes):

  • options ClientOptions, optional - (Default value = ClientOptions())

Returns:

MockClientV1 Objects

class MockClientV1(ClientV1)

A mock client that can be used for testing.