Building human-first and machine-friendly CLI applications

June 02, 2023 2h 28m Free

Description

Command line tools have two audiences: humans using it directly and other tools/scripts working together with it. This tutorial teaches how to build CLI applications for both. It introduces the Command Line Interface Guidelines (clig.dev), an open-source, language-agnostic collection of principles and guidelines, and demonstrates building an application in Python using typer and Rich. The workshop builds a CLI to catalogue past PyCon talks, with the long-term goal of providing tools and code snippets for your own CLI applications.