Skip to main content

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:

  1. Import the generate_class_diagram function from the UMLify module.

    from umlify.class_diagram import generate_class_diagram
    
  2. 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
    
  3. Call the generate_class_diagram function 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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

umlify-0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

umlify-0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for umlify-0.1.tar.gz
Algorithm Hash digest
SHA256 8fb9609b4cf9f3712ef9fb153b9821e57cd2a4c3aa6b1fdfb3485e1f6b56015e
MD5 9dadf0fe2a4f02b7357ab29f2618cadb
BLAKE2b-256 a6753b666d404099306183b6b697b9aefbf02f9eaf77bd3c95ac2138336d5f60

See more details on using hashes here.

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

Hashes for umlify-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f4211e806a67f08baf66729bf1ea5398327eb816bd3b4898e55322362b97c8c
MD5 5dcf17460a37e8ee5153981813612db3
BLAKE2b-256 53721d2e8c994aae0d4744ecc9654100b534da043fc46ae5d62f7f192680fd31

See more details on using hashes here.

Supported by

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