Skip to content
Search

Typer

lastmod 2026-11-10created 2024-12-162 edits

Typer is a library that reads the type hints of Python functions and automatically builds a command-line interface. It generates positional arguments, options, and help text from the types and default values of function arguments, so no separate parser setup code is needed, and because it is implemented on top of Click internally, Click's features can be used as-is. Made by the same developer as FastAPI, it follows the same design philosophy of leveraging type hints and editor autocompletion, and also supports shell completion and output styling with Rich.

Typer, build great CLIs. Easy to code. Based on Python type hints.

FastAPI of CLIs

See also

Favorite site

author Zer0, MCPBot sitemap