2018-09-20 13:20:38 +00:00
|
|
|
# API Reference
|
|
|
|
|
|
|
|
## Python API
|
|
|
|
|
2020-10-31 20:00:58 +00:00
|
|
|
Backward compatibility of the API is not guaranteed at this point.
|
2018-09-20 13:20:38 +00:00
|
|
|
|
2019-02-25 13:32:03 +00:00
|
|
|
|
2020-10-31 20:00:58 +00:00
|
|
|
```{eval-rst}
|
|
|
|
.. currentmodule:: pyodide
|
2019-02-25 13:32:03 +00:00
|
|
|
|
2020-10-31 20:00:58 +00:00
|
|
|
.. autosummary::
|
|
|
|
:toctree: ./python-api/
|
2021-01-07 21:20:13 +00:00
|
|
|
|
2020-10-31 20:00:58 +00:00
|
|
|
pyodide.as_nested_list
|
|
|
|
pyodide.eval_code
|
|
|
|
pyodide.find_imports
|
|
|
|
pyodide.open_url
|
2020-12-23 20:38:35 +00:00
|
|
|
pyodide.JsException
|
2021-01-17 04:33:50 +00:00
|
|
|
pyodide.register_js_module
|
|
|
|
pyodide.unregister_js_module
|
2021-01-20 07:10:59 +00:00
|
|
|
pyodide.console.InteractiveConsole
|
|
|
|
pyodide.console.repr_shorten
|
|
|
|
pyodide.console.displayhook
|
2021-02-05 08:20:15 +00:00
|
|
|
pyodide.webloop.WebLoop
|
2020-10-31 20:00:58 +00:00
|
|
|
```
|
2019-02-25 13:32:03 +00:00
|
|
|
|
2018-09-20 13:20:38 +00:00
|
|
|
|
|
|
|
## Javascript API
|
2020-10-31 20:00:58 +00:00
|
|
|
Backward compatibility of the API is not guaranteed at this point.
|
2018-10-09 22:47:24 +00:00
|
|
|
|
2020-10-31 20:00:58 +00:00
|
|
|
```{eval-rst}
|
2021-02-06 20:17:57 +00:00
|
|
|
.. js:module:: pyodide
|
|
|
|
.. js:autofunction:: runPython
|
|
|
|
.. js:autofunction:: runPythonAsync
|
|
|
|
.. js:autoattribute:: globals
|
|
|
|
.. js:autoattribute:: pyodide_py
|
|
|
|
.. js:autoattribute:: version
|
|
|
|
.. js:autofunction:: pyimport
|
|
|
|
.. js:autofunction:: loadPackage
|
|
|
|
.. js:autoattribute:: loadedPackages
|
|
|
|
.. js:autofunction:: loadPackagesFromImports
|
|
|
|
.. js:autofunction:: registerJsModule
|
|
|
|
.. js:autofunction:: unregisterJsModule
|
2018-10-09 22:47:24 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2020-10-31 20:00:58 +00:00
|
|
|
## Micropip API
|
2018-09-20 13:20:38 +00:00
|
|
|
|
2020-10-31 20:00:58 +00:00
|
|
|
```{eval-rst}
|
|
|
|
.. currentmodule:: micropip
|
2018-09-20 13:20:38 +00:00
|
|
|
|
2020-10-31 20:00:58 +00:00
|
|
|
.. autosummary::
|
|
|
|
:toctree: ./micropip-api/
|
2018-09-20 13:20:38 +00:00
|
|
|
|
2020-10-31 20:00:58 +00:00
|
|
|
micropip.install
|
|
|
|
```
|