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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlservicewrapper-host-http-0.5.1.tar.gz.
File metadata
- Download URL: mlservicewrapper-host-http-0.5.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2911fd8e42a37a44e9c2ad90c5103c11bd5cf56077c38b44e31f6d2a1ff511b4
|
|
| MD5 |
c1776ed59bcab6b8420210e08776b15c
|
|
| BLAKE2b-256 |
4e44058f8816385c52fd7b2925f7cdf04ba4c94ab1ab1950461fdd7e50fef66e
|
File details
Details for the file mlservicewrapper_host_http-0.5.1-py3-none-any.whl.
File metadata
- Download URL: mlservicewrapper_host_http-0.5.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c58ef39fe58fce25647ce5fa886bb5f9ae04741265f07ae4f0543d3fc7e3078f
|
|
| MD5 |
1a0e13b847cd7d0b29c8b22dcfb805fc
|
|
| BLAKE2b-256 |
46fab7b03dc4040fef5befe28f5150a5a1e3e550bcf638e5931c4c750cdbd601
|