2

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
f.ashouri
  • 5,409
  • 13
  • 44
  • 52

1 Answers1

1

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
cathei
  • 611
  • 4
  • 7
  • Thanks a lot, cathei. A handy answer solved my problem and I accepted your answer. It does draw the diagram for all the files but does not show the relationship between functions in different files. Are there any options to show the relationships between the functions of different files? – f.ashouri Oct 19 '22 at 13:14
  • 1
    @f.ashouri It has 'uses' relationship and 'defines' relationship, but you are using '--no-defines' flag which prevent defines relationship to be drawn. – cathei Oct 19 '22 at 17:19