Hi,
maybe you already noticed, there's a project called pipreqs that parses python code
for import statements. We've already a review request:
https://bugzilla.redhat.com/show_bug.cgi?id=1665749
Although, I doubt in general that any automagic with dependency generators brings a huge
benefit in the long run. In case of python projects, I see sometimes conditional
dependencies that enable optional features by awareness of any existance of a library,
e.g. SecretStorage that parses for alternative desktops and optional password storage.
Further, mostly there are up to 5 dependencies to note but sometimes 2 to ignore anyways.
Just my 5ct.
Raphael