finds.dev← search

// the find

buckyroberts/Python-Design-Patterns

★ 437 · Python · updated Jan 2019

Python Design Patterns

A minimal collection of Python examples for six classic design patterns and OOP concepts. Aimed at beginners who want runnable code alongside a brief explanation for each pattern. Nothing here that a mid-level developer doesn't already know.

Each pattern lives in its own folder with a short README, so you can read and run them independently. The code is genuinely minimal — no bloat, no framework dependencies, just the pattern itself. Good as a quick reference if you forget how a singleton or observer is structured in Python.

Abandoned since January 2019 — no updates, no Python 3.10+ features like structural pattern matching that are actually relevant to modern Pythonic code. Only six patterns out of the Gang of Four's 23, so coverage is thin. No tests anywhere, which matters for teaching material since half the value of patterns is showing how they behave under different conditions. The READMEs are thin to the point of being unhelpful — if you don't already know the pattern, the explanation won't get you there.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →