3 ms·
Another tool you might find useful is pipreq. pipreq --savepath gen.requirements.txt / The above will run through all your source code, and generate the r
by true_religion 11y ago
Another tool you might find useful is pipreq.
pipreq --savepath gen.requirements.txt /
The above will run through all your source code, and generate the requirements that you actually use via imports.
https://github.com/bndr/pipreqs https://github.com/bndr/pipreqs
Disclaimer: I contribute to it.
- StavrosK 11y agoDoes it work well? I can't imagine it would be very accurate for things like a Django project...
- true_religion 11y agoIt works pretty well for a Django project with the exception of anything that's only called from INSTALLED_APPs. I have a branch that can handle Django, but I kept it private because it's not really general purpose to introspect Django's settings.py then read out data.