Simple library for serving models
Project description
NOTE: Currently in beta development. Breaking changes may happen at any time.
The Karlovic library aims to simplify the process of setting up a htts server that serves machine learning models.
Install
pip install karlovic
Usage
from karlovic import model_server
def bottle_configuration_function(bottle):
# Configure bottle
pass
plugins = [
SomePlugin,
...
]
app, run_server = model_server(plugins, bottle_configuration_function)
# Use the app decorator to define endpoints
@app.get('/hello')
def hello():
return "<h1>Hello World</h1>"
@app.post('/world')
def hello(image):
return "some response"
use_image_form(app, ['/world'])
# Creates GET '/world/form' that posts an
# image to '/world'
run_server()
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
karlovic-0.1.1b0-py3-none-any.whl
(15.1 kB
view hashes)
Close
Hashes for karlovic-0.1.1b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c207d92ef4355f2af27d1a7fdf6b158033e9a12caf99b23ca004c0130ef4b654 |
|
MD5 | 91e15e6b37c26607584558f21459be4d |
|
BLAKE2b-256 | 1adf478a17216f62bcfd936aa64c28275021516050854a4abca339958acaa501 |