pyarrow.flight.connect#

pyarrow.flight.connect(location,**kwargs)#

Connect to a Flight server.

Parameters:
locationstr,tuple, orLocation

Location to connect to. Either a URI like “grpc://localhost:port”,a tuple of (host, port), or a Location instance.

tls_root_certsbytes orNone

PEM-encoded.

cert_chain: str or None

If provided, enables TLS mutual authentication.

private_key: str or None

If provided, enables TLS mutual authentication.

override_hostnamestr orNone

Override the hostname checked by TLS. Insecure, use with caution.

middlewarelist orNone

A list of ClientMiddlewareFactory instances to apply.

write_size_limit_bytesint orNone

A soft limit on the size of a data payload sent to theserver. Enabled if positive. If enabled, writing a recordbatch that (when serialized) exceeds this limit will raise anexception; the client can retry the write with a smallerbatch.

disable_server_verificationbool orNone

Disable verifying the server when using TLS.Insecure, use with caution.

generic_optionslist orNone

A list of generic (string, int or string) options to pass tothe underlying transport.

Returns:
clientFlightClient