Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashishb/python_dep_generator

Genrates python dependency graph
https://github.com/ashishb/python_dep_generator

dependency-graph python

Last synced: about 2 months ago
JSON representation

Genrates python dependency graph

Awesome Lists containing this project

README

        

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](https://d2weczhvl823v0.cloudfront.net/ashishb/python_dep_generator/trend.png)](https://bitdeli.com/free "Bitdeli Badge")