dev_pep440
Python version check (PEP 440 parse, compare, specifier match) — Offline PEP 440 engine with the same ordering and specifier rules as Python's packaging library and pip. Pass version= to parse and normalize it (epoch, release, pre/post/dev, local, flags); add spec= (e.g. >=2.0,<3 or ~=1.4.2 or ==1.3.*) to test each clause, other= to compare two versions, or versions= (comma list, up to 500) to sort them and pick the best match for spec= the way pip does (finals before pre-releases unless prereleases=true or the spec names a pre-release). Price: $0.002 USDC (Base, via x402).
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": {
"version": "<version>",
"spec": "<spec>"
},
"name": "dev_pep440"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | >=2.0,<3 | |
| version | Yes | 2.1.0rc1 |