RADON(1)
๐ radon โ the manual page, but make it cute ๐
okay bestie, welcome to the radon page (that's section 1 of the manual, iykyk) โจ this is the whole thing, every single flag, no skips, no cap ๐ซถ
โจ NAME โจ
radon โ Python tool to compute code metrics ๐
๐ฆ DESCRIPTION ๐ฆ
okay so radon is a Python tool that computes various code metrics. that's literally the whole vibe. it looks at your code and goes "here's some numbers about it, bestie" ๐ฅ๐
๐ Summary ๐
radon is a Python tool which computes various code metrics. the supported metrics are, and bestie there are four of them so brace yourself:
- raw metrics:
SLOC, comment lines, blank lines, etc. ๐ - Cyclomatic Complexity (i.e. McCabe's Complexity) โ yes that one, the famous one ๐
- Halstead metrics (all of them. every last one. she's thorough ๐ )
- the Maintainability Index (a Visual Studio metric) โ fancy fr fr
and the best part?? Radon can be used either from the command line or programmatically through its API. so whether you're a terminal girly or a script girly, she's got you ๐
๐ธ Usage ๐ธ
radon [-h] [-v] {cc,raw,mi,hal} ...
okay so that's the shape of it. now let's break down every single piece, because nothing gets skipped on my watch ๐
โญ positional arguments โญ
{cc,raw,mi,hal}โ pick your fighter, bestie. here's what each one does:ccโ Analyze the given Python modules and compute Cyclomatic Complexity (CC). ๐rawโ Analyze the given Python modules and compute raw metrics. ๐miโ Analyze the given Python modules and compute the Maintainability Index. ๐halโ Analyze the given Python modules and compute their Halstead metrics. ๐งฎ
๐ซถ optional arguments ๐ซถ
-h,--helpโ show this help message and exit. the classic. the iconique. she will never let you down ๐-v,--versionโ show program's version number and exit. ๐
๐ง Links ๐ง
okay so if you wanna go down the rabbit hole on what Cyclomatic Complexity even is, here's the link the manpage gives you:
<https://dzone.com/articles/
what-exactly-is-mccabe-cyclomatic-complexity>
and here's the tl;dr vibe of it, straight from the page:
Cyclomatic Complexity can be seen simply as the number of independent paths that exist between the input of the function and its output
also two very important little notes, bestie, don't skip these ๐
- radon output consists of columns. The first column indicates
FMC- or function method class. ๐ค - Use
--exclude "*/filename.py"to skip a particular file(s)
๐ Copyright ๐
2012-2017 Michele Lacchia
and that's the whole page, you ate it, periodt ๐โจ this was radon section 1, version 2.3.1, written by Michele Lacchia, copyright 2012-2017 โ go compute some metrics bestie, the columns are waiting ๐๐ฆ
๐ฆ where this page comes from
- ubuntu resolute: radon 6.0.1+ds1-4build1 ยท BSD-3-Clause
- ubuntu stonking: radon 6.0.1+ds1-4build1 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms