index.md
This file
Path
docs/index.md
327 lines ยท 14.9 KiB ยท Markdown
Last changed by
โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
History of this fileTake it
The walk stopped after 200 commits: lines older than ea0f2a6 point at it.
:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 1โ7why, one step back1<p align="center">2 <a href="https://typer.tiangolo.com"><img src="https://typer.tiangolo.com/img/logo-margin/logo-margin-vector.svg" alt="Typer"></a>3</p>4<p align="center">5 <em>Typer, build great CLIs. Easy to code. Based on Python type hints.</em>6</p>7<p align="center">๐ Update badges and remove Travis (#145)Sebastiรกn Ramรญrezbefore adoptionf67a47e
lines 8โ9why, one step back8<a href="https://github.com/tiangolo/typer/actions?query=workflow%3ATest" target="_blank">9 <img src="https://github.com/tiangolo/typer/workflows/Test/badge.svg" alt="Test">:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 10why, one step back10</a>๐ Update badges and remove Travis (#145)Sebastiรกn Ramรญrezbefore adoptionf67a47e
lines 11โ13why, one step back11<a href="https://github.com/tiangolo/typer/actions?query=workflow%3APublish" target="_blank">12 <img src="https://github.com/tiangolo/typer/workflows/Publish/badge.svg" alt="Publish">13</a>:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 14why, one step back14<a href="https://codecov.io/gh/tiangolo/typer" target="_blank">๐ Update badges and remove Travis (#145)Sebastiรกn Ramรญrezbefore adoptionf67a47e
line 15why, one step back15 <img src="https://img.shields.io/codecov/c/github/tiangolo/typer?color=%2334D058" alt="Coverage">:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 16โ17why, one step back16</a>17<a href="https://pypi.org/project/typer" target="_blank">๐ Update badges and remove Travis (#145)Sebastiรกn Ramรญrezbefore adoptionf67a47e
line 18why, one step back18 <img src="https://img.shields.io/pypi/v/typer?color=%2334D058&label=pypi%20package" alt="Package version">:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 19โ29why, one step back19</a>20</p>2122---2324**Documentation**: <a href="https://typer.tiangolo.com" target="_blank">https://typer.tiangolo.com</a>2526**Source Code**: <a href="https://github.com/tiangolo/typer" target="_blank">https://github.com/tiangolo/typer</a>2728---29โ Fix typos in main page/README (#103)Evan E. Bairdbefore adoption2bc3b9a
line 30why, one step back30Typer is a library for building <abbr title="command line interface, programs executed from a terminal">CLI</abbr> applications that users will **love using** and developers will **love creating**. Based on Python 3.6+ type hints.:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 31โ34why, one step back3132The key features are:3334* **Intuitive to write**: Great editor support. <abbr title="also known as auto-complete, autocompletion, IntelliSense">Completion</abbr> everywhere. Less time debugging. Designed to be easy to use and learn. Less time reading docs.:sparkles: Re-implement completion, fixes, add PowerShell support (#66)Sebastiรกn Ramรญrezbefore adoption1d3337a
line 35why, one step back35* **Easy to use**: It's easy to use for the final users. Automatic help, and automatic completion for all shells.:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 36โ37why, one step back36* **Short**: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.37* **Start simple**: The simplest example adds only 2 lines of code to your app: **1 import, 1 function call**.:sparkles: Docs for Typer CLI (#64)Sebastiรกn Ramรญrezbefore adoption96731c4
line 38why, one step back38* **Grow large**: Grow in complexity as much as you want, create arbitrarily complex trees of commands and groups of subcommands, with options and arguments.:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 39why, one step back39:sparkles: Add docs for testing, password, version, context. Extra tests, include callback and autocompletion PR (#68)Sebastiรกn Ramรญrezbefore adoption5a6379f
lines 40โ47why, one step back40## FastAPI of CLIs4142<a href="https://fastapi.tiangolo.com" target="_blank"><img src="https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" style="width: 20%;"></a>4344**Typer** is <a href="https://fastapi.tiangolo.com" class="external-link" target="_blank">FastAPI</a>'s little sibling.4546And it's intended to be the FastAPI of CLIs.47:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 48โ51why, one step back48## Requirements4950Python 3.6+51:sparkles: Add docs for testing, password, version, context. Extra tests, include callback and autocompletion PR (#68)Sebastiรกn Ramรญrezbefore adoption5a6379f
line 52why, one step back52**Typer** stands on the shoulders of a giant. Its only internal dependency is <a href="https://click.palletsprojects.com/" class="external-link" target="_blank">Click</a>.:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 53โ58why, one step back5354## Installation5556<div class="termy">5758```consoleโจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 59why, one step back59$ pip install "typer[all]":white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 60โ65why, one step back60---> 100%61Successfully installed typer62```6364</div>65โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
lines 66โ67why, one step back66**Note**: that will include <a href="https://rich.readthedocs.io/" class="external-link" target="_blank">Rich</a>. Rich is the recommended library to *display* information on the terminal, it is optional, but when installed, it's deeply integrated into **Typer** to display beautiful output.67:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 68โ78why, one step back68## Example6970### The absolute minimum7172* Create a file `main.py` with:7374```Python75import typer767778def main(name: str):โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 79why, one step back79 print(f"Hello {name}"):white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 80โ96why, one step back808182if __name__ == "__main__":83 typer.run(main)84```8586### Run it8788Run your application:8990<div class="termy">9192```console93// Run your application94$ python main.py9596// You get a nice error, you are missing NAMEโจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
lines 97โ101why, one step back97<font color="#F4BF75">Usage: </font>main.py [OPTIONS] NAME98<font color="#A5A5A1">Try </font><font color="#44919F">'main.py </font><font color="#44919F"><b>--help</b></font><font color="#44919F">'</font><font color="#A5A5A1"> for help.</font>99<font color="#F92672">โญโ Error โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ</font>100<font color="#F92672">โ</font> Missing argument 'NAME'. <font color="#F92672">โ</font>101<font color="#F92672">โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ</font>:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 102โ106why, one step back102103104// You get a --help for free105$ python main.py --help106โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
lines 107โ123why, one step back107<b> </b><font color="#F4BF75"><b>Usage: </b></font><b>main.py [OPTIONS] NAME </b>108<b> </b>109<font color="#A5A5A1">โญโ Arguments โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ</font>110<font color="#A5A5A1">โ </font><font color="#F92672">*</font> name <font color="#F4BF75"><b>TEXT</b></font> [default: None] <font color="#A6194C">[required]</font> โ111<font color="#A5A5A1">โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ</font>112<font color="#A5A5A1">โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ</font>113<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>--install-completion</b></font> Install completion โ114<font color="#A5A5A1">โ for the current โ</font>115<font color="#A5A5A1">โ shell. โ</font>116<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>--show-completion</b></font> Show completion for โ117<font color="#A5A5A1">โ the current shell, โ</font>118<font color="#A5A5A1">โ to copy it or โ</font>119<font color="#A5A5A1">โ customize the โ</font>120<font color="#A5A5A1">โ installation. โ</font>121<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>--help</b></font> Show this message โ122<font color="#A5A5A1">โ and exit. โ</font>123<font color="#A5A5A1">โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ</font>:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 124why, one step back124โ Fix typos in main page/README (#103)Evan E. Bairdbefore adoption2bc3b9a
line 125why, one step back125// When you create a package you get โจ auto-completion โจ for free, installed with --install-completion:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 126โ136why, one step back126127// Now pass the NAME argument128$ python main.py Camila129130Hello Camila131132// It works! ๐133```134135</div>136โ Fix typos in main page/README (#103)Evan E. Bairdbefore adoption2bc3b9a
line 137why, one step back137**Note**: auto-completion works when you create a Python package and run it with `--install-completion` or when you use <a href="https://typer.tiangolo.com/typer-cli/" class="internal-link" target="_blank">Typer CLI</a>.:sparkles: Docs for Typer CLI (#64)Sebastiรกn Ramรญrezbefore adoption96731c4
line 138why, one step back138:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 139โ158why, one step back139## Example upgrade140141This was the simplest example possible.142143Now let's see one a bit more complex.144145### An example with two subcommands146147Modify the file `main.py`.148149Create a `typer.Typer()` app, and create two subcommands with their parameters.150151```Python hl_lines="3 6 11 20"152import typer153154app = typer.Typer()155156157@app.command()158def hello(name: str):โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 159why, one step back159 print(f"Hello {name}"):white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 160โ164why, one step back160161162@app.command()163def goodbye(name: str, formal: bool = False):164 if formal:โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 165why, one step back165 print(f"Goodbye Ms. {name}. Have a good day."):white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 166why, one step back166 else:โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 167why, one step back167 print(f"Bye {name}!"):white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 168โ182why, one step back168169170if __name__ == "__main__":171 app()172```173174And that will:175176* Explicitly create a `typer.Typer` app.177 * The previous `typer.run` actually creates one implicitly for you.178* Add two subcommands with `@app.command()`.179* Execute the `app()` itself, as if it was a function (instead of `typer.run`).180181### Run the upgraded example182โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
lines 183โ184why, one step back183Check the new help:184:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 185โ189why, one step back185<div class="termy">186187```console188$ python main.py --help189โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
lines 190โ207why, one step back190<b> </b><font color="#F4BF75"><b>Usage: </b></font><b>main.py [OPTIONS] COMMAND [ARGS]... </b>191<b> </b>192<font color="#A5A5A1">โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ</font>193<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>--install-completion</b></font> Install completion โ194<font color="#A5A5A1">โ for the current โ</font>195<font color="#A5A5A1">โ shell. โ</font>196<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>--show-completion</b></font> Show completion for โ197<font color="#A5A5A1">โ the current shell, โ</font>198<font color="#A5A5A1">โ to copy it or โ</font>199<font color="#A5A5A1">โ customize the โ</font>200<font color="#A5A5A1">โ installation. โ</font>201<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>--help</b></font> Show this message โ202<font color="#A5A5A1">โ and exit. โ</font>203<font color="#A5A5A1">โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ</font>204<font color="#A5A5A1">โญโ Commands โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ</font>205<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>goodbye </b></font> โ206<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>hello </b></font> โ207<font color="#A5A5A1">โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ</font>:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 208why, one step back208โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
lines 209โ210why, one step back209// You have 2 subcommands (the 2 functions): goodbye and hello210```:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 211why, one step back211โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 212why, one step back212</div>:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 213why, one step back213โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 214why, one step back214Now check the help for the `hello` command::white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 215why, one step back215โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 216why, one step back216<div class="termy">:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 217why, one step back217โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 218why, one step back218```console:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 219โ220why, one step back219$ python main.py hello --help220โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
lines 221โ229why, one step back221<b> </b><font color="#F4BF75"><b>Usage: </b></font><b>main.py hello [OPTIONS] NAME </b>222<b> </b>223<font color="#A5A5A1">โญโ Arguments โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ</font>224<font color="#A5A5A1">โ </font><font color="#F92672">*</font> name <font color="#F4BF75"><b>TEXT</b></font> [default: None] <font color="#A6194C">[required]</font> โ225<font color="#A5A5A1">โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ</font>226<font color="#A5A5A1">โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ</font>227<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>--help</b></font> Show this message and exit. โ228<font color="#A5A5A1">โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ</font>229```:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 230why, one step back230โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 231why, one step back231</div>โจ Add support for help for CLI arguments (#123)Sebastiรกn Ramรญrezbefore adoption15380dd
line 232why, one step back232โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 233why, one step back233And now check the help for the `goodbye` command::white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 234why, one step back234โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 235why, one step back235<div class="termy">:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 236why, one step back236โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 237why, one step back237```console:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 238โ239why, one step back238$ python main.py goodbye --help239โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
lines 240โ249why, one step back240<b> </b><font color="#F4BF75"><b>Usage: </b></font><b>main.py goodbye [OPTIONS] NAME </b>241<b> </b>242<font color="#A5A5A1">โญโ Arguments โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ</font>243<font color="#A5A5A1">โ </font><font color="#F92672">*</font> name <font color="#F4BF75"><b>TEXT</b></font> [default: None] <font color="#A6194C">[required]</font> โ244<font color="#A5A5A1">โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ</font>245<font color="#A5A5A1">โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ</font>246<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>--formal</b></font> <font color="#AE81FF"><b>--no-formal</b></font> [default: no-formal] โ247<font color="#A5A5A1">โ </font><font color="#A1EFE4"><b>--help</b></font> Show this message โ248<font color="#A5A5A1">โ and exit. โ</font>249<font color="#A5A5A1">โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ</font>:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 250why, one step back250โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
lines 251โ252why, one step back251// Automatic --formal and --no-formal for the bool option ๐252```โจ Add support for help for CLI arguments (#123)Sebastiรกn Ramรญrezbefore adoption15380dd
line 253why, one step back253โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 254why, one step back254</div>:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 255why, one step back255โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 256why, one step back256Now you can try out the new command line application::white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 257why, one step back257โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 258why, one step back258<div class="termy">:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 259why, one step back259โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
lines 260โ262why, one step back260```console261// Use it with the hello command262:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 263โ283why, one step back263$ python main.py hello Camila264265Hello Camila266267// And with the goodbye command268269$ python main.py goodbye Camila270271Bye Camila!272273// And with --formal274275$ python main.py goodbye --formal Camila276277Goodbye Ms. Camila. Have a good day.278```279280</div>281282### Recap283:sparkles: Add docs for testing, password, version, context. Extra tests, include callback and autocompletion PR (#68)Sebastiรกn Ramรญrezbefore adoption5a6379f
line 284why, one step back284In summary, you declare **once** the types of parameters (*CLI arguments* and *CLI options*) as function parameters.:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 285โ307why, one step back285286You do that with standard modern Python types.287288You don't have to learn a new syntax, the methods or classes of a specific library, etc.289290Just standard **Python 3.6+**.291292For example, for an `int`:293294```Python295total: int296```297298or for a `bool` flag:299300```Python301force: bool302```303304And similarly for **files**, **paths**, **enums** (choices), etc. And there are tools to create **groups of subcommands**, add metadata, extra **validation**, etc.305306**You get**: great editor support, including **completion** and **type checks** everywhere.307โ Fix typos in main page/README (#103)Evan E. Bairdbefore adoption2bc3b9a
line 308why, one step back308**Your users get**: automatic **`--help`**, **auto-completion** in their terminal (Bash, Zsh, Fish, PowerShell) when they install your package or when using <a href="https://typer.tiangolo.com/typer-cli/" class="internal-link" target="_blank">Typer CLI</a>.:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 309why, one step back309:memo: Refactor docs with internal links #38Sebastiรกn Ramรญrezbefore adoption8d6b201
line 310why, one step back310For a more complete example including more features, see the <a href="https://typer.tiangolo.com/tutorial/">Tutorial - User Guide</a>.:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 311โ313why, one step back311312## Optional Dependencies313:art: Tweak external links' format #36Sebastiรกn Ramรญrezbefore adoption38c19f0
line 314why, one step back314Typer uses <a href="https://click.palletsprojects.com/" class="external-link" target="_blank">Click</a> internally. That's the only dependency.:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 315โ317why, one step back315316But you can also install extras:317โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 318why, one step back318* <a href="https://rich.readthedocs.io/en/stable/index.html" class="external-link" target="_blank"><code>rich</code></a>: and Typer will show nicely formatted errors automatically.:sparkles: Re-implement completion, fixes, add PowerShell support (#66)Sebastiรกn Ramรญrezbefore adoption1d3337a
lines 319โ320why, one step back319* <a href="https://github.com/sarugaku/shellingham" class="external-link" target="_blank"><code>shellingham</code></a>: and Typer will automatically detect the current shell when installing completion.320 * With `shellingham` you can just use `--install-completion`.:sparkles: Add docs for testing, password, version, context. Extra tests, include callback and autocompletion PR (#68)Sebastiรกn Ramรญrezbefore adoption5a6379f
line 321why, one step back321 * Without `shellingham`, you have to pass the name of the shell to install completion for, e.g. `--install-completion bash`.:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
line 322why, one step back322โจ Richify, add integrations with Rich everywhere (#419)Sebastiรกn Ramรญrezbefore adoption6208b5b
line 323why, one step back323You can install `typer` with `rich` and `shellingham` with `pip install typer[all]`.:white_check_mark: Add extra tests for edge cases that don't belong on docsSebastiรกn Ramรญrezbefore adoptionea0f2a6
lines 324โ327why, one step back324325## License326327This project is licensed under the terms of the MIT license.