Visualizes classes and methods in a Python project
Project description
Pyprojectviz (Python Project Visualization Tool)
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.
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)
Installation
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
graphviz
andtyper
using Poetry:
poetry install
Pip
- Ensure you have Python and Graphviz installed on your system.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyprojectviz-0.1.1.tar.gz
.
File metadata
- Download URL: pyprojectviz-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.11.2 Linux/4.19.0-17-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c669046f315badcad84da6169bc8e72dbe65266ec94d07ad633a4af05e0c9eb2 |
|
MD5 | 0e841f34904848860d939f565442072d |
|
BLAKE2b-256 | 1a40b3de8db1aa6b668c641e043bba65bbb9849951bd484ec4f08dec3a630321 |
File details
Details for the file pyprojectviz-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pyprojectviz-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.11.2 Linux/4.19.0-17-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9892ba73008d15cd9fb5b18f18bd4beff0da101466622271fc4828293164dd61 |
|
MD5 | 9e8cceaed7e16da1875eb7f5b1cfaa85 |
|
BLAKE2b-256 | c951b7076f0ee6cc06d180511921f09bd0655a74137c9a22c50c03c270376bd4 |