Design Patterns in Python¶
Python implementations of the Gang of Four design patterns, along with testing and gate patterns, with type hints and examples.
Getting Started¶
Explore patterns by category using the sidebar navigation:
- Creational (5) - Object creation mechanisms
- Behavioral (11) - Object interaction and responsibility
- Structural (6) - Object composition and relationships
- Testing (1) - Test setup and test data construction
- Gates (7) - Automated enforcement of structural rules
Quick Links¶
- Introduction - Core concepts and principles
- Pattern Catalog - Complete pattern reference table
- Pattern Selection Guide - Choosing the right pattern
- Quick Reference - Pattern cheat sheet