Comparison
complexipy vs flake8-cognitive-complexity
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
An extremely fast Python library to calculate the cognitive complexity of Python files, written in Rust.
Actively maintained. Last release 2 weeks ago, commits in 23 of the last 26 weeks. A safe choice.
$
pip install complexipyAn extension for flake8 that validates cognitive functions complexity
Likely abandoned. No release or commit for years (last release over 6 years ago).
$
pip install flake8-cognitive-complexityIn short
- flake8-cognitive-complexity looks abandoned: avoid it for new projects.
- complexipy is the most used: 2.1M downloads a month, 7.2× more than flake8-cognitive-complexity.
- complexipy also has the best Pythie’s Index (84).
- complexipy is growing fastest: downloads +37% over the last month.
- Safe default for a new project: complexipy.
Side by side
| Metric | complexipy | flake8-cognitive-complexity |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 84 | 19 |