console-scripts

Domain: Python Packaging

🎯 Motivation

A type of entry point that creates command-line commands. When installed, they generate executable scripts that call your Python functions.

πŸ“‹ Concrete Example

Adding mycli = "mypkg.main:run" under [project.scripts] makes mycli available in the terminal.

πŸ”— Analogy

Console scripts are vending machine buttons β€” press the command name and out pops your function’s output.