Skip to main content

Machine learning prediction serving

Project description

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:

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

ServeIt-0.0.9.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

ServeIt-0.0.9-py2.py3-none-any.whl (17.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ServeIt-0.0.9.tar.gz.

File metadata

  • Download URL: ServeIt-0.0.9.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ServeIt-0.0.9.tar.gz
Algorithm Hash digest
SHA256 bdd9b68e7c0876197d752a36e8ed9b4a2b52414d6b60bf382f6ec4a3a6801959
MD5 1dd59f5c7739bf960217de0ec04c0462
BLAKE2b-256 f683bda15c52f95b802f7da9165d076e6f4d9601a385b278f81fb8a2706072cb

See more details on using hashes here.

File details

Details for the file ServeIt-0.0.9-py2.py3-none-any.whl.

File metadata

  • Download URL: ServeIt-0.0.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for ServeIt-0.0.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9c726097593cc6ee964b4d05745fcb7380978c1d59b59674194a3bed48b8b1f2
MD5 7659c171c444e8b436855ec09dd90a17
BLAKE2b-256 f43fdfe6e4c070bc965af0da6bd886ad57bdf142d9ab0053d6abd2547ec8c612

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