Python code for safe context in asynchronous applications
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python contextvars: Safe Async Context

Learn how Python contextvars isolates request data across asyncio tasks, logs, threads, and tests without unsafe global variables.

Ler mais

Tempo de leitura: 7 minutos
26/07/2026
Python code using cached_property to store expensive calculations
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python cached_property: Cache Object Values

Learn Python cached_property to store expensive calculations, invalidate values, and prevent stale object caches.

Ler mais

Tempo de leitura: 6 minutos
25/07/2026
Python code with type-based function dispatch
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python singledispatch: Type-Based Functions

Learn Python singledispatch to build type-based functions, reduce isinstance chains, and organize extensible polymorphism with clear examples.

Ler mais

Tempo de leitura: 6 minutos
25/07/2026
TOML configuration in a Python project
Best Practices
Foto de perfil de Leandro Hirt da Academify

Python tomllib: Read TOML Files

Learn how to read TOML with Python tomllib, validate settings, handle parse errors, and organize projects with pyproject.toml.

Ler mais

Tempo de leitura: 6 minutos
24/07/2026
Developer monitoring structured Python application logs
Best Practices
Foto de perfil de Leandro Hirt da Academify

Observability in Python with structlog

Build practical Python observability with structlog, JSON events, request context, tests, performance controls, and deployment guidance.

Ler mais

Tempo de leitura: 5 minutos
24/07/2026
Secure Python application configuration with Pydantic Settings
Best Practices
Foto de perfil de Leandro Hirt da Academify

Pydantic Settings for Safe Config

Learn how to validate environment variables, manage secrets, and organize Python application settings with Pydantic Settings.

Ler mais

Tempo de leitura: 5 minutos
23/07/2026
Python PDF search with RAG
Projects
Foto de perfil de Leandro Hirt da Academify

Python PDF Search with RAG

Build Python PDF search with RAG, semantic retrieval, grounded answers, evaluation, and document security.

Ler mais

Tempo de leitura: 6 minutos
23/07/2026
Python code demonstrating descriptors and attributes
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python Descriptors: Control Attribute Access

Learn Python descriptors with __get__, __set__, validation, property, instance storage, testing, inheritance and practical design tips.

Ler mais

Tempo de leitura: 6 minutos
22/07/2026

Videoaulas gratuitas de Python

Aprenda os fundamentos da linguagem Python com aulas práticas e exercícios. Comece agora sem pagar nada.

Também no TikTok!

Mais de 19 mil pessoas aprendem Python comigo diariamente no TikTok.
Veja aulas curtas e práticas para aprender de forma simples e direta