Making API Calls
Due to sockets being unavailable in Pyodide, http libraries are currently unsupported out of the box.
A patch for requests
and urllib
has been provided by the package Pyodide-HTTP and is preinstalled in react-py
.
See Using Packages for package installation instructions, for these examples the following Packages
object has be used:
{
micropip: ['requests']
}
Try it out:
Loading...
GET
Loading...
POST
Loading...
PUT
Loading...
DELETE
Loading...