Machine learning prediction serving
Project description
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:
- 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)
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
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size ServeIt-0.0.9-py2.py3-none-any.whl (17.5 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size ServeIt-0.0.9.tar.gz (8.8 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for ServeIt-0.0.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c726097593cc6ee964b4d05745fcb7380978c1d59b59674194a3bed48b8b1f2 |
|
MD5 | 7659c171c444e8b436855ec09dd90a17 |
|
BLAKE2-256 | f43fdfe6e4c070bc965af0da6bd886ad57bdf142d9ab0053d6abd2547ec8c612 |