Is there a compatible PyPI wheel for this Python and platform

$0.005 USDC per call · Developer and security · POST /api/v1/wheel-availability · Id wheel-availability

Lists the wheels PyPI offers for a package release and picks those compatible with a given CPython version, OS, CPU architecture and libc (glibc or musl version, or macOS version), best match first, for agents choosing base images or debugging 'building from source' installs. Applies PEP 425/600/656 tag ordering, abi3, legacy manylinux aliases, Requires-Python and yanked files. CPython only (no PyPy); does not install anything, check dependencies' wheels or inspect wheel contents.

What you get

Saves a failed 20-minute docker build when the architecture has no wheel.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/wheel-availability. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/wheel-availability \
  -H 'content-type: application/json' \
  -d '{"package":"markupsafe","python":"3.12","platform":{"os":"linux","arch":"x86_64","libc":"glibc","libcVersion":"2.28"}}'

Input

FieldTypeRequiredDescription
packagestring; length 0..100yesPyPI project name.
versionstring; length 0..64noRelease; default latest.
pythonstring; length 0..8yesCPython major.minor, e.g. 3.12.
freeThreadedbooleannoFree-threaded build (cp313t): abi3 wheels do not apply.
platformobjectyes

Example request body

{
  "package": "markupsafe",
  "python": "3.12",
  "platform": {
    "os": "linux",
    "arch": "x86_64",
    "libc": "glibc",
    "libcVersion": "2.28"
  }
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass.
packagestringno
releasestringno
wheelCountintegerno
sdistAvailablebooleanno
compatiblearray<object>no
bestobjectno
skippedarray<object>no
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways true: pure code, no model.

Pay and connect

Available through: x402 (USDC on Base), MCP. MCP clients reach it through the code-preflight-kit package.

Machine-readable