Skip to main content

FastAPI and Arrow Flight integrated server offering efficient dual-protocol support for both REST and gRPC data streaming.

Project description

FastFlight

FastAPI + Arrow Flight Server

Introduction

This project integrates a FastAPI server with an embedded Arrow Flight server, offering a dual-protocol solution for handling both HTTP REST and gRPC requests efficiently.

  • FastAPI Server: Provides a robust and high-performance HTTP REST service.
  • Arrow Flight Server: Embedded within the FastAPI application, it directly handles gRPC requests, enabling fast and scalable data retrieval.
  • REST to Flight Integration: A specialized REST endpoint forwards data requests to the Arrow Flight server, streaming the data back to the client seamlessly.

How does it work?

Assuming the flight server is running, a user can create a client helper and use it to get data from various data sources. See the example in client.client_helpers.py

How to add a new data source type?

  1. Add a new data source type to the enum in models/data_source
  2. Add a new params class in models/params. Make sure the new params class is registered with the new data source type
  3. Add a new data service to handle the new params

Better logging

See src/fastflight/utils/custom_logging.py

Development Settings

  1. Create a venv
  2. pip install -r requirements.txt
  3. uvicorn fastflight.main:app --reload --app-dir src

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastflight-0.1.3.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastflight-0.1.3-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file fastflight-0.1.3.tar.gz.

File metadata

  • Download URL: fastflight-0.1.3.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for fastflight-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8542dd740f81c921a6d74e6226942c1c52ba97105abbeb3fbd84f52e7739e948
MD5 594d6da0fbd40a5dc0738f3bffc5a938
BLAKE2b-256 56f98050177ad1203535756f686fa691e4b7e875b8f7f525e040988d0dfe196b

See more details on using hashes here.

File details

Details for the file fastflight-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: fastflight-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for fastflight-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fffc77142a3cd418e9ba29ef20f7e90062240d98a595d12fdcb8e9044fa7c88f
MD5 cd067260792246c2259cf3ef11dbfacf
BLAKE2b-256 472ec07e6168831c63c83400551c2ac7e9b172839c0d422b42fd5534fc3e32f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page