Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualize only 'interesting' modules #234

Open
lbartels5 opened this issue Jan 25, 2025 · 0 comments
Open

Visualize only 'interesting' modules #234

lbartels5 opened this issue Jan 25, 2025 · 0 comments

Comments

@lbartels5
Copy link

Thanks for all of your great work on this project!

I want to visualize dependencies of all modules of a project and their dependencies to external libraries like cv2 and ffmpeg.

"pydeps main.py --max-bacon=4" shows a graph with all project modules and ffmpeg, but cv2 is missing (the same module imports ffmpeg and cv2):

  • cv2 is a shared library: /usr/lib/python3/dist-packages/cv2.cpython-312-x86_64-linux-gnu.so
  • ffmpeg is a python package: /home/<user>/.local/lib/python3.12/site-packages/ffmpeg/__init__.py)

The only way I found to include cv2 in the dependency graph is the parameter --pylib (--pylib-all does not work) with the drawback of adding >100 python stdlib modules to the graph.

What I want is a dependency graph

  • with all my modules and the direct external dependencies, e.g. show cv2 and ffmpeg
  • without dependencies of external modules, e.g. hide ffmpeg._utils, fmpeg.nodes
  • without python stdlib modules, e.g. hide os, datetime, json
@lbartels5 lbartels5 changed the title Visualize only 'interesting' dependencies Visualize only 'interesting' modules Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant