The Modern Command-Line Tool Stack: Pipenv, Click, and Friends
summary
A small command-line music tool called feta play downloads and queues YouTube tracks from a Mastodon timeline using youtube-dl and it works for non‑Python users after a one‑line setup. The demo shows Pipenv creates a reproducible virtualenv and Pipfile.lock and uses editable installs so a console script (console_scripts) runs everywhere. The CLI uses Click for subcommands and decorators, directories come from appdirs, secrets live in the OS keyring, and contributors can reproduce the exact dev environment.
AI-written summary · about
chapters (11)
- 0:00Introduction to project
- 1:23Project architecture
- 2:57Dependency management with Pipenv
- 5:35Pipenv workflow
- 7:51Sharing and deploying
- 11:01Identifying project needs
- 12:37Building the CLI with Click
- 17:25Structuring Python packages
- 21:13Managing system directories
- 23:28Securing API secrets
- 26:41Conclusion and summary
related talks
29mBuilding Nice Command Line Interfaces — A Look Beyond the stdlib
02h 28mBuilding human-first and machine-friendly CLI applications
27mCommand line programs for busy developers
36mPipenv: The Future of Python Dependency Management
23mA Better Way to Manage Command Line Tools: What We Learned...
02h 25mModern Python Developer's Toolkit
25mThe Hitchhiker's Guide to CLIs in Python
30mOne Binary, Every Package Manager: Shipping a Rust CLI To PyPI, Npm, Homebrew, Winget, and Beyond
