Re:The Python Package Cache
by remram on Friday March 19, 2021 @10:57PM
(#26520449)
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, ...
[ Parent
| on HN ]
pipreqs' mapping was my first guess:
https://github.com/bndr/pipreqs/blob/master/pipreqs/mapping
Although it looks like they may have expanded beyond pipreqs: