No project description provided
Project description
django-app-tree
This is a dependency checking / generating tool that highlights dependencies between apps.
One type of dependency is that models from app A have a reference to a model in app B.
Another one is simply where code is called.
The tool is a Django management command that can simply be called by
./manage.py dependency_tree
especially
./manage.py dependency_tree --help
might be helpful.
The final output is a graphviz file between the "-----------" lines
Just copy it into an empty file and run the graphviz (https://graphviz.org/) compiler, e.g. with dot dependencies.dot -Tpdf -o test.pdf
to generate a PDF.
Example commands are:
./manage.py dependency_tree --contains-app=test --with-labels
to show all relations of the "test" app (from / to) and add the name of the models, functions or classes as labels.
Or:
./manage.py dependency_tree --from-app=example --with-labels
to show which apps the "example" app calls code from.
To get the full picture of all relations, just call:
./manage.py dependency_tree --with-labels
BUT beware... you might not like what you see :)
Development
Install the pre-commit hooks:
pre-commit install
pre-commit install --hook-type commit-msg
pre-commit install --hook-type pre-push
Local python setup:
python3.10 -m venv .
source ./bin/activate
pip install --upgrade pip
pip install --editable .[dev,test,docs]
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_app_tree-0.1.0.tar.gz
.
File metadata
- Download URL: django_app_tree-0.1.0.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 537c3bfdffc396116c0e36d54f7dac095c58b80380ed719922758efe0e8ff939 |
|
MD5 | 027fcb9d02667e98f991a8ab4ed7f728 |
|
BLAKE2b-256 | 22c2c506cc5323f8a661c4a928362379380069bf2f2d41bc346d0e9358f222a0 |
File details
Details for the file django_app_tree-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: django_app_tree-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f4bcf0509aecd09d6c548ecae97a5309b44924f66eee4d38061cbbeff9ab9ad |
|
MD5 | 60a5d4aa22d270d19a835fa785beb5b5 |
|
BLAKE2b-256 | 08201377c31d9a41d0c8b181f58b02b741706e2cc87c15b2cec5d9cfd80d583f |