Skip to content

feature: exclude externals deps #193

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

Closed
elanzini opened this issue Aug 3, 2023 · 5 comments
Closed

feature: exclude externals deps #193

elanzini opened this issue Aug 3, 2023 · 5 comments

Comments

@elanzini
Copy link

elanzini commented Aug 3, 2023

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
Copy link
Owner

thebjorn commented Aug 4, 2023

Try:

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

MODULE_PATH in the docs is a dotted/importable name.

@elanzini
Copy link
Author

elanzini commented Aug 5, 2023

That does the trick, thank you!

@elanzini elanzini closed this as completed Aug 5, 2023
@anilbey
Copy link

anilbey commented Jul 9, 2024

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
Copy link
Owner

thebjorn commented Jul 9, 2024

@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
Copy link

anilbey commented Jul 10, 2024

Great, thanks a lot @thebjorn

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

3 participants