thebjorn/pydeps

feature: exclude externals deps

elanzini opened this issue · 5 comments

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

Try:

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

MODULE_PATH in the docs is a dotted/importable name.

That does the trick, thank you!

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?

@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  

Great, thanks a lot @thebjorn