Skip to content

Add chapters 21-25: Logging, Web Dev, Security, Metaprogramming, Best Practices - #6

Merged
leandro-mana merged 1 commit into
mainfrom
feature/chapters-21-25
Feb 20, 2026
Merged

Add chapters 21-25: Logging, Web Dev, Security, Metaprogramming, Best Practices#6
leandro-mana merged 1 commit into
mainfrom
feature/chapters-21-25

Conversation

@leandro-mana

Copy link
Copy Markdown
Owner

Summary

  • Chapter 21: Logging and Debugging — loggers, handlers, formatters, hierarchy, traceback, pdb, exception chaining
  • Chapter 22: Web Development Fundamentals — HTTP status codes, WSGI protocol, URL routing with decorators, JSON responses, form handling, REST API patterns
  • Chapter 23: Security and Cryptography — SHA-256, BLAKE2b, incremental hashing, HMAC authentication, secrets module, constant-time comparison, secure coding practices
  • Chapter 24: Metaprogramming__getattr__/__setattr__, properties, class decorators, __init_subclass__, inspect module (signatures, members, source)
  • Chapter 25: Python Ecosystem and Best Practices — PEP 8, docstrings, textwrap, AST parsing, pytest patterns, Protocols for testability, pre-commit, CI/CD, project structure

Each chapter includes 3 Jupyter notebooks, a README, and a comprehensive test file (45 new tests, 225 total).

Test plan

  • ruff check . — all checks passed
  • ruff format --check . — 55 files already formatted
  • mypy . — no issues found in 28 source files
  • pytest — 225 tests passed in 0.17s

🤖 Generated with Claude Code

… Practices

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@leandro-mana
leandro-mana merged commit c7d29d0 into main Feb 20, 2026
6 checks passed
@leandro-mana
leandro-mana deleted the feature/chapters-21-25 branch February 20, 2026 12:10
@leandro-mana leandro-mana added chapter New chapter content notebooks Jupyter notebook changes tests Test additions or changes labels Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chapter New chapter content notebooks Jupyter notebook changes tests Test additions or changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant