Skip to content

Commit

Permalink
Merge branch 'main' of github.com:koenvo/pyodide-http
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvo committed Mar 30, 2023
2 parents c9805e1 + 44e768a commit c1d40ef
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ Currently the following packages can be patched:
| [urllib](https://docs.python.org/3/library/urllib.request.html) | [`urlopen`](https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen) |
| | [`OpenerDirector`](https://docs.python.org/3/library/urllib.request.html#urllib.request.OpenerDirector) |

## Used by

`pyodide-http` is used by a some awesome projects:
- [Pyodide](https://github.com/pyodide/pyodide) - included as a standard package
- [Panel](https://github.com/holoviz/panel) - included since 0.14.1 (can be disabled) when running Panel in the Browser using WASM. [Read more](https://github.com/holoviz/panel/blob/master/doc/user_guide/Running_in_Webassembly.md)
19 changes: 19 additions & 0 deletions examples/pyvo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<html>
<head>
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
</head>
<body>
<py-config>
packages = ["pyvo", "ssl", "pyodide-http"]
</py-config>

<py-script>
import pyodide_http
pyodide_http.patch_all()
from pyvo import registry
res = registry.search(servicetype = 'conesearch', waveband = 'UV')
print(res)
</py-script>
</body>
</html>

0 comments on commit c1d40ef

Please sign in to comment.