Message driven architecture with AWS SQS and Python Workers

In this blog post, you’ll learn about the basics of using Python workers for processing messages from SQS queues. We’ll cover the benefits of using workers, including improved performance and scalability. We’ll also discuss some of the drawbacks, such as the added complexity of managing multiple processes. Additionally, we’ll provide best practices for implementing workers in your code, including tips for optimizing their use. Whether you’re new to multiprocessing or an experienced developer, this post will provide valuable insights and tips for using Python workers effectively in your projects....

December 22, 2022 · 9 min · Engineering · Software Design · AWS

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