jina.clients.base.grpc module#

class jina.clients.base.grpc.GRPCBaseClient(args=None, **kwargs)[source]#

Bases: jina.clients.base.BaseClient

A simple Python client for connecting to the gRPC gateway.

It manages the asyncio event loop internally, so all interfaces are synchronous from the outside.

static check_input(inputs=None, **kwargs)#

Validate the inputs and print the first request if success.

Parameters
  • inputs (Optional[InputType]) – the inputs

  • kwargs – keyword arguments

Return type

None

property client: jina.helper.T#

Return the client object itself

Return type

TypeVar(T)

Returns

the Client object

property inputs: InputType#

An iterator of bytes, each element represents a Document’s raw content.

inputs defined in the protobuf

Return type

InputType

Returns

inputs