thebjorn / pydeps

Python Module Dependency graphs
https://pydeps.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
1.8k stars 114 forks source link

feature: exclude externals deps #193

Closed elanzini closed 1 year ago

elanzini commented 1 year ago

Thanks @thebjorn for the great work!

Is it feasible to add an additional arg --exclude-external that allows to exclude external deps and only look at imports for internal modules?

I tried using the --only flag but without success, maybe I am doing it wrong running:

pydeps --show-deps --only /path/to/app --no-output app

thebjorn commented 1 year ago

Try:

> cd /path/to
> pydeps --only app --show-deps app

MODULE_PATH in the docs is a dotted/importable name.

elanzini commented 1 year ago

That does the trick, thank you!

anilbey commented 4 months ago

Hi I need the same feature but when I try the following

❯ pydeps --only app --deps-output app_deps.svg    

I get this error below

pydeps: error: the following arguments are required: fname

Am I using it wrong?

thebjorn commented 4 months ago

@anilbey you must tell pydeps where to start looking, i.e. probably (notice the extra app at the end)

❯ pydeps --only app --deps-output app_deps.svg  app  
anilbey commented 4 months ago

Great, thanks a lot @thebjorn