Comparison
cognitive-complexity vs complexipy vs lizard vs pyscn
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Library to calculate Python functions cognitive complexity via code
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install cognitive-complexityAn 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 complexipyA code analyzer without caring the C/C++ header files. It works with Java, C/C++, JavaScript, Python, Ruby, Swift, Objective C. Metrics includes cyclomatic complexity number etc.
Actively maintained. Last release 2 weeks ago, commits in 21 of the last 26 weeks. A safe choice.
pip install lizardAn intelligent Python code quality analyzer with architectural guidance
Actively maintained. Last release 3 weeks ago, commits in 25 of the last 26 weeks. A safe choice.
pip install pyscnIn short
- cognitive-complexity looks abandoned: avoid it for new projects.
- lizard is the most used: 2.3M downloads a month.
- Maintenance is comparable: lizard 93, pyscn 92, complexipy 84 on Pythie’s Index.
- complexipy is growing fastest: downloads +43% over the last month.
- pyscn is the newcomer: first released Sep 2025.
- Safe default for a new project: lizard.
Side by side
| Metric | cognitive-complexity | complexipy | lizard | pyscn |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 20 | Pythie’s Index: 84 | Pythie’s Index: 93 | Pythie’s Index: 92 |
| Verdict | Likely abandoned | Actively maintained | Actively maintained | Actively maintained |
| Downloads / month | 416.3K | 2.1M | 2.3M | 266.9K |
| Downloads, month over month | -3% | +43% | +35% | +38% |
| GitHub stars | 47 | 931 | 2.6K | 1.1K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 4 | 11 | 59 | 2 |
| Last release | Aug 9, 2022 | Nov 13, 2026 | Nov 16, 2026 | Nov 8, 2026 |
| Releases, 12 months | 0 | 20 | 19 | 78 |
| Weeks with commits | 0 / 26 | 24 / 26 | 21 / 26 | 25 / 26 |
| Recent contributors | 5 | 1 | 15 | 13 |
| First release | Oct 2019 | Feb 2024 | Sep 2013 | Sep 2025 |
| Python versions | 3.6 – 3.8 | 3.8 – 3.15 | 3.8 – 3.14 | 3.8 – 3.13 |
| License | MIT | MIT | MIT | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.