This script analyzes Python files in a specified directory, producing:
- An HTML report with embedded path visualization
- A CSV summary of metrics and issues
- A standalone PNG visualization of file relationships
It's recommended to work inside a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
Install required dependencies:
pip install -r requirements.txt
Alternatively, install the package and its dependencies via pip:
pip install .
Once installed, run the analyzer with the console script:
deepseek-python <directory> [output_dir]
deepseek-python <directory> [output_dir]
python deepseek_python.py <directory> [output_dir]
<directory>
: Path to the folder containing.py
files to analyze.[output_dir]
: (Optional) Directory where reports will be saved (default:python_analysis_reports
).
After running, open the generated HTML report (python_analysis_report.html
) in the output folder to view the results.