Comparison
complexipy vs flake8-cognitive-complexity vs lizard vs pyscn
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-complexityA 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
- flake8-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 | complexipy | flake8-cognitive-complexity | lizard | pyscn |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 84 | 19 |