GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rtlee9/serveit: Simple API serving for Python ML models

BranchesTags
Open more actions menu

Latest commit

 

History

126 Commits
126 Commits

Folders and files

NameName
Last commit message
Last commit date
examples
examples
 
 
serveit
serveit
 
 
tests
tests
 
 
.codacy.yml
.codacy.yml
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
_config.yml
_config.yml
 
 
coverage.sh
coverage.sh
 
 
requirements.txt
requirements.txt
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 

Repository files navigation

ServeIt

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:

Buy Me A Coffee

About

Simple API serving for Python ML models

serveit.ryanlee.site/

Topics

kerasmachine-learningmachine-learning-apipytorchrestful-apiscikit-learntensorflow

Resources

Readme
MIT license
Activity

Stars

32 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.