read_package_info
Get a package's latest release from PyPI, npm or crates.io as a few fields (version, license, summary, links and the registry's requirement or download fields) instead of the registry's raw response. Latest release only: there is no version parameter. Use this for those three registries; for any other site use read_page. Reads the live registry each call. Fetches are limited to 60 a minute per client. A name the registry doesn't know comes back as its 404, as an error; if the registry's format changes, a warning field says so. Each call runs a built-in recipe and is recorded in its public run statistics; otherwise nothing is kept except the result's handle, for 60 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name, e.g. requests, express, @types/node (scoped), serde. PyPI and crates.io ignore case and treat - and _ alike; npm names must match exactly. | |
| ecosystem | Yes | pypi (Python), npm (JavaScript) or crates (Rust). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | name, version, released (pypi), license, summary or description, requires_python (pypi) or node (npm), downloads and updated (crates), links. | |
| handle | No | Handle id of the result, usable with run_op or read_handle. | |
| warning | No | The registry's answer is missing fields it normally has (its format may have changed). |