https://github.com/pyodide/pyodide-lock
Tooling to manage the `pyodide-lock.json` file
https://github.com/pyodide/pyodide-lock
dependency-pinning lockfile pyodide
Last synced: 2 months ago
JSON representation
Tooling to manage the `pyodide-lock.json` file
- Host: GitHub
- URL: https://github.com/pyodide/pyodide-lock
- Owner: pyodide
- License: bsd-3-clause
- Created: 2023-06-22T12:08:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-27T05:21:12.000Z (3 months ago)
- Last Synced: 2026-02-27T12:09:58.550Z (3 months ago)
- Topics: dependency-pinning, lockfile, pyodide
- Language: Python
- Homepage:
- Size: 82 KB
- Stars: 8
- Watchers: 6
- Forks: 11
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pyodide-lock
[](https://pypi.org/project/pyodide-lock/)

[](https://codecov.io/gh/pyodide/pyodide-lock)
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
```bash
pip install pyodide-lock
```
## Python API
To parsing and write the `pyodide-lock.json` (formerly `repodata.json`) file:
```py
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