Host an mlservicewrapper service using HTTP
Project description
Host an mlservicewrapper.core.services.Service
as an HTTP API.
Testing locally
Using the development server is sufficient for testing, but should not be used in production.
Command Line Arguments
Parameter | Required? | Description | Format |
---|---|---|---|
--config | Yes | Path to service configuration file. | --config <path> |
--host | No | Host to bind to. Defaults to 127.0.0.1. | --host <host name> |
--port | No | Port to bind to. Defaults to 5000. | --host <host name> |
Deployment
Use gunicorn to run in production:
export SERVICE_CONFIG_PATH=/path/to/config.json
gunicorn -w 4 -k uvicorn.workers.UvicornWorker mlservicewrapper.host.http
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 Distribution
Built Distribution
Close
Hashes for mlservicewrapper-host-http-0.2.4a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8858d8068052f6b95dfc919e07203d295ec661907fca0a08a35222cf32bef1e4 |
|
MD5 | 0f38e3f7992bbddc3c7258174196122e |
|
BLAKE2b-256 | 4f0d354a7ecaaecdd2cadf216ee8cf61938b833b31404be1f64782db718b2b13 |
Close
Hashes for mlservicewrapper_host_http-0.2.4a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3354a9a40ae3056131e702610c5b909b6cf2d4020217c24ffa90a5108b34e443 |
|
MD5 | c7c65e34840a167b3ed3a88cf198c56a |
|
BLAKE2b-256 | 3f366610f6ecd6d79869ee5112cb4a21b9d8581bd05c2065267da1c8a295a6f5 |