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.
Pick a small issue you can reproduce, then fix it with your AI coding agent.
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-20
More in Developer tools and infrastructure
An open-source TypeScript engine for calculating Zi Wei Dou Shu charts and consulting traditional references. It helps developers build charting and interpretation tools.
Forked 2026-10-18Last synced 2026-10-20License: MITDeveloper tools and infrastructureGitHub
ImHex is a hex editor for inspecting and editing binary files. Reverse engineers, programmers, and forensic users can search and patch bytes or describe file structures with its pattern language.
Forked 2026-10-17Last synced 2026-10-20License: GPL-2.0Developer tools and infrastructureGitHub
Numa is a portable DNS resolver for local development and privacy. It blocks ads, gives local services names like frontend.numa, and runs without depending on a cloud account.
Forked 2026-10-17Last synced 2026-10-20License: MITDeveloper tools and infrastructureGitHub
Handwired turns ordinary JavaScript logic into differentiable neural-network-style calculations, so programs can run as matrix operations in JavaScript or WebGPU. It is for experimenting with GPU execution and optimization of code written in a traditional style.
Forked 2026-10-16Last synced 2026-10-20License: MITDeveloper tools and infrastructureGitHub