Command lines

  1. Creates a https static web-application with authentification
  2. Creates a https web-application (Q&A) with authentification
  3. Creates a local web-application with very simple authentification
  4. Creates a local web-application with very simple authentification
  5. Creates a signed certificate

Creates a https static web-application with authentification

The command line runs a web application meant to be local as there is not https involved. It servers static content. The web app relies on starlette, the server relies on hypercorn. Example:

python -m mathenjeu local_https

With that application, every user can login with a unique password abc.

<<<

python -m mathenjeu local_https --help

>>>

--OUT--

--ERR--
/var/lib/jenkins/workspace/mathenjeu/mathenjeu_UT_37_std/_venv/bin/python3.7: No module named mathenjeu

(entrée originale : static_app.py:docstring of mathenjeu.cli.static_app.create_static_https_app, line 47)

Creates a https web-application (Q&A) with authentification

The command line runs a web application meant to be local as there is not https involved. It implements a Q&Q. The web app relies on starlette, the server relies on hypercorn. Example:

python -m mathenjeu qcm_https

With that application, every user can login with a unique password abc.

<<<

python -m mathenjeu qcm_https --help

>>>

--OUT--

--ERR--
/var/lib/jenkins/workspace/mathenjeu/mathenjeu_UT_37_std/_venv/bin/python3.7: No module named mathenjeu

(entrée originale : qcm_app.py:docstring of mathenjeu.cli.qcm_app.create_qcm_https_app, line 50)

Creates a local web-application with very simple authentification

The command line runs a web application meant to be local as there is not https involved. It implements a Q&A. The web app relies on starlette, the server relies on uvicorn. Example of use:

python -m mathenjeu qcm_local --cookie_key=dummypwd --start=1 --port=8889 --userpwd=abc

With that application, every user can login with a unique password abc.

<<<

python -m mathenjeu qcm_local --help

>>>

--OUT--

--ERR--
/var/lib/jenkins/workspace/mathenjeu/mathenjeu_UT_37_std/_venv/bin/python3.7: No module named mathenjeu

(entrée originale : qcm_app.py:docstring of mathenjeu.cli.qcm_app.create_qcm_local_app, line 34)

Creates a local web-application with very simple authentification

The command line runs a web application meant to be local as there is not https involved. It serves static content. The web app relies on starlette, the server relies on uvicorn. Example of use:

python -m mathenjeu local_static --cookie_key=dummypwd --start=1 --port=8889 --userpwd=abc --content=display_name,local_folder

With that application, every user can login with a unique password abc.

<<<

python -m mathenjeu local_static --help

>>>

--OUT--

--ERR--
/var/lib/jenkins/workspace/mathenjeu/mathenjeu_UT_37_std/_venv/bin/python3.7: No module named mathenjeu

(entrée originale : static_app.py:docstring of mathenjeu.cli.static_app.create_static_local_app, line 30)

Creates a signed certificate

The command line creates a certificate used later by a service such as hypercorn or waitress. Example:

python -m mathenjeu create_self_signed_cert --keyfile=key.pem --certfile=cert.pem

<<<

python -m mathenjeu create_self_signed_cert --help

>>>

--OUT--

--ERR--
/var/lib/jenkins/workspace/mathenjeu/mathenjeu_UT_37_std/_venv/bin/python3.7: No module named mathenjeu

(entrée originale : openssl.py:docstring of mathenjeu.cli.openssl.create_self_signed_cert, line 22)