Skip to main content

Generate Entity-Relationship Diagrams from Django querysets

Project description

Django Queryset ERD Generator

Generate Entity-Relationship Diagrams from Django querysets using Mermaid notation.

Installation

pip install django-queryset-erd

Usage

from your_app.models import YourModel
from django_queryset_erd import generate_erd_from_queryset

queryset = YourModel.objects.select_related('related_model')
diagram = generate_erd_from_queryset(queryset)
print(diagram)

Features

  • Generates Mermaid ERD diagrams from Django querysets
  • Supports ForeignKey and ManyToManyField relationships
  • Handles reverse relationships

Requirements

  • Python 3.12+
  • Django >= 4.2

License

This project is licensed under the MIT License - see the LICENSE file for details.

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_queryset_erd-2025.1.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.

django_queryset_erd-2025.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file django_queryset_erd-2025.1.1.tar.gz.

File metadata

  • Download URL: django_queryset_erd-2025.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for django_queryset_erd-2025.1.1.tar.gz
Algorithm Hash digest
SHA256 b7b89323f17e41b201eeea1cca106618f7fe9b8cf561703c630ea4dc5b827a9b
MD5 2c5e40cbd51717582a4629fc4bbf20de
BLAKE2b-256 2290adb45b95555792bf5c203be8d69c1dfe42d138937b5cdec61ad1de07c5d3

See more details on using hashes here.

File details

Details for the file django_queryset_erd-2025.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_queryset_erd-2025.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5057030f04d989f25d4f62b8c65f5915a959f515f3343dd805dce530f3cac3e0
MD5 870d7fa68a88630331dcc815a30afdb0
BLAKE2b-256 f2671b77b2893e28099463bfd164c1af55a3a3d57b577c3e57313d5363366742

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