Light REST API for machine learned models
Project description
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]]}
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
File details
Details for the file lightmlrestapi-0.1.37-py3-none-any.whl
.
File metadata
- Download URL: lightmlrestapi-0.1.37-py3-none-any.whl
- Upload date:
- Size: 107.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c42b28c770d77d3f88716483c7a4524129439a7a42327eca8054c71bfd9d064 |
|
MD5 | d9247a9ee48148c1cf112c0c1b2e8c2f |
|
BLAKE2b-256 | 720b29c16ff433bcce4668104ad506c0b275e9c47214196b7e6ff8f1800cd9e6 |