| 1 |
.. _usage: |
| 2 |
|
| 3 |
Usage |
| 4 |
===== |
| 5 |
|
| 6 |
Hypercorn is invoked via the command line script ``hypercorn`` |
| 7 |
|
| 8 |
.. code-block:: shell |
| 9 |
|
| 10 |
$ hypercorn [OPTIONS] MODULE_APP |
| 11 |
|
| 12 |
where ``MODULE_APP`` has the pattern |
| 13 |
``$(MODULE_NAME):$(VARIABLE_NAME)`` with the module name as a full |
| 14 |
(dotted) path to a python module containing a named variable that |
| 15 |
conforms to the ASGI or WSGI framework specifications. |
| 16 |
|
| 17 |
The ``MODULE_APP`` can be prefixed with ``asgi:`` or ``wsgi:`` to |
| 18 |
ensure that the loaded app is treated as either an asgi or wsgi app. |
| 19 |
|
| 20 |
See :ref:`how_to_configure` for the full list of command line |
| 21 |
arguments. |