question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Group all submodules into its module

See original GitHub issue

Background: I have too many submodules and this makes difficult to have a quick overview of the diagram.

I would like to be able of foldind/grouping submodules so that I dont get overloaded of information. I need that a module and all of its children be treated the module itself. This would allow me to have a more coarse view, instead of overwhelming fine-grainess.

For instance, in the following diagram:

image

I would like that app.routers, app.routers.tama_job, app.routers.msn, app.routers.program and app.routers.upload_data all become a single app.routers, and that the arrows change correspondingly in a way that if at least one of the submodules had an arrow to another module MODULE or its submodules, the app.routers would also have an arrow to MODULE.

I expected that it would happened because I put this on the .pydeps file:

[pydeps]
max_bacon = 2
no_show = True
show_dot = True
verbose = 0
pylib = False
reverse = True
exclude =
    app.tests
only = 
    app
    app.main
    app.models
    app.repos
    app.routers
    app.schemas
    app.services
    app.storage

I thought that it would not show submodules of, say, app.routers, because otherwise I would have listed then one per one. It would be nice if the graph showed the same fine-grainess or coarse-grainess as described in the only field, or that it could be controlled somehow

Goal:

In general, it should be allowed to group all submodules as its parent module, like this: Before: image

After: image

Question/Wish

  • I didnt find a way of doing that. Is it possible currently, and how?

  • Or this would be a new feature?

Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:11
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
thebjorncommented, Jun 28, 2021

interesting. I’ll take a deeper look at it later in the week when I get some free time 😃

2reactions
sminozhenkocommented, Jul 18, 2022

Hi @thebjorn thank you for the change. At least for me, it works like a charm 🔥

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create group by module and submodule .TypeScript
Start by creating an empty array of modules then iterate on all ... subModule * Create it if it does not exist and...
Read more >
Using submodules in Git - Tutorial - Vogella.com
Submodules are Git repositories nested inside a parent Git repository at a specific path in the parent repository's working directory. A submodule can...
Read more >
How To: Merge a Git submodule into its main repository
The simplest solution for this task is to just copy the files from the submodule into the main repository and commit everything in...
Read more >
Working with submodules - The GitHub Blog
Eventually, any interesting software project will come to depend on another project, library, or framework. Git provides submodules to help ...
Read more >
Multi-Module Project with Maven - Baeldung
A multi-module project is built from an aggregator POM that manages a group of submodules. In most cases, the aggregator is located in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found