Pyprojectviz
Super simple and easy to use tool to visualize class & method structure of a Python project
Install / Use
/learn @codekuu/PyprojectvizREADME
Pyprojectviz (Python Project Visualization Tool)
<p align="center"> <img src="https://raw.githubusercontent.com/codekuu/pyprojectviz/main/docs/pyprojectviz.png" alt="PyProjectViz"/> </p>Overview
This tool generates a Graphviz diagram of the Python project structure, showing classes, methods, and their relationships, including method calls. It's designed to help developers understand the architecture of a Python codebase by visually mapping out its components.
<p align="center"> <img src="https://raw.githubusercontent.com/codekuu/pyprojectviz/main/docs/example.png" alt="PyProjectViz Example"/> </p>Features
- Visualizes classes and methods in a Python project.
- Shows relationships between methods, including method calls.
- Allows excluding common built-in method calls (like
join,split,append) from the visualization. - Supports different Graphviz layout engines for various diagram styles.
- Customizable through configuration file.
Requirements
- Python 3.8 or higher
- Graphviz installed on your system (Graphviz Download Page)
- Poetry (optional, for development)
Installation
Pip
- Ensure you have Python and Graphviz installed on your system.
- Install the Python package
pyprojectvizusing Pip:
pip install pyprojectviz
Source
- Ensure you have Python and Graphviz installed on your system.
- Clone the repository:
git clone https://github.com/codekuu/pyprojectviz.git
- Install the Python packages with Poetry or Pip from source:
# Install with Poetry
poetry install
# Install with Pip
pip install .
Usage
Pip
Run the script from the command line with the following arguments:
python -m pyprojectviz . --config examples/example_conf_file.yaml
Source
Run the script from the command line with the following arguments:
poetry run python pyprojectviz . --config examples/example_conf_file.yaml
This will generate a Graphviz diagram of the project at the "." path, using the specified configuration file.
Customization
Pyprojectviz can be customized through a configuration file can be found in the examples directory.
License
GNU General Public License (GNU GPL)
Contributions
Contributions are welcome. Please send pull requests or open issues to discuss proposed changes.
Related Skills
node-connect
341.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
