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

Split the functions that create URLs and fetch into two separate functions #94

Open
keshav-space opened this issue Dec 11, 2023 · 0 comments

Comments

@keshav-space
Copy link
Member

We are going to have discrete functions each with a router that return a very specific URL or small piece of data like today. But here the functions that create URLs and fetch should be split in two so that we can have URL-only functions as explained in 2. that do not fetch anything.

Functions that only transform a PURL in a URL should be in one place (likely packageurl-python)

Then anything that fetches remote data should be of two kinds

One may return raw data from a JSON or XML API
One may return a ScanCode Package object converted from this raw data
Some basic function that only return versions may just return lists of PURLs alright

We need to account to for repository_url and download_url qualifiers

see #93 (comment)

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

1 participant