Hey guys, wanted to show you my weekend project that should help python developers.
Code with circular imports in python does not work. (ImportError: Cannot import name X) I have come across this problem several times, and depending on the project size it becomes problematic to identify where exactly the problem is. This tool shows you the chain of the imports that are causing the problem, after that is up to developer to fix it e.g. restructure the imports or move the imports into the function call.
Nice! Could this work as a flake8 plugin? I think something like this would be most useful in that context, as editors can pull in error messages from flake8 :)
I haven’t really thought about that, but this sounds like an awesome idea! Thanks!