Django application to detect cyclic imports
Project description
Application to detect cyclic imports. With this application you can analyze the dependence of your applications
Requeriments
python-graph-core (1.8.1)
python-graph-dot (1.8.1)
pysmell (0.7.3)
pyplete (0.0.1)
Installation
In your settings.py:
INSTALLED_APPS = ( 'django_detect_cyclic', )
Caption
The nodes are the applications, or the modules of the applications (if you use the option show-modules)
One edge means that the node source import the node destination
When there is a cycle the edge has a background color (the same color in all the cycle), and it label contains “Cycle X”
The label of the edges contains the weight in parentheses
If you use the options show-modules, each node has a background color. If two nodes are to the same application, they have the same background color.
Possibles Errors
It is possible that the next links are interested if you can some problem:
It is possible that you have to remove the pyc files:
find -iname "*.pyc" -exec rm "{}" \;
Usage (Examples)
python manage.py detect_cyclic python manage.py detect_cyclic --include-apps="app1,app6,app7,app11" --file-name="my_graph.svg" --exclude-packages="migrations,templatetags" --verbosity=2 python manage.py detect_cyclic --include-apps="app1,app6" --show-modules --file-name="my_graph.svg" --exclude-packages="migrations" --verbosity=2 python manage.py detect_cyclic --include-apps="app1,app6" --only-cyclic --file-name="my_graph.svg" --exclude-packages="migrations" --verbosity=2
To see other examples click in examples
Releases
0.0.2 (2012-07-09)
Documentation and examples
0.0.1 (2012-07-09)
Initial release.
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
Hashes for django-detect-cyclic-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3399713c325f92eb973a502dd94c6616aba198b80dc59436875cd5b824da6a65 |
|
MD5 | 5c7ab6e44fcc31a48a7de41538b488d9 |
|
BLAKE2b-256 | feca4bcb3cafeaa46f4e992e6e3be48f93904cb9052ddf3ad47e7e7ca64e9527 |