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 details)

Uploaded Source

File details

Details for the file django-models2puml-0.2.tar.gz.

File metadata

  • Download URL: django-models2puml-0.2.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for django-models2puml-0.2.tar.gz
Algorithm Hash digest
SHA256 a96f345a709890a501dba2aa9bb272a5929bc81f1d38c0bade481650c0b3c1f4
MD5 090dd4781abf7bdfe065a5d162a1bd14
BLAKE2b-256 361be4bc8d6f2d1d8426d298282ca2007d98bbae3bd4750d7d71b65aa3c53a78

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