Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Embark on a journey through the galaxy of Command-Line Interfaces (CLIs) in Python with this engaging PyCon US talk. Explore the history and evolution of CLIs, from their origins in teletype machines to modern implementations. Discover the anatomy of CLIs, including signals, control characters, and escape sequences. Learn about essential Python packages for creating robust command-line applications. Examine popular CLIs and gain hands-on experience by building your own using Click. Master the art of packaging and publishing your CLI on PyPI. Dive into advanced topics such as progress bars, colored text, user prompts, and testing. By the end of this 25-minute presentation, equip yourself with the knowledge to create user-friendly and efficient command-line tools in Python.
Syllabus
Intro
In the beginning ...
teletype
(t)ele(ty)pe
Signals
In-band signaling
Control characters
Escape sequences
Streams
stdout and stderr
Redirection
Command-line interfaces
Options
Standards
POSIX
XDG base directory specification
Standard library
getopt
optparse
PEP 389
Python Package Index
Progress bars
Application folders
Paged output
Colored text
Launching editors
User prompts
Testing click code
Packaging the CLI
User experience
Taught by
PyCon US