CodePulse — AI-Powered Code Analysis Engine
Developer Tools
A sophisticated Python code analysis tool that provides real-time insights into code complexity, quality metrics, and code smells using Abstract Syntax Tree (AST) parsing.
Live Preview
Interactive preview — open in full window for the best experience
Technology Stack
Python 3.11Flask 3.0SQLAlchemyAST ParserDockerCI/CD
Key Features
- AST-Based Parsing — Parses Python source into an Abstract Syntax Tree for accurate structural analysis
- Cyclomatic Complexity — Counts branches to compute per-function and overall complexity scores
- Halstead Metrics — Quantifies code volume, difficulty, effort, estimated bugs, and development time
- Maintainability Index — Composite score (0-100) using the Microsoft variant formula
- Code Smell Detection — Detects long functions, deep nesting, god classes, duplicate code, and more
- Letter Grading — Assigns A-F grade based on maintainability, complexity, and smell count
- Analysis History — Persists every analysis to SQLite with aggregate statistics
- REST API — Full JSON API for programmatic access to all analysis features
About This Project
Fully open source (MIT License), containerized with Docker, and includes a CI/CD pipeline via GitHub Actions. Demonstrates production-grade Python development with comprehensive test coverage, clean architecture, and professional deployment.