Skip to content

Pydeps is not showing internal imports, only external #80

@gustavonmartins

Description

@gustavonmartins

Background:
I have an app writen in fastapi and its slowing getting too big, so I want to reorganize it after getting inspired by a visual representation of my internal imports.

Goal:
I needto make a graph showing how my internal modules are using each other, in the hopes that it will inspire me to reorganise my code to be less confusing. I would like to have something like this:

I have a folder structure like this:
image
I would like to know, for instance, how the modules of each of my subfolders are importing each other. Ideally I would get something similar to this graph, but applied to my folder structure:
image

Problem:
I tried creating this by typing pydeps app, pydeps app.main, pydeps app/routers, etc, and I can only see how my app is calling external modules, like pandas, fastapi, etc. Here is the result:
image

What I already tried:
-Running pydeps from my virtual environment (i thought it could be that a global install wouldnt understand my project structure), but nothing helps.
-Changing bacon number
-Playing with other arguments

Need for help:
I dont see what I am doing wrong. Is there a configuration I am overseeing?

Thank you so much!!!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions