Registry / devops / pyodide-cli

pyodide-cli

JSON →
library0.5.0pypypiunverified

Command-line interface for building and managing Pyodide packages and distributions. Current version 0.5.0, requires Python >=3.12. Part of the Pyodide project (WebAssembly Python runtime). Release cadence is sporadic, tied to Pyodide releases.

pip install pyodide-cli
INSTALL
IMPORT
SIG · PYODIDE-CLI
P
pyodide-cli
devopspythonv0.5.0
Install
2.6s avg
Import
Disk
30MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 2.7s
py 3.11
✓ —
✓ 2.8s
py 3.12
✓ —
✓ 2.6s
py 3.13
✓ —
✓ 2.5s
py 3.9
✕ build_error
✕ build_error
30MB installed
● package 30MB
Code
Verified usage

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

main
from pyodide_cli import main
from pyodide_cli import main
version
from pyodide_cli import version
PackageNotFoundError
from pyodide_cli import PackageNotFoundError

Example of programmatically invoking the CLI. Direct usage is via 'pyodide' command in terminal.

import os import sys from pyodide_cli import main # Build a minimal Pyodide environment # Example: build a virtual env with pyodide packages # This requires additional dependencies (pyodide-build, etc.) # Typically invoked via CLI command 'pyodide build' if __name__ == '__main__': # Simulate CLI args: build a package sys.argv = ['pyodide', 'build', '--help'] main()
pyodide --version
Debug
Known issues
breakingPyodide CLI 0.5.0 requires Python 3.12 or higher. Attempting to install on older versions will fail.
fix
Upgrade Python to >=3.12, or use an older version of pyodide-cli if available (e.g., 0.4.x for Python 3.11).
affects: 0.5.0
deprecatedThe CLI command 'pyodide dir' has been deprecated in favor of 'pyodide config' as of pyodide-cli 0.5.0.
fix
Replace 'pyodide dir' with 'pyodide config show' or 'pyodide config set'.
affects: 0.5.0
gotchaRunning 'pyodide build' without a valid Pyodide repository or environment configuration will fail with 'ConfigError'. Ensure you have a working Pyodide setup.
fix
Run 'pyodide init' to create a default configuration, or set PWDIR environment variable to a valid Pyodide checkout.
affects: >=0.4.0
Upgrade
Version history
0.5.0latest on PyPI · released Jan 28, 2026
Audit
Dependencies
pyodide-pyoptionalProvides core Pyodide Python APIs and utilities
Agent activity
7 hits · last 30 days
node
6
Resources
pyodide-cli — pip install pyodide-cli · libregistry