find python imports
Install
[sudo] pip install find-import
Features
- exclude standard library
- exclude import files in same folder
- exclude files from build/, dist/, Examples/, .git/, .hg/, .svn/ and all hidden files/folders
- exclude self name (parent folders names)
- support aliases, multiple imports, comments
- support future package (compatibility layer between Python 2 and Python 3)
Examples
$ find-import "$path"
$ set -- "path1.py" "path2.py" "path3.py"
$ find-import "$@"