Skip to main content

Light REST API for machine learned models

Project description

README

Build status Build Status Windows https://circleci.com/gh/sdpython/lightmlrestapi/tree/master.svg?style=svg https://badge.fury.io/py/lightmlrestapi.svg MIT License Requirements Status https://codecov.io/github/sdpython/lightmlrestapi/coverage.svg?branch=master GitHub Issues Waffle Notebook Coverage

Links:

lightmlrestapi implements a light machine learning REST API based on falcon. You can test a dummy wsgi server by running:

start_mlrestapi --name=dummy

And then query it with:

import requests
import ujson
features = ujson.dumps({'X': [0.1, 0.2]})
r = requests.post('http://127.0.0.1:8081', data=features)
print(r)
print(r.json())

It should return:

{'Y': [[0.4994216179, 0.4514893599, 0.0490890222]]}

History

current - 2018-11-14 - 0.00Mb

  • 6: allow a zip file which contains data and code (2018-11-13)

  • 9: add version number to REST API (2018-11-13)

  • 4: add authentification to the rest api (2018-11-13)

0.1.88 - 2018-11-05 - 0.11Mb

  • 8: allow clear logs (2018-11-02)

  • 5: add a load function (2018-11-02)

  • 3: add ip address in the logging (2018-04-15)

  • 2: add encrypted logging (2018-04-15)

  • 1: fix gallery of examples (style) (2018-01-05)

0.1.37 - 2017-12-06 - 0.10Mb

Project details


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

lightmlrestapi-0.1.111-py3-none-any.whl (128.8 kB view details)

Uploaded Python 3

File details

Details for the file lightmlrestapi-0.1.111-py3-none-any.whl.

File metadata

File hashes

Hashes for lightmlrestapi-0.1.111-py3-none-any.whl
Algorithm Hash digest
SHA256 1c6e5ae171457293cc306e44c063b35a2cac172fa6327abdb835974c767e3d01
MD5 b2340a6ec85913d8994a2bf4f9c81e76
BLAKE2b-256 7e110089a2a4ffef8e534c99cc523ca3465e290362a9b2330f4e06babd7cb74e

See more details on using hashes here.

Supported by

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