PyPI Package Info
Get a Python package's details from PyPI: version, dependencies, supported Python versions, release history and licence.
Pay by wallet (x402)
pypi-package-info Example
Input
{
"package": "requests"
} Answer
{
"name": "requests",
"author": "Kenneth Reitz",
"license": "Apache Software License",
"summary": "Python HTTP for Humans.",
"version": "2.32.5",
"homepage": "https://requests.readthedocs.io",
"keywords": [],
"package_url": "https://pypi.org/project/requests/",
"dependencies": [
"charset_normalizer<4,>=2",
"idna<4,>=2.5",
"urllib3<3,>=1.21.1",
"certifi>=2017.4.17",
"PySocks!=1.5.7,>=1.5.6; extra == \"socks\"",
"chardet<6,>=3.0.2; extra == \"use-chardet-on-py3\""
],
"project_urls": {
"Source": "https://github.com/psf/requests",
"Homepage": "https://requests.readthedocs.io",
"Documentation": "https://requests.readthedocs.io"
},
"total_releases": 157,
"python_versions": [
"3",
"Only",
"3.10",
"3.11",
"3.12",
"3.13",
"3.14",
"3.9",
"CPython",
"PyPy"
],
"recent_releases": [
{
"version": "2.9.2",
"upload_date": "2016-04-29T21:57:23.021820Z",
"python_requires": null
},
{
"version": "2.9.1",
"upload_date": "2015-12-21T14:55:10.646407Z",
"python_requires": null
},
{
"version": "2.9.0",
"upload_date": "2015-12-15T15:30:34.276097Z",
"python_requires": null
},
{
"version": "2.8.1",
"upload_date": "2015-10-13T12:56:41.375848Z",
"python_requires": null
},
{
"version": "2.8.0",
"upload_date": "2015-10-06T14:47:57.677398Z",
"python_requires": null
},
{
"version": "2.7.0",
"upload_date": "2015-05-03T15:01:28.821871Z",
"python_requires": null
},
{
"version": "2.6.2",
"upload_date": "2015-04-23T16:30:52.318157Z",
"python_requires": null
},
{
"version": "2.6.1",
"upload_date": "2015-04-23T02:27:04.893535Z",
"python_requires": null
},
{
"version": "2.6.0",
"upload_date": "2015-03-14T16:44:37.146829Z",
"python_requires": null
},
{
"version": "2.5.3",
"upload_date": "2015-02-24T16:33:49.703522Z",
"python_requires": null
}
],
"requires_python": ">=3.9",
"description_content_type": "text/markdown"
} Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
package | string | Yes | — |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
name | string | Always (present in every successful answer) |
summary | string | Always (present in every successful answer) |
version | string | Always (present in every successful answer) |
dependencies | array | Always (present in every successful answer) |
recent_releases | array | Always (present in every successful answer) |
How to call it
The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.
# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
-H "Authorization: Bearer $STRALE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"capability_slug": "pypi-package-info",
"inputs": {
"package": "requests"
},
"max_price_cents": 5
}' {
"tool": "strale_execute",
"arguments": {
"slug": "pypi-package-info",
"inputs": {
"package": "requests"
},
"max_price_cents": 5
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "pypi-package-info",
inputs: {
"package": "requests"
},
max_price_cents: 5,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="pypi-package-info",
inputs={
"package": "requests",
},
max_price_cents=5,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/pypi-package-info?package=requests' Limitations
Private packages and alternative indexes are excluded
Queries the public PyPI registry — private packages and packages hosted on alternative indexes (e.g., Artifactory) are not accessible
What to do instead: For private packages, query your organisation's Python package index directly
Related tools
- GitHub Repo Comparison €0.05
- npm Package Info €0.05