Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cyrex-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cyrex-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for cyrex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92ab615e97dbd70fb180d4a48a9279ab971917c3cd7dc1a8aa85f631d3dcbccd
MD5 cbafcd950c8fca7867119bbe919001b0
BLAKE2b-256 68d8d4f7b97025764b8367da9219dd39d62926addc8693b9462538049fe44033

See more details on using hashes here.

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

Hashes for cyrex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f8c0df431b192733306dd4a796ee339615dbe52f56f242590fd0435d4923ac4
MD5 955ca7e2bea59ce30279d2c308029cf2
BLAKE2b-256 4563261b9b5169cabdc39e14b6fd634bfde9a0d48d2c830e1f789a9365c1de51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page