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 application-analysis

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.2.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.2-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: application_analysis-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d8c954527017832145ca0898f2ad760f1001d7e1fecd56a09a280b7dfc20ea2d
MD5 eda7fceb305b6d160a8699c902223060
BLAKE2b-256 cb4c11178b19c17f8f9397effb722a83cad0773f1d4c6fbd2f534197814bee7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for application_analysis-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bad036ca857d318d896edf5da8e558a1fa80c3c4cb28a088c1e03b05720e9af1
MD5 65e9ed648df182d8ac3836a01e886911
BLAKE2b-256 a0a1b5b383927ad5ef675e852c2a6fdf0b43a32ce5cd2aca87712b0d6ffac483

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