Submit a product

Radon

Python code metrics command-line tool for complexity and maintainability

ToolCommand lineOpen source

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.

All alternatives

PHP_CodeSniffer

Command-line checker that flags PHP code against coding standards

ToolDeveloper Tools··Open source·11k

jscpd

Finds duplicated code blocks across source files in many languages

ToolDeveloper Tools··Open source·6.7k

SonarQube CLI

command-line client for SonarQube code quality and security scans

ToolDeveloper Tools·

tqdm

Progress bar for Python loops and command-line pipelines

ToolDeveloper Tools··Open source·31k

python-fire

Library that generates command line interfaces from Python objects

ToolDeveloper Tools··Open source·28k

pipx

command-line installer for Python apps in isolated environments

ToolDeveloper Tools··Open source·13k

Click

Python library for building composable command line interfaces

ToolDeveloper Tools··Open source·18k

gdb-dashboard

Modular terminal dashboard for the GDB debugger, written in Python

ToolDeveloper Tools··Open source·12k