Comparison
cognitive-complexity vs complexipy
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 complexipyIn short
- cognitive-complexity looks abandoned: avoid it for new projects.
- complexipy is the most used: 2.1M downloads a month, 4.8× more than 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 | cognitive-complexity | complexipy |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 20 | 84 |