Comparison
complexipy vs flake8-cognitive-complexity vs xenon
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 3 weeks ago, commits in 24 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-complexityMonitor code metrics for Python on your CI server
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install xenonIn short
- flake8-cognitive-complexity looks abandoned: avoid it for new projects.
- xenon is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- complexipy is the most used: 2.1M downloads a month.
- complexipy also has the best Pythie’s Index (84).
- complexipy is growing fastest: downloads +43% over the last month.
- Safe default for a new project: complexipy.
Side by side
| Metric | complexipy | flake8-cognitive-complexity | xenon |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 84 | Pythie’s Index: 19 | Pythie’s Index: 27 |
| Verdict | Actively maintained | Likely abandoned | Slowing down |
| Downloads / month | 2.1M | 282.5K | 1.8M |
| Downloads, month over month | +43% | +1% | +40% |
| GitHub stars | 931 | 71 | – |
| Stars, last 7 days | – | – | – |
| Direct dependents | 11 | 5 | 6 |
| Last release | Nov 13, 2026 | Aug 1, 2020 | Oct 21, 2024 |
| Releases, 12 months | 20 | 0 | 0 |
| Weeks with commits | 24 / 26 | 0 / 26 | – |
| Recent contributors | 1 | 4 | – |
| First release | Feb 2024 | Oct 2019 | Aug 2014 |
| Python versions | 3.8 – 3.15 | 3.6 – 3.8 | 3.1 – 3.12 |
| License | MIT | MIT | MIT |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.