Skip to main content

Can only serve machine learning 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

karlovic-0.1.4b0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

karlovic-0.1.4b0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file karlovic-0.1.4b0.tar.gz.

File metadata

  • Download URL: karlovic-0.1.4b0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1031-azure

File hashes

Hashes for karlovic-0.1.4b0.tar.gz
Algorithm Hash digest
SHA256 7da7b41a45bf40d5a1fd8e1a11508a19b8b6737b8bbe6ce9bf63ccf3f21056ad
MD5 d817614fefc6f7c05f12f2a5e0f17309
BLAKE2b-256 dc3253ffe182ee4057819d4322c892973a5715aa70f2cf3f29d2a99349827b38

See more details on using hashes here.

File details

Details for the file karlovic-0.1.4b0-py3-none-any.whl.

File metadata

  • Download URL: karlovic-0.1.4b0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1031-azure

File hashes

Hashes for karlovic-0.1.4b0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bd1cee13db5f009a00e63d3ff8cf69b76dc1780f0c166216d7484984586fd42
MD5 e6a598968ed01588f1d3ddbaceaf6b40
BLAKE2b-256 a1ce441089239f59480222f318a24425d3f46db1fe99663028a8e36b96a879f3

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