Hacker News new | past | comments | ask | show | jobs | submit login
Pycycle: Find and fix circular (cyclic) imports in python projects (github.com/bndr)
3 points by bndr on Jan 30, 2017 | hide | past | favorite | 1 comment



Hey guys, feedback is welcome.

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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: