Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

The Hitchhiker's Guide to CLIs in Python

PyCon US via YouTube

Overview

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

Reviews

Start your review of The Hitchhiker's Guide to CLIs in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.