Check Python version compatibility
check_python_requiresInspects a PyPI package's requires_python constraint and declared Python classifiers, and optionally checks whether a specified Python version satisfies the supported-version requirements.
Instructions
Inspect a PyPI package requires_python specifier and declared Python classifiers, and optionally test whether a target Python version (such as "3.11" or "3.12") satisfies the constraint.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_name": "<package_name>"
},
"name": "check_python_requires"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | PyPI package name (e.g. "requests", "fastapi"). | |
| target_python | No | Optional target Python version to evaluate (e.g. "3.9", "3.11", "3.13"). |