pyscn
A code quality analyzer for Python that looks at complexity, duplicated code, dead code and dependencies. It aims to keep AI-generated code maintainable.
Share on XLicense: MIT
Overview
pyscn is a code quality analyzer for Python, built with Go and tree-sitter. With one command it scores a whole codebase from 0 to 100 with an A to F grade and produces an HTML report showing what to fix first. It examines dead code, duplicated code, complexity, module and directory hotspots, architecture issues such as circular imports and layer violations, and class design. It is aimed at keeping code written with AI tools maintainable, and can run through uvx or pipx.
Key features
- Dead code and duplicate code detection
- Cyclomatic and cognitive complexity checks
- Architecture checks for circular imports and layer rule violations
- Class design metrics such as coupling and cohesion
Best for
Useful for Python developers who use AI coding tools and want a quick structural health check with a prioritized report.
- Upstream
- ludo-technologies/pyscn
- Fork on GitHub
- Guo-astro/pyscn
- Upstream stars
- 1.1k
- Category
- Developer tools and infrastructure
- Language
- Go
- License
- MIT
- Forked
- 2025-10-13
- Sync status
- Updated by last syncLast synced 2026-10-16
More in Developer tools and infrastructure
Rustrak is a self-hosted error tracker for collecting errors, logs, transactions, release health, and AI-agent traces through Sentry-compatible SDKs. Run it on your own hardware to monitor applications without moving to a hosted service.
Forked 2026-10-15Last synced 2026-10-16License: GPL-3.0Developer tools and infrastructureGitHub
WrapPin is an iOS 27+ tool for testing the location an iPhone reports to the system. Choose a fixed location or test walking and driving routes, then restore the real location.
Forked 2026-10-14Last synced 2026-10-16Custom license (see repository)Developer tools and infrastructureGitHub
Homelable helps self-hosted homelab users scan and diagram their infrastructure, document devices, and check whether services are online.
Forked 2026-10-14Last synced 2026-10-16License: MITDeveloper tools and infrastructureGitHub
Repowise indexes code, call graphs, Git history, tests, docs, and design decisions locally, helping developers and coding agents understand dependencies, find dead code, and decide what to fix.
Forked 2026-10-14Last synced 2026-10-16License: AGPL-3.0Developer tools and infrastructureGitHub