python_dep_generator

Generates python code dependency graph


Keywords
dependency-graph, python
License
MIT
Install
pip install python_dep_generator==0.1

Documentation

python_dep_generator

Generates python code dependency graph

Install: sudo pip install python_dep_generator

Usage: generate-dep [-h] [-s] path

Arguments:

path path (or dir) of the python file (or all python files under it).

Optional arguments:

-h, --help : show this help message and exit

-s, --small_list : Pass -s to hide system packages and get a smaller list.

Sample outputs

$ generate-dep generate_dep.py

generate_dep.py
|_ argparse
|_ importlib
|_ inspect
|_ logging
|_ os
|_ sys
|_ traceback
|_ types
$ generate-dep samples

samples/module1.py
|_ os
|_ sys

samples/module2.py
|_ sys
|_ time
|_ /home/ashishb/src/python_dep_generator/samples/module1.py
$ generate-dep -s samples

samples/module1.py

samples/module2.py
|_ /home/ashishb/src/python_dep_generator/samples/module1.py

Bitdeli Badge