Best Practices

Learn Python programming best practices and write more organized, readable, and professional code.

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
Desenvolvedor programando em Python com Ruff para lint e formatação
Best Practices
Foto de perfil de Leandro Hirt da Academify

Ruff for Python: Lint and Format Code Step by Step

Learn Ruff for Python linting, formatting, automatic fixes, pyproject.toml, VS Code and CI with a practical project configuration.

Read more

Reading time: 9 minutes
July 22, 2026
2 balões de comentários em um fundo laranja
Best Practices
Foto de perfil de Leandro Hirt da Academify

Python Comments: Best Practices and Examples

Learn Python comments with single-line and inline examples, block explanations, TODO notes, docstrings, security and performance context, review standards, and

Read more

Reading time: 6 minutes
July 10, 2026
Pessoa programando em um notebook, vista de trás, com código desfocado exibido na tela em um fundo escuro
Best Practices
Foto de perfil de Leandro Hirt da Academify

Python Docstrings: Document Code Clearly

Learn Python docstrings for functions, classes, methods, modules, parameters, returns, exceptions, examples, pydoc, conventions, and documentation tools.

Read more

Reading time: 6 minutes
July 10, 2026
Logo do Python com o texto 'PEP 8' sobre fundo azul escuro, representando o guia de estilo da linguagem
Best Practices
Foto de perfil de Leandro Hirt da Academify

PEP 8 in Python: Write Cleaner Code

Learn PEP 8 in Python with naming, indentation, line length, imports, whitespace, comments, functions, classes, tools, exceptions, and practical refactoring.

Read more

Reading time: 6 minutes
July 10, 2026
Configuração de logs em aplicações Python usando logging
Best Practices
Foto de perfil de Leandro Hirt da Academify

Python Logging: A Complete Beginner’s Guide

Learn Python logging from scratch: levels, files, formatters, exceptions, handlers, rotation, and practical examples for reliable applications.

Read more

Reading time: 10 minutes
July 10, 2026