How to create modern CLI application with typer and poetry?

As programmers, we often want to create simple CLI tools to automate certain processes or facilitate our daily lives. In my case, it was an application that facilitates food ordering via Wolt (here you can find the code for my app). The purpose of this post is to demonstrate how you can use the typer library to create a simple CLI application and how to publish it on PyPI using poetry....

November 20, 2022 · 7 min · Engineering · Python

Typing in modern Python - crash course

The purpose of this guide is to give you an overview of Python type checking mechanism. The Python language has been able to “annotate” names with type information since version 3.5 (PEP 484 – Type Hints). I recommend reading other blogs if you are interested in learning why static typing is necessary. Nevertheless, I will focus on the practical applications of typing by giving a few examples. The syntax Let’s start from the basics of typing syntax:...

November 19, 2022 · 13 min · Engineering · Python