Cyclic imports

Dan Stromberg drsalists at gmail.com
Mon Aug 16 11:13:47 EDT 2021


Hi folks.

I'm working on a large codebase that has at least one cyclic import.

In case I end up needing to eliminate the cyclic imports, is there any sort
of tool that will generate an import graph and output Just the cycles?

I tried pyreverse, but it produced too big a graph to be very useful; it
showed all internal imports, not just the cycles.

Thanks!


More information about the Python-list mailing list