find python imports


Keywords
import requirements
License
Other
Install
pip install find-import==0.0.20

Documentation

find python imports

bash PyPI PyPI

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 "$@"

Feedback GitHub followers GitHub issues