jina.clients package

Module contents

Module wrapping the Client of Jina.

jina.clients.Client(asyncio: Optional[bool] = False, host: Optional[str] = '0.0.0.0', port_expose: Optional[int] = None, protocol: Optional[str] = 'GRPC', proxy: Optional[bool] = False, **kwargs)Union[AsyncWebSocketClient, WebSocketClient, AsyncGRPCClient, GRPCClient, HTTPClient, AsyncHTTPClient][source]

Jina Python client.

Parameters
  • args (Optional[ForwardRef]) – Namespace args.

  • kwargs – Additional arguments.

Return type

Union[ForwardRef, ForwardRef, ForwardRef, ForwardRef, ForwardRef, ForwardRef]

Returns

An instance of GRPCClient or WebSocketClient.