query-farm-flight-server
A robust Python framework for building Apache Arrow Flight servers that integrate seamlessly with the Airport extension for DuckDB.
This framework enables secure, efficient, and scalable server implementations with features such as authentication, schema management, and predicate pushdown for data queries.
🚀 Key Features
- ✅ Authentication & Authorization: Pluggable backends for secure access control
- 📚 Schema & Table Management: Full support for schema evolution and DDL operations
- 📈 Rate Limiting & Usage Tracking: Monitor and control client usage
- 🧩 Extensible & Type-Safe: Built for safe and scalable extension
- ☁️ AWS Integration: Support for S3 storage and DynamoDB-based authentication
🛰 Arrow Flight Server Support
Designed to simplify the development of Arrow Flight servers:
- Generic, reusable base classes for implementing Arrow Flight endpoints
- Standardized handlers for all major data operations
- Supports both streaming and batch workflows
- Typed parameter parsing and serialization for safer code
🔐 Authentication System
Unified interface for multiple authentication backends:
- In-memory backend for local development and tests
- DynamoDB backend for scalable, persistent auth
- Naive implementation for prototyping
- Token-based auth with built-in rate limiting
🔄 Data Serialization
Efficient and type-safe serialization for Airport-compatible servers:
- Parameter serialization using MessagePack
- Record batch transfer using Arrow IPC
- Support for DuckDB expression (de)serialization
- Optimized binary payloads for Arrow Flight actions
🛠 Admin CLI
Built-in command-line tool for managing and monitoring your server:
- Create and manage user accounts and tokens
- Monitor usage and generate reports
- Manage configuration settings
🧩 Designed for Extension
Whether you're integrating new storage backends, customizing authentication, or implementing complex business logic, query-farm-flight-server is built to scale with your needs while keeping your codebase clean and type-safe.
Getting Started
Installation
pip install query-farm-flight-server
Development
This python module is designed to be extended for specific database backends. Implement the abstract methods in BasicFlightServer to create a custom server for your specific data source.
The project maintains strict type safety through Python's typing system and Pydantic models, ensuring robust API contracts.
Author
This Python module was created by Query.Farm.
License
MIT Licensed.
Metadata
Release files for query-farm-flight-server 0.1.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| query_farm_flight_server-0.1.17.tar.gz | 24.1 kB | Without provenance | Details for query_farm_flight_server-0.1.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| query_farm_flight_server-0.1.17-py3-none-any.whl | Python 3 | none | any | Details for query_farm_flight_server-0.1.17-py3-none-any.whl |
Total release size: 56.2 kB
Release files / query_farm_flight_server-0.1.17.tar.gz
| Download URL | query_farm_flight_server-0.1.17.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5797872e493df5e33daad0ba513558b9c6e033b9d60d9db5b5bab1704e87eeb
|
|
BLAKE2b-256 checksum How to use checksums |
899f8334b5ad6399518554b33dab94c0295cd4a497fe326fe201b95d9aa92e43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / query_farm_flight_server-0.1.17-py3-none-any.whl
| Download URL | query_farm_flight_server-0.1.17-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3acaef9b03c1b633f685854d4e40d291788b977072d99c0c6c11cf2cb367c99a
|
|
BLAKE2b-256 checksum How to use checksums |
0f88ad64f2435bea18f3aaa274402fefdb7dee265871ee9a6bb94c3d74c75b2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for query-farm-flight-server 0.1.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.