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: Collect core package metadata (including generic packages) #321

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

Comments

@DennisClark
Copy link

DennisClark commented Mar 12, 2024

Add support for Collecting core metadata for PURLs present in #326 #327 #328 and #329

@keshav-space
Copy link
Member

keshav-space commented Apr 2, 2024

Completed in these issues and PRs:

To test this, to follow the below steps:

  1. Install fetchcode using pip install fetchcode
  2. Call the fetchcode.package.info using PURL

Example:

>>> from fetchcode.package import info
>>> packages = list(info("pkg:generic/ipkg@0.99.19"))
>>> packages[0]
OrderedDict([('type', 'generic'), ('namespace', None), ('name', 'ipkg'), ('version', '0.99.19'), ('qualifiers', OrderedDict()), ('subpath', None), ('primary_language', None), ('description', None), ('release_date', '2002-08-19T04:23:00'), ('parties', []), ('keywords', []), ('homepage_url', 'https://web.archive.org/web/20090326020239/http://handhelds.org/download/packages/ipkg/'), ('download_url', 'https://web.archive.org/web/20090326020239/http:/handhelds.org/download/packages/ipkg/ipkg_0.99.19_arm.ipk'), ('api_url', None), ('size', None), ('sha1', None), ('md5', None), ('sha256', None), ('sha512', None), ('bug_tracking_url', None), ('code_view_url', None), ('vcs_url', None), ('copyright', None), ('license_expression', None), ('declared_license', None), ('notice_text', None), ('root_path', None), ('dependencies', []), ('contains_source_code', None), ('source_packages', []), ('purl', 'pkg:generic/ipkg@0.99.19'), ('repository_homepage_url', None), ('repository_download_url', None), ('api_data_url', None)])

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