pyodide/docs/usage/api-reference.md

57 lines
1.1 KiB
Markdown
Raw Normal View History

2018-09-20 13:20:38 +00:00
# API Reference
## Python API
Backward compatibility of the API is not guaranteed at this point.
2018-09-20 13:20:38 +00:00
```{eval-rst}
.. currentmodule:: pyodide
.. autosummary::
:toctree: ./python-api/
pyodide.as_nested_list
pyodide.eval_code
pyodide.find_imports
pyodide.open_url
pyodide.JsException
pyodide.register_js_module
pyodide.unregister_js_module
pyodide.console.InteractiveConsole
pyodide.console.repr_shorten
pyodide.console.displayhook
2021-02-05 08:20:15 +00:00
pyodide.webloop.WebLoop
```
2018-09-20 13:20:38 +00:00
## Javascript API
Backward compatibility of the API is not guaranteed at this point.
```{eval-rst}
.. 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
```
## Micropip API
2018-09-20 13:20:38 +00:00
```{eval-rst}
.. currentmodule:: micropip
2018-09-20 13:20:38 +00:00
.. autosummary::
:toctree: ./micropip-api/
2018-09-20 13:20:38 +00:00
micropip.install
```