3 ms·
I also wonder how they solved the stupid but annoying problem of mapping import names to package names, e.g. "import sklearn" -> scikit-learn, "import dateutil"
by remram 6y ago
I also wonder how they solved the stupid but annoying problem of mapping import names to package names, e.g. "import sklearn" -> scikit-learn, "import dateutil" -> python-dateutil, "import bs4" -> beautifulsoup4, ...
- myroon5 6y agopipreqs' mapping was my first guess: https://github.com/bndr/pipreqs/blob/master/pipreqs/mapping https://github.com/bndr/pipreqs/blob/master/pipreqs/mapping Although it looks like they may have expanded beyond pipreqs: https://github.com/replit/upm/pull/4 https://github.com/replit/upm/pull/4