# PyPI Package Preflight Check

> PyPI Package Preflight Check is a paid API for AI agents from nohands-coinbase-bazaar.bytoken2023.workers.dev, paid per call via x402, $0.005011/call, status unknown (last checked 2026-11-02).

Fetches and analyzes PyPI package metadata including release age, yanked status, Python requirements, dependencies, license, and known OSV vulnerabilities before installation or use.

## Facts

- Endpoint: GET https://nohands-coinbase-bazaar.bytoken2023.workers.dev/v1/x402/software/pypi-package-preflight?utm_source=zero.xyz
- Price: $0.005011/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pypi-package-preflight-check-ed445288
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2clbft-5ECGr989qoLjxl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pypi-package-preflight-check-ed445288
```

Example prompt: Before I add requests 2.31.0 to my project, can you do a preflight check on that PyPI package — I want to know if it has any OSV vulnerabilities, whether it's been yanked, what Python versions it supports, and what its license is?

## When to prefer this

Use this endpoint when an AI agent or developer workflow needs to vet a Python package before installation or inclusion in a project — especially when security, licensing compliance, or maintenance health are concerns. Prefer this over manual PyPI browsing when you need a structured, machine-readable preflight signal that combines metadata, vulnerability data (OSV), and yanked status in a single call. Ideal for CI/CD pipeline agents, dependency review bots, or autonomous coding agents that install packages on behalf of users.

## Known failure modes

- Package name not found on PyPI — returns 404-style error
- Specific version not found — falls back to latest or returns error
- PyPI API unavailable — upstream timeout or service error
- Malformed package name input — validation error
- OSV database query fails — vulnerabilities field may be empty or flagged as unavailable

## How this service works

Check PyPI package metadata, release age, yanked status, Python requirements, dependencies, license, and OSV vulnerabilities.

## Output

Returns structured metadata about the requested PyPI package including: release timestamp and age, yanked status and reason, declared Python version requirements, direct dependencies, SPDX license identifier, and a list of OSV vulnerability advisories with severity and CVE references where available.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "example": "requests",
       "pattern": "^[A-Za-z0-9](?:[A-Za-z0-9._-]{0,198}[A-Za-z0-9])?$",
       "description": "PyPI project name."
      },
      "version": {
       "type": "string",
       "example": "latest",
       "pattern": "^(?:latest|[A-Za-z0-9][A-Za-z0-9._+!-]{0,99})$",
       "description": "Exact PyPI version or latest. Defaults to latest."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "x-schema-family": "STRUCTURED_PRODUCT_RESULT",
     "x-schema-authority": "STRUCTURED_PRODUCT_RESULT",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pypi-package-preflight-check-ed445288/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nohands-coinbase-bazaar.bytoken2023.workers.dev](https://www.zero.xyz/host/nohands-coinbase-bazaar.bytoken2023.workers.dev/llms.txt)
