}

Articles tagged "design-patterns"

16 min readIntermediate

Python Decorators Tutorial 2026: 8 Production Patterns from Retry to Auth

Python decorators tutorial 2026: mechanics, functools.wraps, class-based decorators, and 8 production patterns — retry with backoff, TTL cache, rate limiter, type validator, deprecation, singleton, and FastAPI auth.

2 min readIntermediate

How to add Dependency Injector to a Python project?

Dependency injection (DI) is a technique whereby one object supplies the dependencies of another object. In this tutorial we explain how to add dependency injection to a python project.