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

browse(classifiers) without XML-RPC #9156

Closed
tlambert03 opened this issue Mar 2, 2021 · 7 comments
Closed

browse(classifiers) without XML-RPC #9156

tlambert03 opened this issue Mar 2, 2021 · 7 comments

Comments

@tlambert03
Copy link

I feel certain that this has been discussed... please forgive me if I missed the previous issue:
I'm wondering if there is an API to retrieve a list of all releases classified with a given classifier in one of the newer APIs, similar to the browse function in the deprecated XML-RPC API.

thanks!

@di
Copy link
Member

di commented Mar 2, 2021

There is not. A few alternatives:

Could you explain your use case a bit?

@tlambert03
Copy link
Author

Thanks for the quick response! I work on an app (https://github.com/napari/napari/) that has an integrated gui plugin installer (see quick gif here if curious), where we'd like to surface packages that provide Framework :: napari. Currently we are just parsing the HTML from the web UI... and can continue to do so, but just wondered if there was a better way.

Thanks for pointing me to the public dataset, I'll look into how we might use that instead.

@di
Copy link
Member

di commented Mar 2, 2021

In that case, the public dataset might not be ideal: while it's updated in near-real-time, there is a bit of a lag. You'd also probably want to run the query yourself and cache the results somewhere.

The HTML from the web UI will probably not change significantly between now and when we eventually provide an equivalent JSON API.

@tlambert03
Copy link
Author

ok, thanks! between caching the result and just parsing the HTML, I think we'll be fine for now. Will keep an eye out for JSON API updates. Thanks for your help!

@neuromusic
Copy link

when we eventually provide an equivalent JSON API

@di do you have a sense of the timeline for this? or a good issue to track?

@di
Copy link
Member

di commented Mar 11, 2021

I have no timeline, sorry. The issue to track is #284.

@neuromusic
Copy link

perfect, thank you!

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

No branches or pull requests

3 participants