Learn Click
Composable command-line interfaces in Python with decorators
Click is a Python package for building command-line tools by decorating functions: options, arguments, nested command groups, prompts, help pages and shell completion all come from declarations. It powers the CLIs of Flask, pip-tools, Black and many other projects. Learning it lets you turn scripts into polished, testable command-line applications quickly.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know