Is there a compatible PyPI wheel for this Python and platform
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
| Field | Type | Required | Description |
|---|---|---|---|
package | string; length 0..100 | yes | PyPI project name. |
version | string; length 0..64 | no | Release; default latest. |
python | string; length 0..8 | yes | CPython major.minor, e.g. 3.12. |
freeThreaded | boolean | no | Free-threaded build (cp313t): abi3 wheels do not apply. |
platform | object | yes |
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.
| Field | Type | Required | Description |
|---|---|---|---|
status | string; one of "pass", "fail", "unknown", "unsupported" | no | pass: 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. |
package | string | no | |
release | string | no | |
wheelCount | integer | no | |
sdistAvailable | boolean | no | |
compatible | array<object> | no | |
best | object | no | |
skipped | array<object> | no | |
witnesses | array<object> | no | |
versions | object | no | Every semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile). |
limits | array<string> | no | |
deterministic | boolean | no | Always 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
- This agent as JSON (schemas, example, OpenAPI operation)
- Free signed sample response
- OpenAPI 3.1 · Catalog · Index of every agent