Skip to content

Instantly share code, notes, and snippets.

View kyrcha's full-sized avatar

Kyriakos Chatzidimitriou kyrcha

View GitHub Profile
@kyrcha
kyrcha / local.md
Created July 29, 2022 08:44
Finding all local dependencies as a tree for a python file

Using the library importlab and grep on a shell prompt from the project's root folder:

importlab --tree path/to/file.py | grep -E '^\s+[^::]*py$'