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-2024.10.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_queryset_erd-2024.10.1.tar.gz
Algorithm Hash digest
SHA256 6a4142a6a9d793f366f1dc0fb922723fc0abed7fe3323cb37a226b743e3bd971
MD5 260870acadeb3b63bf4bcd02ef88f667
BLAKE2b-256 b2b8d5efb89dcffc3cea5a90c113a531a186024c7073efff4d20cd53c467abc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_queryset_erd-2024.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5faf28c5991efc7b1651921a74ba977bfec4c351e86bc3ac6b179e30f96df463
MD5 4e5448113929a35bbdebe2b50fb4aaa6
BLAKE2b-256 6d5dbd66147b02d7eca0adb05420345185f0e15dd68b5d1c6b3bd349277419c2

See more details on using hashes here.

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