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]
Metadata
Release files for django-app-tree 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_app_tree-0.1.0.tar.gz | 18.2 kB | Without provenance | Details for django_app_tree-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_app_tree-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for django_app_tree-0.1.0-py3-none-any.whl |
Total release size: 36.5 kB
Release files / django_app_tree-0.1.0.tar.gz
| Download URL | django_app_tree-0.1.0.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
537c3bfdffc396116c0e36d54f7dac095c58b80380ed719922758efe0e8ff939
|
|
BLAKE2b-256 checksum How to use checksums |
22c2c506cc5323f8a661c4a928362379380069bf2f2d41bc346d0e9358f222a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / django_app_tree-0.1.0-py3-none-any.whl
| Download URL | django_app_tree-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f4bcf0509aecd09d6c548ecae97a5309b44924f66eee4d38061cbbeff9ab9ad
|
|
BLAKE2b-256 checksum How to use checksums |
08201377c31d9a41d0c8b181f58b02b741706e2cc87c15b2cec5d9cfd80d583f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for django-app-tree 0.1.0
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.