module cli.uvicorn_cli

Short summary

module pyquickhelper.cli.uvicorn_cli

Simplified function versions.

source on GitHub

Functions

function

truncated documentation

uvicorn_app

Runs a uvicorn application. It should be used for testing not for production. Use host:post/redoc or host:post/docs

Documentation

Simplified function versions.

source on GitHub

pyquickhelper.cli.uvicorn_cli.uvicorn_app(path='dummy_db.db3', pwd='dummy', port=8798, host='127.0.0.1')[source]

Runs a uvicorn application. It should be used for testing not for production. Use host:post/redoc or host:post/docs to get a web page in order to submit files.

Parameters:
  • path – filename for the databse

  • pwd – password

  • host – host

  • port – port

Runs a uvicorn application

Runs a uvicorn application.

<<<

python -m pyquickhelper uvicorn_app --help

>>>

usage: uvicorn_app [-h] [-p PATH] [--pwd PWD] [-po PORT] [-ho HOST]

Runs a uvicorn application. It should be used for testing not for production.
Use ``host:post/redoc`` or ``host:post/docs`` to get a web page in order to
submit files.

optional arguments:
  -h, --help            show this help message and exit
  -p PATH, --path PATH  filename for the databse (default: dummy_db.db3)
  --pwd PWD             password (default: dummy)
  -po PORT, --port PORT
                        port (default: 8798)
  -ho HOST, --host HOST
                        host (default: 127.0.0.1)

source on GitHub