Radon
Python code metrics command-line tool for complexity and maintainability
Radon is a command-line tool that computes code metrics for Python source files. It reports cyclomatic complexity, Halstead measures, raw line counts and a maintainability index, which helps developers spot functions and modules that are hard to read or test. It suits Python programmers who want to track code quality during development or in a continuous integration check.
The tool runs from the terminal and works on existing Python code without changes to the project. Its source code is public under the MIT license, so it can be inspected, reused and modified freely. Documentation is hosted on the project's readthedocs site.
Alternatives to Radon
Products that do a similar job in Developer Tools.
PHP_CodeSniffer
Command-line checker that flags PHP code against coding standards
jscpd
Finds duplicated code blocks across source files in many languages
SonarQube CLI
command-line client for SonarQube code quality and security scans
tqdm
Progress bar for Python loops and command-line pipelines
python-fire
Library that generates command line interfaces from Python objects
pipx
command-line installer for Python apps in isolated environments
Click
Python library for building composable command line interfaces
gdb-dashboard
Modular terminal dashboard for the GDB debugger, written in Python