A Python library to generate plantUML diagrams from code.
Project description
UMLify Python
UMLify Python is a library that allows generating UML (Unified Modeling Language) diagrams in plantUML format from Python code. This tool is particularly useful for visualizing the structure and relationships in Python projects, aiding in understanding and documenting complex systems.
Features
Currently, UMLify supports the generation of class diagrams, with plans to expand to other types of UML diagrams. Initially, it was developed with a focus on Django projects, but it is evolving to support a broader range of Python code structures and frameworks.
Installation
To install UMLify, use the following command:
pip install umlify
Usage
To generate a UML diagram, follow the steps below:
-
Import the
generate_class_diagramfunction from the UMLify module.from umlify.class_diagram import generate_class_diagram
-
Define the path to your Python project and the names of the packages you wish to analyze.
app_path = '/path/to/your/project' package_names = ["views", "services", "repositories"] # Example packages
-
Call the
generate_class_diagramfunction with the project path, package names, and the output file path.output_file = '/path/to/diagram.puml' generate_class_diagram(app_path, package_names, output_file)
License
UMLify is licensed under the MIT License.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file umlify-0.1.tar.gz.
File metadata
- Download URL: umlify-0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fb9609b4cf9f3712ef9fb153b9821e57cd2a4c3aa6b1fdfb3485e1f6b56015e
|
|
| MD5 |
9dadf0fe2a4f02b7357ab29f2618cadb
|
|
| BLAKE2b-256 |
a6753b666d404099306183b6b697b9aefbf02f9eaf77bd3c95ac2138336d5f60
|
File details
Details for the file umlify-0.1-py3-none-any.whl.
File metadata
- Download URL: umlify-0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f4211e806a67f08baf66729bf1ea5398327eb816bd3b4898e55322362b97c8c
|
|
| MD5 |
5dcf17460a37e8ee5153981813612db3
|
|
| BLAKE2b-256 |
53721d2e8c994aae0d4744ecc9654100b534da043fc46ae5d62f7f192680fd31
|