Skip to main content

Foxcross

Code style: black License Build Status Build status

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 to be served:

data.json

[1,2,3,4,5]

models.py

import foxcross

class AddOneModel(foxcross.ModelServing):
    test_data_path = "data.json"
    
    def predict(self, data):
        return [x + 1 for x in data]

if __name__ == "__main__":
    foxcross.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.2.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.2.0
File Size Uploaded
foxcross-0.2.0.tar.gz 7.2 kB Details

Built distribution (wheel)

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

Total release size: 15.4 kB

Release files / foxcross-0.2.0.tar.gz

Download URL foxcross-0.2.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4863c89894a4531cf14ce4940c948aa8f9f25d6becfc5a5c4523a47ae93241c5
BLAKE2b-256 checksum
How to use checksums
021f2a37d295f69cfb7993c4e5df81f98d136876597a5d16ba14c789f43ccfea
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.2.0-py3-none-any.whl

Download URL foxcross-0.2.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17a3d5a4b90b1fd01028dbe6a6701eac945a93d5d781fe2a71174b25619afc86
BLAKE2b-256 checksum
How to use checksums
6dbd4b132beb89cdfd6c1b9fba6fa2af62eb3d311031ab1b396ea2b8aedb81c7
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 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

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

This release

0.2.0 This release

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