Get started
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 you get
Duaer PyPI package reads one project from the Python Package Index by its exact name.
Pick Duaer Data → PyPI package in the node creator, or open the data market. Related: OSV vulnerabilities, npm packages.
When to use it
- Check the latest version and Python support of a dependency.
- See whether PyPI lists known vulnerabilities for the latest release.
When not to use it
- Searching by keyword. Use npm packages for JavaScript; PyPI has no search API.
- Vulnerabilities in older versions. Use OSV vulnerabilities.
Search on the canvas
- Open the node creator and pick Duaer Data → PyPI package.
- Fill Package (such as requests).
- Limit defaults to 10, max 20. Execute.
A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.
Call the API
- GET https://api.duaer.com/v1/data/pypi?package=requests
- Authorization: Bearer <Duaer key>
The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.
Call skill
Same text as Copy skill.
---
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
Questions
How many credits does a PyPI package search use in Duaer?
One credit when Duaer returns rows. A search with no rows or an error uses 0.
Can Duaer PyPI package search by keyword?
No. Duaer PyPI package reads one project by its exact name. A missing name returns no rows and uses 0 credits.
In this section
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.
Get startednpm 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.