Comprehensive Python code analyzer with HTML reporting
Project description
Application Analysis Tool
A comprehensive Python code analyzer that generates static HTML reports.
Installation
pip install -e .
Usage
After installation, run from command line:
analyze-app <path-to-project>
Options
analyze-app <path> [options]
Arguments:
path Path to the Python project to analyze
Options:
-o, --output PATH Output HTML report path (default: report.html)
--skip-dynamic Skip runtime analysis
--skip-llm Skip LLM-powered analysis (requires OPENAI_API_KEY)
-q, --quiet Suppress progress output
--no-browser Don't auto-open report in browser
Examples
# Basic analysis
analyze-app ./my_project
# Custom output path
analyze-app ./my_project -o analysis_report.html
# Quick analysis without LLM
analyze-app ./my_project --skip-llm
# Silent mode, no browser
analyze-app ./my_project -q --no-browser
Environment Variables
OPENAI_API_KEY- Required for LLM-powered analysis features (optional)
What It Analyzes
- Placeholders/Stubs - TODOs, FIXMEs, stub functions, mock patterns
- Complexity - Cyclomatic complexity, nesting depth, lines of code
- Execution Flow - Call graphs, entrypoints, architecture violations
- Naming - Magic identifiers, naming conventions
- Dead Code - Unused imports, functions, unreachable code
- Security - Hardcoded secrets, eval/exec, SQL injection patterns
- Duplication - Duplicate functions and code blocks
- Logging - Log quality, spam detection
- Metrics - Training metric stagnation (for ML projects)
Output
Generates a self-contained HTML report with:
- Health score (0-100) and letter grade (A-F)
- Executive summary
- Detailed findings by category
- Actionable recommendations
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 application_analysis-1.0.1.tar.gz.
File metadata
- Download URL: application_analysis-1.0.1.tar.gz
- Upload date:
- Size: 55.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e02ef327dc3249af9705075710802fc2fc47bd8a6f6366dce9ec21d2941fa1ce
|
|
| MD5 |
4729967d81e0c4ee7b2fd91daba2a440
|
|
| BLAKE2b-256 |
fa85ea94a9baebc9d31c69f65e5999a3135ce183bf66302662f311eb1ba7fbee
|
File details
Details for the file application_analysis-1.0.1-py3-none-any.whl.
File metadata
- Download URL: application_analysis-1.0.1-py3-none-any.whl
- Upload date:
- Size: 66.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
200084a236a265e83df9a6206fcefb0838cadb1b5b363f5add787237451bef20
|
|
| MD5 |
e1ff6626f784920cfddafcc5097975a6
|
|
| BLAKE2b-256 |
84c4eae17a72ec5ac5901d390c55acf7e5cbdffd8f818264346279afc0002d5b
|