2023-11-22 21:40:26 -06:00
|
|
|
|
|
|
|
|
|
Commands
|
|
|
|
|
========
|
|
|
|
|
|
2024-06-30 20:26:25 -05:00
|
|
|
|
WuttJamaican in fact does not directly provide a way to define a
|
|
|
|
|
command line interface for your app.
|
2023-11-22 21:40:26 -06:00
|
|
|
|
|
2024-06-30 20:26:25 -05:00
|
|
|
|
The reason is that several good frameworks exist already. You are
|
|
|
|
|
encouraged to use one of the following to define
|
|
|
|
|
:term:`commands<command>` and :term:`subcommands<subcommand>` as
|
|
|
|
|
needed:
|
2023-11-22 21:40:26 -06:00
|
|
|
|
|
2024-06-30 20:26:25 -05:00
|
|
|
|
* `Typer <https://typer.tiangolo.com/>`_
|
|
|
|
|
* `Click <https://click.palletsprojects.com/en/latest/>`_
|
|
|
|
|
* :mod:`python:argparse`
|
2023-11-24 14:22:22 -06:00
|
|
|
|
|
2024-06-30 20:26:25 -05:00
|
|
|
|
For even more options see:
|
2023-11-22 21:40:26 -06:00
|
|
|
|
|
2024-06-30 20:26:25 -05:00
|
|
|
|
* `awesome-cli-framework <https://github.com/shadawck/awesome-cli-frameworks/blob/master/README.md#python>`_
|
2024-06-30 20:31:12 -05:00
|
|
|
|
* `Hitchhiker’s Guide to Python <https://docs.python-guide.org/scenarios/cli/>`_
|
2024-06-30 20:26:25 -05:00
|
|
|
|
* `Python Wiki <https://wiki.python.org/moin/CommandlineTools>`_
|
2023-11-24 14:22:22 -06:00
|
|
|
|
|
2024-06-30 20:26:25 -05:00
|
|
|
|
Or if that is overkill you can always just use :doc:`scripts`.
|