aflight-0.2.4
توضیحات
Arrow Flight simple API service
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aflight-0.2.4 |
| نام | aflight |
| نسخه کتابخانه | 0.2.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Constantine Peresypkin |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/pkit/aflight/ |
| آدرس اینترنتی | https://pypi.org/project/aflight/ |
| مجوز | - |
# Aflight: simple Arrow Flight API builder/runner
Loosely inspired by [Flask](https://github.com/pallets/flask)
### TL;DR
Server:
Create `app.py`
```python
import aflight
app = aflight.Aflight()
@app.command("predict")
def predict(batch):
result = do_something_with(batch)
return [result]
```
To Run:
```bash
aflight
```
Client:
```python
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
نیازمندی
| مقدار | نام |
|---|---|
| ~=11.0.0 | pyarrow |
| ~=1.5.3 | pandas |
| ~=65.5.1 | setuptools |
| ~=8.1.3 | click |
نحوه نصب
نصب پکیج whl aflight-0.2.4:
pip install aflight-0.2.4.whl
نصب پکیج tar.gz aflight-0.2.4:
pip install aflight-0.2.4.tar.gz