ServeIt
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
License
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)
| File | Size | Uploaded | |
|---|---|---|---|
| ServeIt-0.0.9.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|