graphdep is program to draw grahic of program modules.

Features

  • automatically discover modules
  • support PHP, Python, C and C++
  • start from a directory or a files (or many directories and files)
  • sort modules by: internal module, external module and standard modules (ex: <stdio.h> in C)

Usage

Go to your project root directory and call graph.py from your entry point (main file):

cd ~/prog/esban/trunk
graph.py -l python esban_gui.py

Useful options:

  • --help: display help
  • --no-external: hide all external modules
  • --with-standard: include standard modules
  • --no-recursion=MODULE: don't scan related of specified module.
  • --path=PATH: specify directory where module are located (if automatic discover doesn't work), works like -I option of gcc or PYTHONPATH environment variable for python. Use multiple --path options or use ":" to specify different directories.
  • --exclude=MODULE: exclude a module

You can specify multiple --path, --exclude and --no-recursion options, example:

graph.py (...) --exclude=pygame --exclude sys --path=include --path="console:gui"

Screenshots

$ graph.py -l python --with-standard ./esban_gui.py

Download

svn co http://haypo.hachoir.org/svn/graphdep

Dependencies

Browse source code

Browse Python source code.

Similar project

Callgraph:

Attachments