pyarrow.flight.ClientMiddlewareFactory#

classpyarrow.flight.ClientMiddlewareFactory#

Bases:_Weakrefable

A factory for new middleware instances.

All middleware methods will be called from the same thread as theRPC method implementation. That is, thread-locals set in theclient are accessible from the middleware itself.

__init__(*args,**kwargs)#

Methods

__init__(*args, **kwargs)

start_call(self, info)

Called at the start of an RPC.

start_call(self,info)#

Called at the start of an RPC.

This must be thread-safe and must not raise exceptions.

Parameters:
infoCallInfo

Information about the call.

Returns:
instanceClientMiddleware

An instance of ClientMiddleware (the instance to use forthe call), or None if this call is not intercepted.