This repository contains examples of commonly used design patterns in Python. Each pattern has a concise example for educational purposes, and multiple real-world examples are provided in the examples/
folder for deeper understanding.
- Singleton
- Examples: Singleton Examples
- Factory
- Examples: Factory Examples
- Abstract Factory
- Examples: Abstract Factory Examples
- Builder
- Examples: Builder Examples
- Prototype
- Examples: Prototype Examples
- Adapter
- Examples: Adapter Examples
- TBD
To verify the patterns, you can run the unit tests:
pytest tests/