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.serving import ModelServing, run_model_serving
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.4.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.4.0.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| foxcross-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.3 kB
Release files / foxcross-0.4.0.tar.gz
| Download URL | foxcross-0.4.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66230606ebd0a1d5ef6f889b529316123e794d9b1f6ba2765239358dff6a2c79
|
|
BLAKE2b-256 checksum How to use checksums |
8fec40ec2406af00edd195e212af80edbe37cb22278baf10f74b2a009e2308a4
|
| 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.4.0-py3-none-any.whl
| Download URL | foxcross-0.4.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ebffa554059f802eef2863ae75f47931d2adb390257a08022088c47b79daf67
|
|
BLAKE2b-256 checksum How to use checksums |
c78272f80226cb0c707a4e50016e5f0c51086f787da19173bc767fd58aa1f736
|
| 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
|