Skills
PyPI package in Duaer
In Duaer: One Python package from PyPI with latest version, license, supported Python versions, links, and known vulnerabilities. One successful search uses 1 credit.
What Duaer returns
Each row has package, version, description, license, requiresPython, dependencies, author, homepage, and more, with a source link.
Key
Before you call, get a Duaer key.
Call skill
Paste this English skill into an agent. It matches Copy skill in the Duaer data market.
---
name: duaer-pypi
description: >-
Duaer PyPI package. One Python package from PyPI with latest version, license, supported Python versions, links, and known vulnerabilities.
One successful search uses 1 Duaer credit.
---
# Duaer PyPI package
Duaer PyPI package reads one project from the Python Package Index by its exact name.
## When to use
- Check the latest version and Python support of a dependency.
- See whether PyPI lists known vulnerabilities for the latest release.
## When not to use
- Searching by keyword. Use https://skills.duaer.com/npm.md for JavaScript; PyPI has no search API.
- Vulnerabilities in older versions. Use https://skills.duaer.com/osv.md.
## Call
`GET https://api.duaer.com/v1/data/pypi?package=requests`
Header: `Authorization: Bearer <Duaer key>`
Use an account key or a model API key.
Get a Duaer key: https://skills.duaer.com/keys.md
## Parameters
Provide `package`.
- `package` — Exact package name, such as requests or numpy.
## Examples
- `GET https://api.duaer.com/v1/data/pypi?package=requests` — the requests package.
- `GET https://api.duaer.com/v1/data/pypi?package=numpy` — the numpy package.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `package`, `version`, `description`, `license` — package facts.
- `requiresPython`, `dependencies` — Python range and number of declared dependencies.
- `author`, `homepage`, `documentation` — people and links.
- `knownVulnerabilities`, `released` — vulnerabilities PyPI lists for this release, and its upload time.
The search returns one row, or none when the name does not exist.
Fields without a value are left out.
## Credits
A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.
## Related
- https://skills.duaer.com/osv.md — Duaer OSV vulnerabilities
- https://skills.duaer.com/npm.md — Duaer npm packages
Related skills
OSV vulnerabilities in Duaer
In Duaer: Known vulnerabilities in an open-source package or version from OSV, across npm, PyPI, Go, Maven, crates.io, and more, with severity and fixed versions. One successful search uses 1 credit.
Datanpm packages in Duaer
In Duaer: JavaScript packages in the npm registry by name or keywords, with latest version, license, and weekly downloads. One successful search uses 1 credit.