pyodide-lock 0.2.0


pip install pyodide-lock

  Latest version

Released: Jul 24, 2026


Meta
Author: Pyodide developers
Requires Python: >=3.12

Classifiers

License
  • OSI Approved :: MIT License

Operating System
  • OS Independent

Programming Language
  • Python :: 3

pyodide-lock

PyPI Latest Release GHA codecov

Tooling to manage the pyodide-lock.json file.

Note: the API of this package is still being iterated on and may change completely before the 0.1 release.

The pyodide-lock file is used to lock the versions of the packages that are used in a given Pyodide application. Packages included in pyodide-lock.json will be auto-loaded at import time, when using pyodide.runPythonAsync or running in JupyterLite or PyScript, and do not need to be explicitly installed with micropip.

Installation

pip install pyodide-lock

Python API

To parsing and write the pyodide-lock.json (formerly repodata.json) file:

from pyodide_lock import PyodideLockSpec

lock_spec = PyodideLockSpec.from_json("pyodide-lock.json")
# Make some changes
lock_spec.to_json("pyodide-lock.json")

License

BSD-3-Clause License

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
attrs
cattrs