2021-03-22 08:39:09 +00:00
|
|
|
# Python API
|
|
|
|
|
|
|
|
Backward compatibility of the API is not guaranteed at this point.
|
|
|
|
|
2021-09-29 08:01:53 +00:00
|
|
|
**JavaScript Modules**
|
2021-04-06 08:14:07 +00:00
|
|
|
|
2021-09-29 08:01:53 +00:00
|
|
|
By default there are two JavaScript modules. More can be added with
|
2021-04-06 08:14:07 +00:00
|
|
|
{any}`pyodide.registerJsModule`. You can import these modules using the Python
|
2021-07-26 23:00:27 +00:00
|
|
|
`import` statement in the normal way.
|
2021-04-06 08:14:07 +00:00
|
|
|
|
|
|
|
```{eval-rst}
|
|
|
|
.. list-table::
|
|
|
|
|
|
|
|
* - ``js``
|
2021-09-29 08:01:53 +00:00
|
|
|
- The global JavaScript scope.
|
2021-04-06 08:14:07 +00:00
|
|
|
* - :js:mod:`pyodide_js <pyodide>`
|
2021-09-29 08:01:53 +00:00
|
|
|
- The JavaScript Pyodide module.
|
2021-04-06 08:14:07 +00:00
|
|
|
```
|
2021-03-22 08:39:09 +00:00
|
|
|
|
|
|
|
```{eval-rst}
|
|
|
|
.. currentmodule:: pyodide
|
|
|
|
|
|
|
|
.. automodule:: pyodide
|
|
|
|
:members:
|
|
|
|
:autosummary:
|
2021-03-24 09:24:06 +00:00
|
|
|
:autosummary-no-nesting:
|
|
|
|
```
|