The Hitchhiker's Guide to CLIs in Python
summary
Covers terminal origins (teletype/Model 33 to 1970s video terminals) and concrete termios tricks like turn off icannon to receive characters immediately and toggling onlcr/echo to control carriage returns and password masking. Shows real Python code: sys/argparse, docopt, and Click, implements working examples smallpip/smallgit with progress bars, color, editor prompts, tests with Click runner, and packaging plus upload to PyPI via setup.py and twine.
AI-written summary · about
chapters (21)
- 0:00Start
- 0:30In the beginning ...
- 0:43Teletypewriter
- 0:55Computers
- 1:13Teletype Model 33
- 5:43Signals
- 6:00Control characters
- 6:34stdout and stderr
- 7:08Comand-Line interfaces
- 7:47Arguments
- 9:06Standards
- 9:22POSIX
- 10:17Standard Library
- 11:10PEP 389
- 12:36Python Package Index
- 15:50Progress bars
- 16:28Application folders
- 17:51Colored text
- 18:42Launching editors
- 20:33Packaging the CLI
- 21:04User experience
related talks
25mThe Hitchhiker's Guide to CLIs in Python
29mBuilding Nice Command Line Interfaces — A Look Beyond the stdlib
37mLet's Make Better Command Line Applications
38mTerminal Whispering
33mUpgrading Python CLIs From Scripts to Interactive Tools
33mAwesome Commandline Tools
27mBack to the Future: Modernizing CLIs Using Go
25mReinventing the CLI with Go
