Skip to main content

ServeIt

Build Status Codacy Grade Badge Codacy Coverage Badge PyPI version

ServeIt lets you serve model predictions and supplementary information from a RESTful API using your favorite Python ML library in as little as one line of code:

from serveit.server import ModelServer
from sklearn.linear_model import LogisticRegression
from sklearn.datasets import load_iris

# fit logistic regression on Iris data
clf = LogisticRegression()
data = load_iris()
clf.fit(data.data, data.target)

# initialize server with a model and start serving predictions
ModelServer(clf, clf.predict).serve()

Your new API is now accepting POST requests at localhost:5000/predictions! Please see the examples directory for detailed examples across domains (e.g., regression, image classification), including live examples.

Features

Current ServeIt features include:

  1. Model inference serving via RESTful API endpoint

  2. Extensible library for inference-time data loading, preprocessing, input validation, and postprocessing

  3. Supplementary information endpoint creation

  4. Automatic JSON serialization of responses

  5. Configurable request and response logging (work in progress)

Supported libraries

The following libraries are currently supported: * Scikit-Learn * Keras * PyTorch

Installation: Python 2.7 and Python 3.6

Installation is easy with pip: pip install serveit

Building

You can build locally with: python setup.py

License

MIT

Please consider buying me a coffee if you like my work:

Metadata

Release files for ServeIt 0.0.9

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

Source distribution (sdist)

Source distribution for ServeIt 0.0.9
File Size Uploaded
ServeIt-0.0.9.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ServeIt 0.0.9
File Interpreter ABI Platform
ServeIt-0.0.9-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 26.3 kB

Release files / ServeIt-0.0.9.tar.gz

Download URL ServeIt-0.0.9.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bdd9b68e7c0876197d752a36e8ed9b4a2b52414d6b60bf382f6ec4a3a6801959
BLAKE2b-256 checksum
How to use checksums
f683bda15c52f95b802f7da9165d076e6f4d9601a385b278f81fb8a2706072cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/38.5.0 requests-toolbelt/0.8.0 tqdm/4.22.0 CPython/3.6.2

Release files / ServeIt-0.0.9-py2.py3-none-any.whl

Download URL ServeIt-0.0.9-py2.py3-none-any.whl
Size 17.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9c726097593cc6ee964b4d05745fcb7380978c1d59b59674194a3bed48b8b1f2
BLAKE2b-256 checksum
How to use checksums
f43fdfe6e4c070bc965af0da6bd886ad57bdf142d9ab0053d6abd2547ec8c612
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/38.5.0 requests-toolbelt/0.8.0 tqdm/4.22.0 CPython/3.6.2

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

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