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.4.1a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f6b590cd6379b8ea085c02cc82d4389b69f06782d271dc57dd9783ee58d2375 |
|
MD5 | 6623674f612c7363ea268b37ca82d69d |
|
BLAKE2b-256 | 6c4d6ac1332b7035ad1b1144b15ffb3b37e3e2335884bf538e75667e4c22d481 |
Close
Hashes for mlservicewrapper_host_http-0.4.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d35529e1c3e8a478c32d64d2418d7ea8878d6b04881cc14e6f9a74c5cc2314 |
|
MD5 | a3659ea721e72b82e3342c61ba45864c |
|
BLAKE2b-256 | d3be28cb268cbd59c0e3517ce7681852cb6266bfd5ff2817ba74081c8f15d70f |