Skip to main content

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

  1. Make sure Graphviz is installed

sudo apt-get update && sudo apt-get install graphviz graphviz-dev

  1. Install the package using pip:

pip install django-db-modeler

  1. Add the app to your Django project's INSTALLED_APPS:
INSTALLED_APPS = [
    ...,
    'db_modeler',
]

Usage

python manage.py model_db your_app.ModelName 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 1 --output model.svg

License

This project is licensed under the MIT License.

Metadata

Release files for django-db-modeler 0.1.5

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-db-modeler 0.1.5
File Size Uploaded Provenance
django-db-modeler-0.1.5.tar.gz 4.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-db-modeler 0.1.5
File Interpreter ABI Platform
django_db_modeler-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / django-db-modeler-0.1.5.tar.gz

Download URL django-db-modeler-0.1.5.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f1e0e43d31ce0b67516b9d30bf178138e23d3f4050223cc3aed6244380cd7a2d
BLAKE2b-256 checksum
How to use checksums
e31293d40b83134a302c7f234efa0f34cf82703480f7e1a391b88551500903b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / django_db_modeler-0.1.5-py3-none-any.whl

Download URL django_db_modeler-0.1.5-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
291009bf44857dcc59f509406ece6f61383421cad3842e3ee092d1385b73b5e5
BLAKE2b-256 checksum
How to use checksums
9d25c8457ee8e4e95dd38ec3c7de05871c8634ebd04743e41c893b040616ddc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Security for django-db-modeler 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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