Say that python package A requires B, C and D;
is there a way to list A → B C D without loading them ?
Requires in the metadata (yolk -M A
Snakefood
sfood -fuq package.py | sfood-target-files
will list the dependencies.
`-f` tells sfood to follow dependencies recursively
`-u` tells sfood to ignore unused imports
`-q` tells sfood to be quiet about debugging information
To filter out modules from the standard library, you could use
sfood -fuq package.py | sfood-filter-stdlib | sfood-target-files
As you've already noted, if there are other directories you'd like ignored, you can also use the sfood -I flag.