Skip to main content

Foxcross

Code style: black License Build Status Build status PyPI codecov

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.5.0

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

Source distribution (sdist)

Source distribution for foxcross 0.5.0
File Size Uploaded
foxcross-0.5.0.tar.gz 7.8 kB Details

Built distribution (wheel)

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

Total release size: 16.4 kB

Release files / foxcross-0.5.0.tar.gz

Download URL foxcross-0.5.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2faa65dbb3162b3a33d8460fb07d52b35f4951ab518df43d676799dde0d0fb6f
BLAKE2b-256 checksum
How to use checksums
b53fded2486ceaa0166dcf7c05799a433304214ab449fc81fd7b1eb9fcbd667b
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-21-generic

Release files / foxcross-0.5.0-py3-none-any.whl

Download URL foxcross-0.5.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e986d21e4de59312b8ce25b92f3b5395add723ca97e1816d1652ec88554ca180
BLAKE2b-256 checksum
How to use checksums
99b551c779f64bbc60be18862aa212f55d6700db8e5b327882a1494f280fa78f
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-21-generic

Release history Release notifications | RSS feed

0.9.0

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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