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

Uploaded Source

Built Distribution

django_queryset_erd-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_queryset_erd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d82be5b418e6ea3ae81ce540d35fc5ab7139f31f8a4f2e871fcc7c907facf62e
MD5 45d86df919a820df0c25db34f02cee87
BLAKE2b-256 a346fffa8d5817cd67da1d68bc618c4450d35c2b2f83b545260a8c520760410f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_queryset_erd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fe78ad75d3962c8e402a2ac4acc5d2bdbe7fc20dd7f5963b890ff4781932087
MD5 1765ef384376ff4206b695a12a78f283
BLAKE2b-256 a4b00158eed8fa68703b5af729444ecfcbaf12af85bb9dc1c162f223aae6149c

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