The Hitchhiker's Guide to CLIs in Python
Vinayak Mehta (~vinayak-mehta) |
Command-line applications and interfaces are used by both newcomers and experienced Python developers everyday. But do you know how they came to be? Hop on to this ship as we go through the CLI galaxy and look at its history, explore the CLI anatomy and discover some Python packages that can help us create them.
We’ll then look at some widely used CLIs of our time. And emulate one of them by creating our own CLI using Click. Finally, we’ll package it and publish it on PyPI. Are you ready to travel faster-than-light using this ship’s Infinite Improbability Drive? Carry your towel!
This talk is aimed to be a guide in writing CLIs, for Python developers of all levels. No background knowledge is required.
Video: https://www.youtube.com/watch?v=Hn-syMunNy8 (PyCon US 2020)
Wannabe hoopy frood. Working on open-source developer tools.
I love building CLI tools! Here are some open-source CLIs that I’ve built using Click:
- https://github.com/vinayak-mehta/conrad - Track conferences and meetups on your terminal!
- https://github.com/vinayak-mehta/nbcommands - Unix commands for Jupyter notebooks!
- https://github.com/camelot-dev/camelot - Extract tables from PDFs!
- https://github.com/camelot-dev/excalibur - Extract tables from PDFs! (CLI for the web interface)