daemon.clients package

Submodules

Module contents

class daemon.clients.JinaDClient(host, port, timeout=None, logger=None)[source]

Bases: object

JinaD Client

Parameters
  • host (str) – hostname of remote JinaD server

  • port (int) – port of remote JinaD server

  • timeout (Optional[float]) – default timeout for requests, defaults to None

property peas

Pea Client

Returns

Pea Client

property pods: Union[daemon.clients.pods.PodClient, daemon.clients.pods.AsyncPodClient]

Pod Client

Return type

Union[PodClient, AsyncPodClient]

Returns

Pod Client

property flows: Union[daemon.clients.flows.FlowClient, daemon.clients.flows.AsyncFlowClient]

Flow Client

Return type

Union[FlowClient, AsyncFlowClient]

Returns

Flow Client

property workspaces: Union[daemon.clients.workspaces.WorkspaceClient, daemon.clients.workspaces.AsyncWorkspaceClient]

Workspace Client

Return type

Union[WorkspaceClient, AsyncWorkspaceClient]

Returns

Workspace Client

property alive: bool

Check if JinaD is alive

Return type

bool

Returns

True if alive

property status: Optional[Dict]

Get the status of remote JinaD

Return type

Optional[Dict]

Returns

Dict object describing remote store

class daemon.clients.AsyncJinaDClient(host, port, timeout=None, logger=None)[source]

Bases: daemon.clients.JinaDClient

Async JinaD Client

async logs(id)[source]

Stream logs

Parameters

id (DaemonID) – id of the JinaD object

Return type

Awaitable

Returns

logs coroutine to be awaited