A static code analyzer for Python to detect unused code, long functions, and TODOs.
Project description
cyrex – Minimal Static Code Analyzer for Python
A lightweight CLI tool to scan Python projects and catch common hygiene issues — no AI, no cloud, just clean code.
Overview
cyrex is a developer-friendly, blazing-fast static analysis tool for Python codebases.
It scans your project and reports:
- Unused imports and variables
- Duplicate imports
- TODO / FIXME / HACK comments
- Overly long functions
- Commented-out (dead) code blocks
All results are shown in a colorful CLI using [rich], with an optional JSON report for automation or CI.
Features
| Check Type | Description |
|---|---|
| ❌ Unused imports | Imports not used anywhere in the file |
| 🔁 Duplicate imports | Same import used more than once |
| ❌ Unused variables | Assigned but never used local variables |
| 📝 TODO/FIXME/HACK | Comments indicating unfinished or hacky code |
| ⚠️ Long functions | Functions longer than 50 lines (configurable) |
| 🧱 Dead code | Blocks of commented-out code detected as junk |
Sample output:
Scanned 12 files Found 8 issues
[main.py]
- Unused import: os
- TODO at line 45
- Function 'start_server' is too long (64 lines)
💾 Report saved to cyrex_report.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cyrex-0.1.0.tar.gz.
File metadata
- Download URL: cyrex-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92ab615e97dbd70fb180d4a48a9279ab971917c3cd7dc1a8aa85f631d3dcbccd
|
|
| MD5 |
cbafcd950c8fca7867119bbe919001b0
|
|
| BLAKE2b-256 |
68d8d4f7b97025764b8367da9219dd39d62926addc8693b9462538049fe44033
|
File details
Details for the file cyrex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cyrex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f8c0df431b192733306dd4a796ee339615dbe52f56f242590fd0435d4923ac4
|
|
| MD5 |
955ca7e2bea59ce30279d2c308029cf2
|
|
| BLAKE2b-256 |
4563261b9b5169cabdc39e14b6fd634bfde9a0d48d2c830e1f789a9365c1de51
|