Registry / devops / pyodide-py

pyodide-py

JSON →
library0.29.4pypypi✓ verified 82d ago

Core Python interpreter functionality for Pyodide, the Python-to-WebAssembly runtime. Runs Python in the browser via WebAssembly. Version 0.29.4; release cadence follows Pyodide releases.

pip install pyodide-py
INSTALL
IMPORT
SIG · PYODIDE-PY
P
pyodide-py
devopspythonv0.29.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ffi
from pyodide import ffi
from pyodide import loadPyodide

Loads Pyodide in Node.js or browser environment, runs Python code, and prints result.

import os from pyodide import loadPyodide async def main(): pyodide = await loadPyodide() result = pyodide.run_python('1+1') print(result) import asyncio asyncio.get_event_loop().run_until_complete(main())
Debug
Known issues
breakingrunPython() was removed. Use pyodide.run_python() (available on the Pyodide instance) or pyodide.code.run_python() directly.
fix
Replace pyodide.runPython with pyodide.run_python (instance method) or from pyodide.code import run_python.
affects: >=0.25.0
breakingpyodide.eval_code() has been removed. Use pyodide.run_python() or pyodide.code.eval_code().
fix
Use run_python() for statements or eval_code() from pyodide.code for expressions.
affects: >=0.25.0
gotchapyodide-py is the PyPI package for the core interpreter; for full browser integration use the Pyodide CDN (https://cdn.jsdelivr.net/pyodide/).
fix
Use pip install pyodide-py for local testing in Node.js; for browser use the CDN script tag.
affects: all
gotchaAsync initialization: loadPyodide() is async and must be awaited.
fix
Always await loadPyodide() or use .then() in JavaScript.
affects: >=0.18.0
Upgrade
Version history
0.29.4latest on PyPI · released May 7, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
pyodide-py — pip install pyodide-py · libregistry