Blog

Python tutorials and tips on the Academify blog. Learn programming with examples, exercises, and projects from basic to advanced

Software dependency graph and Python task workflow
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python graphlib: Topological Sorting

Learn Python graphlib to order dependencies, detect cycles, and coordinate independent tasks safely in parallel.

Read more

Reading time: 5 minutes
July 27, 2026
Developer implementing a priority queue with Python heapq
Libraries and Modules
Foto de perfil de Leandro Hirt da Academify

Python heapq: Build Priority Queues

Learn Python heapq to build priority queues, find the smallest values, and process tasks efficiently with binary heaps.

Read more

Reading time: 6 minutes
July 26, 2026
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.

Read more

Reading time: 7 minutes
July 26, 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.

Read more

Reading time: 6 minutes
July 25, 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.

Read more

Reading time: 6 minutes
July 25, 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.

Read more

Reading time: 6 minutes
July 24, 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.

Read more

Reading time: 5 minutes
July 24, 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.

Read more

Reading time: 5 minutes
July 23, 2026