Search code examples
python-3.xdiagramfunction-call

Drawing call function diagrams using pyan results in the diagram of just one python file


I'm trying to draw function call diagram for a complicated functional python code including many python files and related functions across them. I managed to make use of pyan tool to draw call diagram, but it just do it for a single *.py file and does not take into consideration the whole code and functions. Do you think there is an option to make it work for the whole code base?

pyan3 app.py  --uses --no-defines --colored --grouped --annotated --dot > app_diagram.dot

Solution

  • You can use glob pattern **/*.py. From the repository:

    filenames: glob pattern or list of glob patterns
                to identify filenames to parse (`**` for multiple directories)
                example: **/*.py for all python files