This directory contains a minimal example of an HTTP server implemented in Python using the FastAPI framework and the Uvicorn web server. This example:
To run this example:
pip install fastapi pip install "uvicorn[standard]" pip install pyarrow uvicorn server:app --port 8008
[!NOTE] This example requires Starlette 0.38.0 or newer, which added support for
memoryviewinStreamingResponse. If using an older version of Starlette, change both instances of:with sink.getbuffer() as buffer: yield bufferto:
yield sink.getvalue()