Category Archives: Python

Python – Dockerizing a FastAPI application

By | 27/03/2024

In this post, we will see how to dockerizing the FastAPI application that we created in this previous post. First of all, we create a requirement.txt file where we will insert all libraries that we need to install to use the application: [REQUIREMENTS.TXT] Then, we create the dockerfile: [DOCKERFILE] Finally, to avoid unnecessarily copying everything… Read More »

Python – Fast API

By | 14/02/2024

In this post, we will see how to create a web API to manage all CRUD operations for a class called User, using FastAPI.But first of all, what is FastAPI?From the official web site:FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.8+ based on standard Python type hints.The key features… Read More »

Python – CRUD operations in Redis

By | 31/01/2024

In this post, we will see how to implement CRUD operations for an ‘User’ object in Redis, defines as follows: Before to start, I want to remember that REDIS (Remote Dictionary Server), is an open-source, in-memory data structure store, used as a database, cache, and message broker. It supports various data structures such as strings,… Read More »

Python – Introduction to Tkinter

By | 27/09/2023

In this post, we will see a brief introduction to Tkinter, a standard Python module that provides a convenient way to develop cross-platform desktop applications with a rich set of widgets and tools.We will explore the basics of Tkinter and learn how to create a window, which serves as the foundation for building GUI applications.Tkinter provides… Read More »

Python – Enum

By | 13/09/2023

In this post, we will see how to create and manage an Enum in Pyhton.Just to recap, an Enum is used in programming to give names to individual constant values, which can improve the readability, maintainability, and robustness of our code. Enumerated constants are essentially named constants that belong to a specific set of values,… Read More »