ronaldoussoren / modulegraph

modulegraph determines a dependency graph between Python modules primarily by bytecode analysis for import statements. modulegraph uses similar methods to modulefinder from the standard library, but uses a more flexible internal representation, has more extensive knowledge of special cases, and is extensible.
MIT No Attribution
38 stars 4 forks source link

How to parse and consume output #56

Closed lastmjs closed 1 year ago

lastmjs commented 1 year ago

Hi, I just found this library and it looks extremely useful for what I'm trying to accomplish. I'm sort of new to Python, and I'm wondering what the best way to consume the output of the tool is. I need to get this into a data structure that I can walk through in my own code, I would have expected a JSON output or something similar. Is .dot a common format that the Python community has tools to parse?

lastmjs commented 1 year ago

I didn't see the rest of the documentation here: https://modulegraph.readthedocs.io/en/latest/modulegraph.html Combined with some help from here I am able to move forward, thanks: https://github.com/pyinstaller/pyinstaller/issues/2652#issuecomment-1264083447