Skip to main content

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.

Metadata

Release files for django-queryset-erd 2025.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-queryset-erd 2025.1.1
File Size Uploaded
django_queryset_erd-2025.1.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-queryset-erd 2025.1.1
File Interpreter ABI Platform
django_queryset_erd-2025.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / django_queryset_erd-2025.1.1.tar.gz

Download URL django_queryset_erd-2025.1.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b7b89323f17e41b201eeea1cca106618f7fe9b8cf561703c630ea4dc5b827a9b
BLAKE2b-256 checksum
How to use checksums
2290adb45b95555792bf5c203be8d69c1dfe42d138937b5cdec61ad1de07c5d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / django_queryset_erd-2025.1.1-py3-none-any.whl

Download URL django_queryset_erd-2025.1.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5057030f04d989f25d4f62b8c65f5915a959f515f3343dd805dce530f3cac3e0
BLAKE2b-256 checksum
How to use checksums
f2671b77b2893e28099463bfd164c1af55a3a3d57b577c3e57313d5363366742
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

2025.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page