it frequently happens that I get single python files or whole projects where I need to identify which modules are imported - mostly for license clearing purpose.
How can I do this in an - as complete as possible - way? I am aware of the pipreqs tool but it somehow does not list all modules in the final report, although it seems to identify all of them -> according to the debug logs.
I'm fine with investing time into developing a tool - so a strategy on how to do this would be great.
Thank you