Comparison
cognitive-complexity vs complexipy vs lizard
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 2 weeks ago, commits in 23 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 20 of the last 26 weeks. A safe choice.
pip install lizardIn short
- cognitive-complexity looks abandoned: avoid it for new projects.
- lizard is the most used: 2.2M downloads a month.
- Maintenance is comparable: lizard 93, complexipy 84 on Pythie’s Index.
- complexipy is growing fastest: downloads +37% over the last month.
- Safe default for a new project: lizard.
Side by side
| Metric | cognitive-complexity | complexipy | lizard |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 20 | 84 |