Skip to content

Latest commit

History

History
52 lines (39 loc) · 1.29 KB

File metadata and controls

52 lines (39 loc) · 1.29 KB

SOLID Principles in Python

SOLID Principles in Python

Learn SOLID design principles through Python examples — violation vs correct, with UML diagrams.

Documentation · O'zbekcha

Quick start

python docs/01-srp/violation.py
python docs/01-srp/correct.py

Requires Python 3.10+, no external dependencies.

Docs site locally

bundle install
bundle exec jekyll serve --livereload

Then open http://localhost:4000/solid-python/

Structure

docs/
├── 01-srp/ # Single Responsibility
├── 02-ocp/ # Open/Closed
├── 03-lsp/ # Liskov Substitution
├── 04-isp/ # Interface Segregation
├── 05-dip/ # Dependency Inversion
│ ├── violation.py # What goes wrong
│ ├── correct.py # How to fix it
│ ├── README.md # English docs
│ └── README.uz.md # Uzbek docs
├── index.md # Home (EN)
└── index.uz.md # Home (UZ)

License

MIT — LICENSE