🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

aflight

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aflight

Arrow Flight simple API service

0.2.4
PyPI
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts