sfood-imports1
Parse python files and output a unified list of imported symbols
Usage
sfood-imports [options]
files ...
Overview
The imported modules/symbols are output even if they cannot be found. (You could try to do this with grep, but this is more accurate because it uses the AST to obtain the list of imports.)
Options
-
-h, --help -
show the help message and exit
-
-I IGNORES, --ignore=IGNORES -
Add the given directory name to the list to be ignored.
-
-u, --unified -
Just output the unique set of dependencies found, in no particular order, without the filenames. The default is to output all imports, in order of appearance, along with the filename and line number.
-
-v, --verbose -
Output input lines as well.
Releases
Unchanged in 5 releases since Debian 6.0 (Squeeze).