Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/source/python/api/flight.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ Authentication
:toctree: ../generated/

ClientAuthHandler
ClientAuthReader
ClientAuthSender
ServerAuthHandler
ServerAuthReader
ServerAuthSender

Errors
------
Expand Down
4 changes: 4 additions & 0 deletions python/pyarrow/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
CallInfo,
CertKeyPair,
ClientAuthHandler,
ClientAuthReader,
ClientAuthSender,
ClientMiddleware,
ClientMiddlewareFactory,
DescriptorType,
Expand Down Expand Up @@ -57,6 +59,8 @@
Result,
SchemaResult,
ServerAuthHandler,
ServerAuthReader,
ServerAuthSender,
ServerCallContext,
ServerMiddleware,
ServerMiddlewareFactory,
Expand Down
15 changes: 15 additions & 0 deletions python/pyarrow/tests/test_flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@ def test_import():
import pyarrow.flight # noqa


def test_auth_reader_sender_exports():
import pyarrow._flight as flight_impl
from pyarrow.flight import (
ClientAuthReader,
ClientAuthSender,
ServerAuthReader,
ServerAuthSender,
)

assert ClientAuthReader is flight_impl.ClientAuthReader
assert ClientAuthSender is flight_impl.ClientAuthSender
assert ServerAuthReader is flight_impl.ServerAuthReader
assert ServerAuthSender is flight_impl.ServerAuthSender


def resource_root():
"""Get the path to the test resources directory."""
if not os.environ.get("ARROW_TEST_DATA"):
Expand Down