os-scar / overlay

Overlay is a browser extension helping developers evaluate open source packages before picking them
MIT License
215 stars 17 forks source link

add pypi packages support #36

Closed jossef closed 1 year ago

jossef commented 1 year ago

Similar to current coverage for npm packages, add support for PyPI packages:

This page in StackOverflow seems to contain various cases for pip install.

TODO:

baruchiro commented 1 year ago

Checking for pip. For the old easy_install, I don't think we should support it right now or ever. I also can't find heavy usage of conda install in StackOverflow.

jossef commented 1 year ago

yes, pip install or links to pypi.org

baruchiro commented 1 year ago

@GuyNachshon @jossef see this case: On this answer, the package name is in quotes pip install 'stevedore>=1.3.0,<1.4.0'.

For now, I marked the package without the quotes: image

Please LTM if you think I should do it differently.

baruchiro commented 1 year ago

Python packages are annoying because they are case insensitive, meaning you can install pandas or PANDAS, but the package name is pandas.

Take the Pillow package as an example. You see here that all the commands are installing pillow, but in debricked and openbase you have to use the exact name. On the other hand, deps.dev will always return pillow as the name!

I'm adding a step to normalize the package name before fetching the info from the advisories.