Overview
Typer 0.12, released on March 30, 2024, restructures the project and integrates typer-cli directly into the main package.
Main Features
typer-cli integration
The separate typer-cli package is integrated into Typer. The typer command is available directly after installation for generating completion and documentation.
python
# No need to install typer-cli separately
# pip install typer
# Generate shell completion
# typer --install-completion
# Generate documentation
# typer my_app.py utils docs --output README.md
import typer
app = typer.Typer()
@app.command()
def main(name: str):
print(f'Hello {name}')
