thebjorn/pydeps

Collapse target cluster / main package

Closed this issue · 1 comments

mlga commented

What

I would like to generate a dependency graph of my_package, except, I would also like my_package to be collapsed.

For example, for pydeps, instead of that:
pydeps

I would like to have this:
pydeps collapsed

Why

In a big project, internal module dependencies just clutter generated graph and make it hard to read. I want to visualise the external dependencies tree for developers to have a quick overview of what technical stack is used in my_package. I don't care which exact module imports external dependency.

It is already possible? If not, I would gladly try to implement it if you find such a feature valuable.

Great project btw 😃

Hi @mlga and thank you for your interest in pydeps! This sounds like a useful feature. The closest you can get today is with

pydeps --cluster --keep-target-cluster <pkgname>

I'm always happy to accept PRs :-)

--collapse-target-cluster would probably be a good name for such an option...