This project is forked from code2flow, which is a tool to generate call graphs for dynamic programming language with following algorithm:
- Translate your source files into ASTs.
- Find all function definitions.
- Determine where those functions are called.
- Connect the dots.
The purpose of this fork is to provide a command-line tool to find workflow tasks which call each other and output it in JSON format.
Clone this repository and install frinxio-code2flow
:
pip install .
Run a script for a single file / directory:
frinxio-code2flow worker.py
Run a script for a multiple files / directories:
frinxio-code2flow /src/workers worker.py
See all command-line options by running frinxio-code2flow --help
:
usage: frinxio-code2flow [-h] [--quiet] [--skip-parse-errors] paths [paths ...]
CMD tool to find workflow tasks which call each other.
positional arguments:
paths Files or directories to search in.
options:
-h, --help show this help message and exit
--quiet, -q Supress INFO logging.
--skip-parse-errors Skip files that the language parser fails on.