Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PurlDB: Provide a list of all known package versions #333

Closed
DennisClark opened this issue Mar 12, 2024 · 1 comment
Closed

PurlDB: Provide a list of all known package versions #333

DennisClark opened this issue Mar 12, 2024 · 1 comment
Assignees

Comments

@DennisClark
Copy link

DennisClark commented Mar 12, 2024

For the generic packages, we are processing in batches, we want to also return their versions. This is special since many of these are generic packages without structured version metadata.

@keshav-space
Copy link
Member

keshav-space commented Apr 3, 2024

Completed in:

The simple way to test this is to follow the below steps:

  1. Install fetchcode using pip install fetchcode
  2. Call the fetchcode.package.info using versionless PURL. See example below.

Example to fetch all known version of pkg:generic/miniupnpc:

>>> from fetchcode.package import info
>>> packages = list(info("pkg:generic/miniupnpc"))
>>> print("\n".join([p.purl for p in packages]))
pkg:generic/miniupnpc@1.7
pkg:generic/miniupnpc@1.8
pkg:generic/miniupnpc@1.9
pkg:generic/miniupnpc@2.0
pkg:generic/miniupnpc@2.1
pkg:generic/miniupnpc@2.2.0
pkg:generic/miniupnpc@2.2.1
pkg:generic/miniupnpc@2.2.2
pkg:generic/miniupnpc@2.2.3
pkg:generic/miniupnpc@2.2.4
pkg:generic/miniupnpc@2.2.5
pkg:generic/miniupnpc@2.2.6
pkg:generic/miniupnpc@2.2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants