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.

Draw module internal dependencies

See original GitHub issue

Hi,

my question somewhat relates to issue #25.

First, I encounter the same issue as outlined in that ticket. It got closed without addressing the issue unfortunately. The workaround mentioned there correctly works in the way that the python files become part of the output.

But the workaround does not work in case a modules file imports another file from the same module.

Given

mydir
|   `-- __init__.py
|   `-- controller.py
|   `-- database.py
|   `-- exceptions.py
|   `-- mainclass.py
    `-- models.py

and mydir.controller imports and uses mydir.database, then this dependency is not available in the graph.

Is there any way to make this dependency visible? I would like to use that information as it would ease refactoring / organizing code as it would greatly make internal oddities visible.

Kind regards alex

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
afischer-opentext-comcommented, Nov 15, 2019

Ah, thanks for the quick reply! You understood me fully correctly. I see that this works with relative imports. The project I was testing with, uses absolute imports, even for files in the same module. I see if I can change that. Still, those absolute imports are not visible.

0reactions
thebjorncommented, Feb 2, 2022

Hi @intiamaru and thanks for your interest in pydeps. Since I can’t reproduce this problem, it would be helpful with a complete description of how to reproduce it…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module dependency diagrams - IntelliJ IDEA - JetBrains
You can view, analyze, and manage UML diagrams for the following modules: ... IntelliJ IDEA displays a module and its dependencies. the diagram...
Read more >
Python dependencies inside a package - Stack Overflow
The problem I have with using is that they show all the dependencies of all the modules, while I really would like to...
Read more >
Common modularization patterns - Android Developers
This page gives an overview of some general rules and common patterns that you can employ when developing multi module Android apps.
Read more >
pydeps — pydeps 1.11.0 documentation
Python module dependency visualization. ... --cluster, draw external dependencies as separate clusters ... draw target module as a cluster.
Read more >
Internal and external dependencies of module. - ResearchGate
Download scientific diagram | Internal and external dependencies of module. from publication: Identifying Component Modules | A computer-based system for ...
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