Comparison
complexipy vs lizard vs mccabe 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 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 lizardMcCabe checker, plugin for flake8
Low maintenance activity. Last release over 4 years ago, commits in 2 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install mccabeMonitor 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
- xenon is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- mccabe is the most used: 70M downloads a month, 31× more than lizard.
- lizard is better maintained: Pythie’s Index 93 against 22.
- complexipy is growing fastest: downloads +43% over the last month.
Side by side
| Metric | complexipy | lizard | mccabe | xenon |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 84 | 93 |