Skip to main content

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


Download files

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

Source Distribution

application_analysis-1.0.0.tar.gz (55.8 kB view details)

Uploaded Source

Built Distribution

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

application_analysis-1.0.0-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

Details for the file application_analysis-1.0.0.tar.gz.

File metadata

  • Download URL: application_analysis-1.0.0.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

Hashes for application_analysis-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dd3d016ee458165ad1c06c9565a25abdbad43243d56c920ce87a2f3aa4296d65
MD5 5a53192f85b8621a3aec93b8ec980113
BLAKE2b-256 eda0a1ac7189ae19ecfeff8093f8b9c60e146eeb63c6087fe4ef16d6c96400a1

See more details on using hashes here.

File details

Details for the file application_analysis-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for application_analysis-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0eb95625b1f623b218c913660c46ad944fec28c89202649073a5aae96633a4f1
MD5 4b8516e39d7e9af884ec307b4aaf61f2
BLAKE2b-256 e81719595d117de5becfe78f080f383d3e0655e28ed9a55b3d484f4fe9f48c39

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