Tag: Python
-
The Fastest Way to Read Dict in Python

Have you ever wonder which is the fastest way to access a value in a dictionary in Python? In the current article, I’ve tried to answer those questions. I made a small benchmark where I try to figure out which is the fastest way to read a dictionary in Python.
-
How I’ve Optimized a Batch System by 30 Times

In this post, I explain how I’ve optimized a batch operation by 30 times with some best practices.
-
3 Ways to Invalidate a Jwt Token in the Backend Side

The JWT is the most used authentication system. Still, what happens with the logout? Here are 3 solutions to invalidate a token in the backend.
-
The Most Important Lessons From My First Project Using Poetry as a Dependency Management Tool

I’ve chosen Poetry to manage the dependencies of my last project because it was new, powerful and had good feedback on it. Still, with the early versions I’ve used, I faced some problems. But here are some of the lessons and feedback I’ve from my first experience with Poetry.
-
How to Handle the Database Migrations with Alembic

In this video I will show how to use Alembic to Handle the database migrations. I show and explain the main commands of Alembic.
-
RDD in PySpark

In this article I will explain the Resilient Distributed Datasets, RDD, in Spark with Python and PySpark. I explain how are built the pipelines in PySpark with the Transformations and Actions. Finally, I will show examples of code handling a simple numerical dataset.
-
Decorators in Python

In this article I will explain what are the Decorators in Python. And I will also show how I create my own Decorator.
-
Python Logging

In this article I will show how to use the Logging library in Python. I will show how to configure the Logging library for many Handlers, Formatters and Filters.
-
Jinja Templates

In this article, I show how a Flask backend can render and return Jinja templates. I will show how to use variables inside the Jinja templates, blocks and macros.
-
Python Pre-Commit

In this article I show how to configure pre-commit in a Python project to format and check the code. I will show 4 tools which will run automatically with the Git hooks.
