Skip to main content

Aflight: simple Arrow Flight API builder/runner

Loosely inspired by Flask

TL;DR

Server:

Create app.py

import aflight

app = aflight.Aflight()

@app.command("predict")
def predict(batch):
    result = do_something_with(batch)
    return [result]

To Run:

aflight

Client:

from aflight.client import predict

data = some_pandas_data()
print(predict(data))

Why?

Current kserve, torch/serve etc. APIs are too reliant on HTTP request/response paradigm

Using Arrow as a data format and Arrow Flight as a service API produces a much better interface:

  • standard
  • has schema
  • fast
  • columnar
  • batch-able

Metadata

Release files for aflight 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for aflight 0.2.4
File Interpreter ABI Platform Actions
aflight-0.2.4-py3-none-any.whl Python 3 none any Details for aflight-0.2.4-py3-none-any.whl

Release files / aflight-0.2.4-py3-none-any.whl

Download URL aflight-0.2.4-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
436217ddff6390afe37f691f09cef54cdeac1c7f992e38f93a9fb58307cebb32
BLAKE2b-256 checksum
How to use checksums
fb48b0697b34868188293934aff0ddf2a80ef29460679f3fa4794fa9338d70f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for aflight 0.2.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page