Skip to main content

Machine learning prediction serving

Project description

Build Status Codacy Grade Badge Codacy Coverage Badge PyPI version

ServeIt lets you easily serve model predictions and supplementary information from a RESTful API. Current 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)

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

MIT

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.6a1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ServeIt-0.0.6a1-py2.py3-none-any.whl (17.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ServeIt-0.0.6a1.tar.gz.

File metadata

  • Download URL: ServeIt-0.0.6a1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ServeIt-0.0.6a1.tar.gz
Algorithm Hash digest
SHA256 0ff729a14228dde69afdb5c319f4a91d3bf5bbdef20a78f7f199d533e1fb71b8
MD5 b354f2751258249faef0067116c7bd0e
BLAKE2b-256 3a8909a568b95dcdb594590c2d075f41bf9f48a89241f31431502e4572b92b0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ServeIt-0.0.6a1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 58561a6785aabe3f4a959f716ebd2d4e9fb7fa2cd86b6e28d8ce8f8c604f4823
MD5 154db031902ca57cf1d9f70b9a5f449b
BLAKE2b-256 637e716cc63c03dcda075164026e6f8fdb1d5fd3a92549e1e935f1e1de012a15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page