jina.clients package

Subpackages

Submodules

Module contents

Module wrapping the Client of Jina.

jina.clients.Client(**, asyncio: Optional[bool] = ‘False’, host: Optional[str] = “‘0.0.0.0’”, https: Optional[bool] = ‘False’, port: Optional[int] = ‘None’, protocol: Optional[str] = “‘GRPC’”, proxy: Optional[bool] = ‘False’, results_as_docarray: 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.