The Hitchhiker's Guide to CLIs in Python — Part 2: Python packages for writing CLIs

Let's see how we can write a command-line interface using Python. There are several options to do this, in the standard library and on PyPI.

We'll use an example CLI called smol-pip, and see how we can implement it using these different options.


  $ smol-pip install --upgrade package_name

smol-pip has one …

Read

There are comments.

The Hitchhiker's Guide to CLIs in Python — Part 1: Anatomy of a Terminal and CLI

tty (short for teletype) is a Unix command that prints the name of the terminal connected to standard input. It is also the prefix in names for virtual terminals on Unix-based operating systems.

The fundamental type of application that runs on a terminal is the shell. The …

Read

There are comments.

How To Fall In Love With Running

I ran 1094 km in 2018. For the first time in my life, I've run almost every week for an entire year. I'll run my first marathon this weekend!

Running is the easiest thing you can do for your fitness. It needs no equipment, just a pair of shoes (or …

Read

There are comments.

An Open-Source Tool to Extract Tables from PDFs into CSVs

I have also published this post on Hacker Noon.

Borrowing the first three paragraphs from my previous blog post since they perfectly explain why extracting tables from PDFs is hard.

The PDF (Portable Document Format) was born out of The Camelot Project to create “a universal way to communicate documents …

Read

There are comments.

Last Year Tonight at NH7 Weekender Meghalaya 2017

Last year tonight, I was in Meghalaya for NH7 Weekender with my friends (also co-workers at the time), Deepu and Rishabh (aka Jain). We'd been aching to visit Meghalaya after watching Ethereal's "Meghalaya Alive!" video. And after hearing about Weekender happening there (with Steve Vai headlining it) there was no …

Read

There are comments.