wheelgap
v0.15.0Find Python dependencies with no prebuilt wheel for your platforms: ARM, Alpine, Windows on ARM
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_package Check a package's wheels
Check whether one PyPI package has a prebuilt wheel for each target platform and Python. Returns each target's status, the targets with a gap, ok (true only if every target installs without building) and the libc and macOS versions assumed. With explain: true, also says why: rejected lists, for each source or missing target, up to 8 wheels it can't use and the reason for each, closest misses first (rejected_omitted counts any more), as wheelgap --json --explain does, and issues_url is the package's issue tracker from PyPI metadata (null when absent or not on PyPI). With gaps, suggest maps each…
| Parameter | Type | Description |
|---|---|---|
name * | string | The package name alone, e.g. 'numpy'. |
android_api | string | Minimum Android API level to support. Default: 24. |
dependencies | boolean | Also check everything the package installs (its dependency tree, resolved from PyPI for each target, as --deps does) and return dependency_gaps. Default: false. |
explain | boolean | Also return rejected (and via, always empty for one package) and issues_url (the package's issue tracker from PyPI metadata): why each source or missing target can't use the published wheels. Default:… |
glibc | string | glibc version for linux-* targets, e.g. '2.28' for a RHEL 8 image. Default: 2.36. |
ios | string | Oldest iOS version to support. Default: 13.0. |
macos | string | Oldest macOS version to support. Default: 14.0. |
musl | string | musl version for musl-* (Alpine) targets. Default: 1.2. |
pyodide_lock | string | Absolute path or https URL of a Pyodide release's pyodide-lock.json, so packages that release ships itself count as 'bundled' on pyodide targets for its Python. Its Python must be one a pyodide target… |
python | string | Target Python version(s), comma-separated, e.g. '3.13' or '3.12,3.14t' (t = free-threaded); 'next' and 'next-t' mean the newest CPython wheelgap knows. Default: the server's. |
targets | array | Platforms, e.g. ['linux-aarch64', 'musl-x86_64', 'win-arm64', 'pyodide'], Docker platforms such as 'linux/arm64', or the groups 'all', 'everything' and 'mobile'. Default: linux-x86_64, linux-aarch64,… |
version | string | An exact version, e.g. '2.3.4'. Default: the latest release, which may not support an older Python (it then shows gaps an older release wouldn't have). |
check_lockfile Check a lockfile's wheels
Check every package a lockfile installs (uv.lock, poetry.lock, pdm.lock, pylock.toml, Pipfile.lock, requirements.txt, or a project directory containing one), exactly as the wheelgap command line does, and report the packages without a wheel on some target. Environment markers, .python-version and the project's [tool.wheelgap] settings (targets, python, glibc, ignore, offline, index-url, ...) apply; arguments given here override them. A uv.lock, poetry.lock or pdm.lock is checked for every extra and dependency group unless [tool.wheelgap] extras or groups select some, so it may report gaps the…
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path or file:// URI of the lockfile or project directory (a relative path is looked for in the client's roots if it shares them, else in the server's working directory). |
all_extras | boolean | Install every extra, as --all-extras (uv.lock, poetry.lock, pyproject.toml). Default: false. |
android_api | string | Minimum Android API level to support. Default: 24. |
dependencies | boolean | Also resolve transitive dependencies of requirements files, a conda environment.yml, pyproject.toml and a script's # /// script block, as --deps does. Default: false. Refused for lockfiles, offline an… |
environment | string | The pixi.lock environment to check. Default: default. Only for pixi.lock inputs. |
extras | array | Extras to install, as --extra NAME (uv.lock, poetry.lock, pyproject.toml). Replaces [tool.wheelgap] extras; an empty array is the same as leaving it out. |
fix | boolean | Also return each gap's fix (a newer release with the wheel first, then a gap wheel) and gap_wheels: the gaps a wheel on wheelgap's gap wheel index fills, as --fix does (one request to wheelgap.github.… |
glibc | string | glibc version for linux-* targets, e.g. '2.28' for a RHEL 8 image. Default: 2.36. |
groups | array | Dependency groups to include, as --group NAME (uv.lock, Poetry 2.x poetry.lock, pdm.lock, pyproject.toml [dependency-groups]). Replaces [tool.wheelgap] groups; an empty array is the same as leaving it… |
ios | string | Oldest iOS version to support. Default: 13.0. |
macos | string | Oldest macOS version to support. Default: 14.0. |
musl | string | musl version for musl-* (Alpine) targets. Default: 1.2. |
no_dev | boolean | Leave out the dev group, as --no-dev (uv.lock, Poetry 2.x poetry.lock, pdm.lock; refused for pyproject.toml). Default: false. |
offline | boolean | True uses only files recorded in the lockfile and never contacts the index. False rechecks on the index and overrides offline = true for this call. False sends one index request per PyPI package. Omit… |
only_groups | array | Check only these dependency groups, as --only-group NAME: the project's own dependencies are left out unless a group names them. |
pyodide_lock | string | Absolute path or https URL of a Pyodide release's pyodide-lock.json, so packages that release ships itself count as 'bundled' on pyodide targets for its Python. Its Python must be one a pyodide target… |
python | string | Target Python version(s), comma-separated, e.g. '3.13' or '3.12,3.14t' (t = free-threaded); 'next' and 'next-t' mean the newest CPython wheelgap knows. Default: [tool.wheelgap] python, then .python-ve… |
targets | array | Platforms, e.g. ['linux-aarch64', 'musl-x86_64', 'win-arm64', 'pyodide'], Docker platforms such as 'linux/arm64', or the groups 'all', 'everything' and 'mobile'. Default: linux-x86_64, linux-aarch64,… |
check_dockerfile Check a lockfile against a Dockerfile's image
Check a lockfile for the image a Dockerfile's final stage builds on, exactly as `wheelgap PATH --dockerfile DOCKERFILE --json` does: the image's Python, platform (from FROM --platform, default linux/amd64) and glibc or musl version (python:3.13-alpine means musl) set the target. Use it before changing a FROM line, e.g. from -slim to -alpine or to --platform=linux/arm64. Returns what check_lockfile returns, plus 'image': the python, platform, glibc, musl and build_args wheelgap read from the Dockerfile (build_args maps the global ARGs used by FROM to their values). A Dockerfile wheelgap can't r…
| Parameter | Type | Description |
|---|---|---|
dockerfile * | string | Absolute path or file:// URI of the Dockerfile (a relative path is looked for in the client's roots if it shares them, else in the server's working directory). |
build_args | object | The build's `--build-arg` values, e.g. {'PYTHON_VERSION': '3.13'}: each replaces the default of the global ARG it names, as in docker build. |
context | string | With inputs: true, absolute path or file:// URI of the folder the build context starts from, as --dockerfile-context DIR (for `docker build -f docker/Dockerfile .`, the folder that `.` is). Default: t… |
fix | boolean | Also return each gap's fix (a newer release with the wheel first, then a gap wheel) and gap_wheels: the gaps a wheel on wheelgap's gap wheel index fills, as --fix does (one request to wheelgap.github.… |
inputs | boolean | Check the requirements files the Dockerfile's final stage installs with RUN pip install -r FILE, instead of a lockfile, as --dockerfile-inputs does. Default: false. |
path | string | Absolute path or file:// URI of the lockfile or project directory. Default: the Dockerfile's folder. Not with inputs: true. |
targets | array | Platforms to check instead of the image's, e.g. ['linux/arm64'] (with an Alpine image, Docker platforms mean musl). Default: the image's platform. |
check_dist Check a release's files before upload
Check the wheels and sdist about to be uploaded — the dist/ folder `uv build` or `python -m build` leaves — as `wheelgap --dist DIR --json` does: per target, whether a wheel installs or only the sdist is there to build from, with the name and version taken from the filenames (a folder mixing projects or versions is an error). The files are also compared with the newest release on PyPI older than the one in the folder: 'dropped' maps each checked target that release had an installable wheel for but this one doesn't to that release's version (advisory and ignored targets never count as dropp…
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path or file:// URI of the folder of built files (a relative path is looked for in the client's roots if it shares them, else in the server's working directory). |
android_api | string | Minimum Android API level to support. Default: 24. |
glibc | string | glibc version for linux-* targets, e.g. '2.28' for a RHEL 8 image. Default: 2.36. |
ios | string | Oldest iOS version to support. Default: 13.0. |
macos | string | Oldest macOS version to support. Default: 14.0. |
musl | string | musl version for musl-* (Alpine) targets. Default: 1.2. |
python | string | Target Python version(s), comma-separated, e.g. '3.13' or '3.12,3.14t' (t = free-threaded); 'next' and 'next-t' mean the newest CPython wheelgap knows. Default: [tool.wheelgap] python, then .python-ve… |
targets | array | Platforms, e.g. ['linux-aarch64', 'musl-x86_64', 'win-arm64', 'pyodide'], Docker platforms such as 'linux/arm64', or the groups 'all', 'everything' and 'mobile'. Default: linux-x86_64, linux-aarch64,… |
diff_lockfiles Compare two lockfiles
Compare a lockfile before and after a change (a dependency upgrade, a re-lock), exactly as `wheelgap diff OLD NEW --json` does, and report what got worse: 'worse' lists packages whose status dropped on a target (e.g. wheel → source after a version bump), 'new' lists added packages with a gap, and 'ok' is true only when both are empty. A package that can no longer be checked (unknown, or now from git, a path, a URL or a private index) counts as worse; 'unchecked' names packages unknown on both sides at the same version, and 'not_compared' the targets whose Python either lockfile's requires-py…
| Parameter | Type | Description |
|---|---|---|
new * | string | Absolute path to the lockfile (or project directory) after the change. |
old * | string | Absolute path to the lockfile (or project directory) before the change. |
android_api | string | Minimum Android API level to support. Default: 24. |
glibc | string | glibc version for linux-* targets, e.g. '2.28' for a RHEL 8 image. Default: 2.36. |
ios | string | Oldest iOS version to support. Default: 13.0. |
macos | string | Oldest macOS version to support. Default: 14.0. |
musl | string | musl version for musl-* (Alpine) targets. Default: 1.2. |
python | string | Target Python version(s), comma-separated, e.g. '3.13' or '3.12,3.14t' (t = free-threaded); 'next' and 'next-t' mean the newest CPython wheelgap knows. Default: the server's. |
targets | array | Platforms, e.g. ['linux-aarch64', 'musl-x86_64', 'win-arm64', 'pyodide'], Docker platforms such as 'linux/arm64', or the groups 'all', 'everything' and 'mobile'. Default: linux-x86_64, linux-aarch64,… |
explain_install_failure Explain a failed install log
Explain why an install failed to build packages: pass the text of a failed pip, uv, Poetry or PDM install log (up to 1 MB) and the Python and platform the install ran on. The log is read as wheelgap --from-log reads it: pip's 'Failed to build' summary, with each version from its Collecting, Downloading and Using cached lines; uv's 'Failed to build `NAME==VERSION`'; Poetry's build-backend note, normal or -v output; and pdm install -v output (PDM's normal output doesn't say which index a package came from, so it's refused); pip's 'Getting requirements to build wheel', 'Preparing metadata' and 'p…
| Parameter | Type | Description |
|---|---|---|
log * | string | The text of the failed pip, uv, Poetry or PDM (pdm install -v) install log, up to 1 MB in UTF-8. |
build_info | boolean | Also return build_packages: download each failed package's sdist from PyPI (as wheelgap --build-info does) to say which distro packages its build needs on each Linux target it builds from source on. D… |
glibc | string | glibc version for linux-* targets, e.g. '2.28' for a RHEL 8 image. Default: 2.36. |
macos | string | Oldest macOS version to support. Default: 14.0. |
musl | string | musl version for musl-* (Alpine) targets. Default: 1.2. |
python | string | Target Python version(s), comma-separated, e.g. '3.13' or '3.12,3.14t' (t = free-threaded); 'next' and 'next-t' mean the newest CPython wheelgap knows. Pass the one the install ran with: the log doesn… |
targets | array | Platforms, e.g. ['linux-aarch64', 'musl-x86_64', 'win-arm64', 'pyodide'], Docker platforms such as 'linux/arm64', or the groups 'all', 'everything' and 'mobile'. Default: linux-x86_64, linux-aarch64,… |
suggest_targets Suggest a project's targets
Read a project's GitHub Actions workflows, .gitlab-ci.yml and Dockerfiles to suggest targets and Python versions, with the file and line for each, unreadable inputs and suggested config. Reads local files only; nothing is changed or checked. Confirm the suggestions with the user before checking their project.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path or file:// URI of the project folder (a relative path is looked for in the client's roots if it shares them, else in the server's working directory). |
list_targets List target platforms
List the platform names and groups that check_package, check_lockfile, check_dockerfile, check_dist, diff_lockfiles and explain_install_failure accept, and the built-in target version floors.