lidavidm commented on a change in pull request #84: URL: https://github.com/apache/arrow-cookbook/pull/84#discussion_r727090321
########## File path: python/source/flight.rst ########## @@ -0,0 +1,228 @@ +============ +Arrow Flight +============ + +Recipes related to leveraging Arrow Flight protocol + +.. contents:: + +Using an Arrow Flight RPC server +================================ + +Suppose you want to implement a service that can store, send and receive +parquet files using the Arrow Flight protocol, +``pyarrow`` provides an implementation framework in :mod:`pyarrow.flight` +and particularly through the :class:`pyarrow.flight.FlightServerBase` class. + +.. testcode:: + + import pathlib + import threading + + import pyarrow as pa + import pyarrow.flight + import pyarrow.parquet + + + class FlightServer(pa.flight.FlightServerBase): + + def __init__(self, location="grpc://0.0.0.0:8815", Review comment: Ah, in that case I agree. The port 0 trick might be nice as a mini-recipe perhaps (though it's mostly only useful for unit tests and examples). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org