Foxcross
AsyncIO serving for data science models built on Starlette
Documentation: https://www.foxcross.dev/
Requirements: Python 3.6+
Quick Start
Installation using pip:
pip install foxcross
Create some test data and a simple model in the same directory to be served:
data.json
[1,2,3,4,5]
models.py
from foxcross.runner import run_model_serving
from foxcross.serving import ModelServing
class AddOneModel(ModelServing):
test_data_path = "data.json"
def predict(self, data):
return [x + 1 for x in data]
if __name__ == "__main__":
run_model_serving()
Run the model locally:
python models.py
Navigate to localhost:8000/predict-test/, and you should see the list incremented by 1.
You can visit localhost:8000/ to see all the available routes for your model.
Metadata
Release files for foxcross 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| foxcross-0.3.0.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| foxcross-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.3 kB
Release files / foxcross-0.3.0.tar.gz
| Download URL | foxcross-0.3.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
add94f06586aec21db9858c8f63d91ee314873aa889ba195d4e9b8fbc036fc01
|
|
BLAKE2b-256 checksum How to use checksums |
416fd03f558a85ec6d11feebcee3c8cb09182ac4b0815c963894183e19fd6494
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0a3 CPython/3.6.8 Linux/4.18.0-20-generic
|
Release files / foxcross-0.3.0-py3-none-any.whl
| Download URL | foxcross-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55a73ba2b2ef429ad173742b0ca2a4e702fe5e77d4c629ec9ebc249ea48e0c28
|
|
BLAKE2b-256 checksum How to use checksums |
c40f7d04202af0d1c0ae4df7f8be159664a26d27d1989efffb617c320df2e1f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0a3 CPython/3.6.8 Linux/4.18.0-20-generic
|