Skip to main content

Host an mlservicewrapper service using HTTP

Project description

Release PyPI Latest Release

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


Download files

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

Source Distribution

mlservicewrapper-host-http-0.5.1.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

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