Installation¶
Radon is currently easiest to run directly from source. The repository ships with the interpreter entrypoint in radon.py, example programs, tests, and the standard library.
Requirements¶
- Python 3.11 or newer
- Git
Clone the Repository¶
Run the REPL¶
When Radon starts, it prints the current interpreter version and documentation link, then opens the interactive shell.
Run a Script¶
You can also run a one-off command:
CLI Reference¶
Radon currently supports these top-level CLI options:
source_fileto run a.rnfile-c,--commandto run inline Radon code-v,--versionto print the interpreter version-h,--helpto show usage information
The repository also contains testing-oriented permission flags:
-A,--allow-all-D,--allow-disk-P,--allow-py-W,--allow-network
These bypass runtime permission prompts and are intended for testing rather than normal interactive use.
Optional REPL Enhancement¶
For syntax highlighting and an improved REPL experience, install prompt_toolkit:
This enables:
- Live syntax highlighting as you type
- Command history with up/down arrows
- Auto-suggestions from history
The REPL works without it, but the experience is enhanced with prompt_toolkit installed.
Optional Python Environment¶
If you want an isolated environment while working on Radon itself:
That setup is useful for development and linting, but not required just to run radon.py.