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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_queryset_erd-2024.10.1.tar.gz
.
File metadata
- Download URL: django_queryset_erd-2024.10.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a4142a6a9d793f366f1dc0fb922723fc0abed7fe3323cb37a226b743e3bd971 |
|
MD5 | 260870acadeb3b63bf4bcd02ef88f667 |
|
BLAKE2b-256 | b2b8d5efb89dcffc3cea5a90c113a531a186024c7073efff4d20cd53c467abc7 |
File details
Details for the file django_queryset_erd-2024.10.1-py3-none-any.whl
.
File metadata
- Download URL: django_queryset_erd-2024.10.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5faf28c5991efc7b1651921a74ba977bfec4c351e86bc3ac6b179e30f96df463 |
|
MD5 | 4e5448113929a35bbdebe2b50fb4aaa6 |
|
BLAKE2b-256 | 6d5dbd66147b02d7eca0adb05420345185f0e15dd68b5d1c6b3bd349277419c2 |