-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
No requests? #91
Comments
Correct, pyodide does not yet support requests or in fact urllib3 because the entire networking stack does not translate to a browser environment very well. This is something we are looking at but you can also track similar issues on the pyodide repo: pyodide/pyodide#398 |
@MaLin1997 You may find my blog post helpful: https://echorand.me/posts/py-script-monkey-patch-requests/ - essentially monkey patch |
No requests yet. We will be tackling this in the future. But we have awesome documentation thanks to @emirkmo! |
Forgot to add the links to the docs: https://docs.pyscript.net/latest/howtos/http-requests.html |
Link now gies 404 @marimeireles. I suppose this is the one now https://docs.pyscript.net/latest/guides/http-requests.html |
Hello @andeplane the docs suffered from a big update since this issue was closed. This is the correct link: https://docs.pyscript.net/latest/guides/http-requests.html Please let us know if this helps |
For those finding this in the future - the pyodide-http project aims to provide replacements for networking libraries like In PyScript 2022.12.1/Pyodide 0.21.3, you can install this by using:
And adding steps #2 and #3 of the usage section of the pyodide-http docs. |
urllib3 2.2.0 supports Pyodide: https://urllib3.readthedocs.io/en/stable/reference/contrib/emscripten.html. Which means requests supports it too. |
The text was updated successfully, but these errors were encountered: