Skip to content

Latest commit

 

History

History

ast_module_deps

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

AST Module dependencies

Determines dependencies between modules using the import statements and generates a graphviz file from it (directed graph).

  • clone example code base

    git clone https://github.com/fracpete/python-weka-wrapper3.git
  • generate dependency graph

    python3 module_deps.py \
      -s ./python-weka-wrapper3/python/ \
      -o ./pww3.dot \
      -i "weka.*" \
      -e "weka.flow.*" \
      -v
  • generate PNG from graph

    dot -T png -o pww3.png pww3.dot
  • view PNG

    xdg-open pww3.png