Skip to main content

Visualizes classes and methods in a Python project

Project description

Pyprojectviz (Python Project Visualization Tool)

PyProjectViz

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.

PyProjectViz Example

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

Installation

Source

  1. Ensure you have Python and Graphviz installed on your system.
  2. Clone the repository:
git clone https://github.com/codekuu/pyprojectviz.git
  1. Install the Python packages graphviz and typer using Poetry:
poetry install

Pip

  1. Ensure you have Python and Graphviz installed on your system.
  2. Install the Python package pyprojectviz using Pip:
pip install pyprojectviz

Usage

Source

Run the script from the command line with the following arguments:

poetry run python pyprojectviz . --config examples/example_conf_file.yaml

Pip

Run the script from the command line with the following arguments:

python -m 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.

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

pyprojectviz-0.1.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

pyprojectviz-0.1.1-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page