A Django management command to generate a graph of a model and its neighbors up to a specified depth.
Project description
Django Graph Models Command
This package provides a Django custom management command to generate a graph of a model and its neighbors up to a specified depth.
Installation
- Install the package using pip:
pip install django-db-modeler
- Add the app to your Django project's
INSTALLED_APPS:
INSTALLED_APPS = [
...
'db_modeler',
]
Usage
python manage.py model_db your_app.ModelName depth 1 --output output_file.svg
Options
- model_name: The name of the model to visualize.
- depth: The depth of relationships to include.
- --output: The output file name.
- --theme: The theme to use for the graph (default: original).
- --layout: The layout of the graph (default: dot).
Example
python manage.py model_db product.Product 0 --output model.svg
License
This project is licensed under the MIT License.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-db-modeler-0.1.2.tar.gz.
File metadata
- Download URL: django-db-modeler-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44713fa7667652eafaecd96b8e8a93d8e1ba8784fbd3a03dd2e6a0017f327f05
|
|
| MD5 |
092ce6e02683d10a4fc762dc691169c6
|
|
| BLAKE2b-256 |
b36af53b8d5c959d47ee161e82b3541cf5d4e6e757963993b43a0310cc3ed354
|
File details
Details for the file django_db_modeler-0.1.2-py3-none-any.whl.
File metadata
- Download URL: django_db_modeler-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1769e5871a299b8d02b80a1cdcbc94f8f1f8583ebe06bea3d67d8bd2daad9b34
|
|
| MD5 |
39d991059a81a7584610deb13dae0e5d
|
|
| BLAKE2b-256 |
f72c494fec3fa64e13e0e1ba8a982d2fc2f738f5e3bf128eb084559f32202dc4
|