Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Add micropip.search() API #10

Open
ryanking13 opened this issue May 2, 2022 · 1 comment
Open

ENH Add micropip.search() API #10

ryanking13 opened this issue May 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ryanking13
Copy link
Member

🚀 Feature

It would be great to have micropip.search(), analogous to pip search which can search Python packages.

Additional context

micropip.search() can be used before running micropip.install() so that users can search whether:

  • The package has a pure Python wheel or not
  • The package is a Pyodide package or a PyPI package.

Example output

>>> await micropip.search("numpy")
{"name": "numpy", "version": "1.21.4", "type": "pyodide": "available": True}
>>> await micropip.search("black")
{"name": "black", "version": "22.3.0", "type": "PyPI": "available": True}
>>> await micropip.search("torch")
{"name": "torch", "version": "1.11.0", "type": "PyPI": "available": False}
@ryanking13 ryanking13 added the enhancement New feature or request label May 2, 2022
@rth rth transferred this issue from pyodide/pyodide Sep 24, 2022
@rth
Copy link
Member

rth commented Oct 14, 2022

The pip search currently doesn't work pypa/pip#5216 and the corresponding PyPI API is currently disabled https://status.python.org/incidents/grk0k7sz6zkp. For now the only working solutions is https://github.com/victorgarric/pip_search as far as I know.

Though in the end since since users seem to be doing fine without this functionality in pip, maybe there could also live without it in micropip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants