2 ms·
To do it correctly/completely is probably as hard as the halting problem. Unless foo.py is stipulated to be a leaf node. You could come up with a half baked d
by wyldfire 9y ago
To do it correctly/completely is probably as hard as the halting problem. Unless foo.py is stipulated to be a leaf node.
You could come up with a half baked decent try by using the ast module to find foo.py deps and indexing pypi for provided package names. Complexity lies in where package names might intersect, but this is a half baked try after all.