Machine learning prediction serving
Project description
ServeIt lets you easily serve model predictions and supplementary information from a RESTful API. Current features include:
Model inference serving via RESTful API endpoint
Extensible library for inference-time data loading, preprocessing, input validation, and postprocessing
Supplementary information endpoint creation
Automatic JSON serialization of responses
Configurable request and response logging (work in progress)
Installation: Python 2.7 and Python 3.6
Installation is easy with pip: pip install serveit
Usage:
Deploy your model clf to an API endpoint with as little as one line of code:
from serveit.server import ModelServer
# initialize server with a model and a method to use for predictions
# then 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 additional usage.
Supported libraries
Scikit-Learn
Keras
PyTorch
Coming soon:
TensorFlow
Building
You can build locally with: python setup.py
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ServeIt-0.0.5a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef13eb54a42a74b78bafb579b0473a0f01287be45c3b6b8b862ac55fd9c4158 |
|
MD5 | 0f84d3e60a389afee648d1fe42be07e1 |
|
BLAKE2b-256 | 18c027b7f21ba99f0c36f675b5381790d6266571e10725ea4e158cd11ef730c2 |