Django application to detect cyclic imports
Project description
Django detect cyclic
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)
django-form-admin (0.3.2) (optional)
jquery.graphviz (fronzen into the app, only to svg-js format)
Installation
In your settings.py:
INSTALLED_APPS = ( 'django_detect_cyclic', )
In your urls.py:
urlpatterns = patterns('', (r'^admin/detect_cyclic/', include('django_detect_cyclic.urls')), )
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
You have two ways, you can run a command:
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
Or you can access via web to the wizard:
/admin/detect_cyclic/
Examples
To see more examples click in examples
Releases
0.0.6 (2012-07-23)
Format svg-js (beta). Change dracula js to jquery.graphviz.js (Tested in Chrome and FireFox)
0.0.5 (2012-07-13)
Change force-colors option to use-colors option
Change distribution of the wizard
Usability
0.0.4 (2012-07-12)
Wizard to create graphs (/admin/detect_cyclic/)
Format svg-js (alpha)
Fix a little errors
0.0.3 (2012-07-10)
Add the option “scope-global”, this ignore the imports into the functions
Now if the verbosity option is 1, only show the errors
Now when a node (with show-modules) has the same name that a application, the node name will be app_name.__init__
Now the label of the cycle edges has the same color that the edge
Now disabled the colors of the edge and nodes when the format is not svg. But it is possible enabled if you use the “force color” option
Optimizations
New option “dotted-scope-local”. If the all import between two nodes are into a function the edge will be dotted
Fixed some little errors
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
File details
Details for the file django-detect-cyclic-0.0.6.tar.gz
.
File metadata
- Download URL: django-detect-cyclic-0.0.6.tar.gz
- Upload date:
- Size: 74.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd7473537fc4c796aa59b66858d78d5741914e99d86cdcf255461a80b133351a |
|
MD5 | 048d18a3955fe3db51746a560d48be67 |
|
BLAKE2b-256 | 9bbca84ac82549b349dc7be3c97779374b105fb9b1ca3e3cd9220e495c5b0f6f |