pydeps icon indicating copy to clipboard operation
pydeps copied to clipboard

Is it possible to force clustering by a multiple of external namespace criteria?

Open Eugene-1984 opened this issue 3 years ago • 2 comments

I have a rather large project that is organized into a series of packages and would like to use pydeps to create a dependency graph for controlling how one package affects the whole group. Unfortunately even if I force outside-going dependencies of a package to be only within package's __init__, it can still go anywhere inside another package creating a mess in a big picture.

Clustering would be perfect by my clustering criteria is the namespace limitation not size.

Is there any way to achieve that?

Eugene-1984 avatar Mar 18 '21 05:03 Eugene-1984

Hi @Eugene-1984 and thank you for your interest in pydeps. What you're asking for is unfortunately not currently possible. If I understand correctly, then a solution to #81 would also solve your problem..?

thebjorn avatar Mar 18 '21 11:03 thebjorn

@thebjorn thank you for the pydeps! Yes the solution to #81 will also solve my problem. Grouping via clustering or collapsing into a single node will make a little difference. Although I would like to add to #81 that a fine control of such collapsing will be especially useful, so that some modules are collapsed and the others are not. So just collapse or not all submodules will not do.

Eugene-1984 avatar Mar 18 '21 12:03 Eugene-1984