features.md
This file
Path
docs/features.md
70 lines · 3.0 KiB · Markdown
Last changed by
➖ Vendor Click and streamline Typer's functionality and code base (#1774)Sofie Van Landeghembefore adoption1829d73
History of this fileTake it
The walk stopped after 200 commits: lines older than f80c669 point at it.
⬆ Bump actions/add-to-project from 1.0.2 to 2.0.0 (#1731)dependabot[bot]before adoptionf80c669
lines 1–4why, one step back1# Features23## Design based on **FastAPI**4📝 Update link syntax to minimal Markdown (#1623)Sebastián Ramírezbefore adoption3780a29
line 5why, one step back5<a href="https://fastapi.tiangolo.com"><img src="https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" style="width: 20%;"></a>⬆ Bump actions/add-to-project from 1.0.2 to 2.0.0 (#1731)dependabot[bot]before adoptionf80c669
line 6why, one step back6📝 Update link syntax to minimal Markdown (#1623)Sebastián Ramírezbefore adoption3780a29
line 7why, one step back7**Typer** is [FastAPI](https://fastapi.tiangolo.com)'s little sibling.⬆ Bump actions/add-to-project from 1.0.2 to 2.0.0 (#1731)dependabot[bot]before adoptionf80c669
lines 8–14why, one step back89It follows the same design and ideas. If you know **FastAPI**, you already know **Typer**... more or less.1011## Just Modern Python1213It's all based on standard **Python type** declarations. No new syntax to learn. Just standard modern Python.14📝 Update link syntax to minimal Markdown (#1623)Sebastián Ramírezbefore adoption3780a29
line 15why, one step back15If you need a 2 minute refresher of how to use Python types (even if you don't use FastAPI or Typer), check the FastAPI tutorial section: [Python types intro](https://fastapi.tiangolo.com/python-types/).⬆ Bump actions/add-to-project from 1.0.2 to 2.0.0 (#1731)dependabot[bot]before adoptionf80c669
line 16why, one step back16📝 Update link syntax to minimal Markdown (#1623)Sebastián Ramírezbefore adoption3780a29
line 17why, one step back17You will also see a 20 seconds refresher on the section [Tutorial - User Guide: First Steps](tutorial/first-steps.md).⬆ Bump actions/add-to-project from 1.0.2 to 2.0.0 (#1731)dependabot[bot]before adoptionf80c669
lines 18–26why, one step back1819## Editor support2021**Typer** was designed to be easy and intuitive to use, to ensure the best development experience. With autocompletion everywhere.2223You will rarely need to come back to the docs.2425Here's how your editor might help you:26📝 Update link syntax to minimal Markdown (#1623)Sebastián Ramírezbefore adoption3780a29
line 27why, one step back27* in [Visual Studio Code](https://code.visualstudio.com/):⬆ Bump actions/add-to-project from 1.0.2 to 2.0.0 (#1731)dependabot[bot]before adoptionf80c669
lines 28–30why, one step back282930📝 Update link syntax to minimal Markdown (#1623)Sebastián Ramírezbefore adoption3780a29
line 31why, one step back31* in [PyCharm](https://www.jetbrains.com/pycharm/):⬆ Bump actions/add-to-project from 1.0.2 to 2.0.0 (#1731)dependabot[bot]before adoptionf80c669
lines 32–70why, one step back32333435You will get completion for everything. That's something no other CLI library provides right now.3637No more guessing what type was that variable, if it could be `None`, etc.3839### Short4041It has sensible **defaults** for everything, with optional configurations everywhere. All the parameters can be fine-tuned to do what you need, customize the help, callbacks per parameter, make them required or not, etc.4243But by default, it all **"just works"**.4445## User friendly CLI apps4647The resulting CLI apps created with **Typer** have the nice features of many "pro" command line programs you probably already love.4849* Automatic help options for the main CLI program and all its subcommands.50* Automatic command and subcommand structure handling (you will see more about subcommands in the Tutorial - User Guide).51* Automatic completion for the CLI app in all operating systems, in all the shells (Bash, Zsh, Fish, PowerShell), so that the final user of your app can just hit <kbd>TAB</kbd> and get the available options or subcommands. *5253/// note | * Auto completion5455Auto completion works when you create a package (installable with `pip`). Or when using the `typer` command.5657**Typer** uses `shellingham` to auto-detect the current shell when installing completion.5859**Typer** will automatically create 2 *CLI options*:6061* `--install-completion`: Install completion for the current shell.62* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.6364///6566## Tested6768* 100% <abbr title="The amount of code that is automatically tested">test coverage</abbr>.69* 100% <abbr title="Python type annotations, with this your editor and external tools can give you better support">type annotated</abbr> code base.70* Used in production applications.