Skip to main content

AsyncIO serving for data science models

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

foxcross-0.5.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

foxcross-0.5.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file foxcross-0.5.0.tar.gz.

File metadata

  • Download URL: foxcross-0.5.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0a3 CPython/3.6.8 Linux/4.18.0-21-generic

File hashes

Hashes for foxcross-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2faa65dbb3162b3a33d8460fb07d52b35f4951ab518df43d676799dde0d0fb6f
MD5 8983a6900a6a71dcf4605a4a5ce0669f
BLAKE2b-256 b53fded2486ceaa0166dcf7c05799a433304214ab449fc81fd7b1eb9fcbd667b

See more details on using hashes here.

File details

Details for the file foxcross-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: foxcross-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0a3 CPython/3.6.8 Linux/4.18.0-21-generic

File hashes

Hashes for foxcross-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e986d21e4de59312b8ce25b92f3b5395add723ca97e1816d1652ec88554ca180
MD5 465028f28cfd3c0f64909bbafb87e381
BLAKE2b-256 99b551c779f64bbc60be18862aa212f55d6700db8e5b327882a1494f280fa78f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page