Skip to main content

A Django app to generate PlantUML class diagrams of installed apps models.

Project description

Django models2puml

Django models to PlantUML is a Django application which provides a management command to generate a PlantUML class diagram based on the install apps Django models. For more information about the PlantUML tool and text format https://plantuml.com

Installation & usage

  1. to use the application first you need to install it in your environment using pip:
pip install django-models2puml
  1. Add the application to your settings INSTALLED_APPS:
    INSTALLED_APPS = [
        ...
        'models2puml',
    ]
  1. Use the newly available management command using manage.py
   ./manage.py generatepuml --apps <Installed app name(s)>
  1. The output of the command is a plantUML text description of a class diagram of your installed apps models

ToDo

  • Add class relationships
  • Add the option to output the text to a file
  • Clean up the code
  • Add test coverage
  • Add the option to generate the diagram as an image (Not sure if this is appropriate here, will only add this option if convinced it's worth the added dependencies)

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

django-models2puml-0.2.tar.gz (15.5 kB view hashes)

Uploaded Source

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