# faif/python\-patterns

> A collection of design patterns/idioms in Python

Canonical: https://starboard.codevetter.com/explore/faif/python-patterns

[Back to Discover](https://starboard.codevetter.com/discover)

![faif](https://avatars.githubusercontent.com/u/1304661?v=4&s=40)

faif

# python\-patterns

[View on GitHub
](https://github.com/faif/python-patterns)

A collection of design patterns/idioms in Python

design\-patterns
idioms
python


43k stars

Python

Updated 23h ago

Created Jun 6, 2012

## Star history

\+353 stars
0\.8% growth


## Detected tools

[Poetry](https://starboard.codevetter.com/tools/poetry)
[pytest](https://starboard.codevetter.com/tools/pytest)
[GitHub Actions](https://starboard.codevetter.com/tools/github-actions)


Tool detection is evidence\-based, not a full runtime audit\. Package manifests, lockfiles, and SBOMs are high\-confidence; README, topics, and AI metadata are lower\-confidence signals\. Repository language is metadata, not counted as a tool\. Accuracy varies by ecosystem, especially for C/C\+\+ and custom monorepos\.

- Poetry  · 98% confidence · Sources: poetry\.lock · Detected Jul 10, 2026

- pytest  · 98% confidence · Sources: github\-sbom, poetry\.lock, pyproject\.toml · Detected Jul 10, 2026

- GitHub Actions  · 88% confidence · Sources: \.github/workflows/lint\_pr\.yml, \.github/workflows/lint\_python\.yml · Detected Jul 10, 2026

## Similar projects

[![tmrts](https://avatars.githubusercontent.com/u/5067495?v=4&s=24)

tmrts/ go\-patterns

Curated list of Go design patterns, recipes and idioms

Go 28k 67%](https://starboard.codevetter.com/explore/tmrts/go-patterns)[![TheAlgorithms](https://avatars.githubusercontent.com/u/20487725?v=4&s=24)

TheAlgorithms/ Python

All Algorithms implemented in Python

Python 226k 67%](https://starboard.codevetter.com/explore/TheAlgorithms/Python)[![rust\-unofficial](https://avatars.githubusercontent.com/u/20820960?v=4&s=24)

rust\-unofficial/ patterns

A catalogue of Rust design patterns, anti\-patterns and idioms

Handlebars 9\.0k 68%](https://starboard.codevetter.com/explore/rust-unofficial/patterns)[![python](https://avatars.githubusercontent.com/u/1525981?v=4&s=24)

python/ typeshed

Collection of library stubs for Python, with static types

Python 5\.2k 66%](https://starboard.codevetter.com/explore/python/typeshed)[![HypothesisWorks](https://avatars.githubusercontent.com/u/18481919?v=4&s=24)

HypothesisWorks/ hypothesis

The property\-based testing library for Python

Python 9\.2k 66%](https://starboard.codevetter.com/explore/HypothesisWorks/hypothesis)[![keon](https://avatars.githubusercontent.com/u/10793962?v=4&s=24)

keon/ algorithms

Minimal examples of data structures and algorithms in Python

Python 26k 65%](https://starboard.codevetter.com/explore/keon/algorithms)[![sqlalchemy](https://avatars.githubusercontent.com/u/6043126?v=4&s=24)

sqlalchemy/ sqlalchemy

The Database Toolkit for Python

Python 12k 65%](https://starboard.codevetter.com/explore/sqlalchemy/sqlalchemy)[![pallets](https://avatars.githubusercontent.com/u/16748505?v=4&s=24)

pallets/ flask

The Python micro framework for building web applications\.

Python 75k 65%](https://starboard.codevetter.com/explore/pallets/flask)
