Apologies if I missed this in the warehouse docs. I’m trying to figure out whether there is an API to query all of the packages on PyPI with a given trove classifier? The old XML-RPC API had the search(spec[, operator]) function… but it’s deprecated and I’m not seeing similar functionality in the newer JSON API endpoints (all of which appear to require you to know the package name first)
I think the OP is asking about querying PyPI for “projects matching given trove classifiers”, not the trove classifiers themselves. AFAIK there’s not an API for that at the moment, but the PyPI maintainers may be interested in adding the feature: GitHub - pypa/warehouse: The Python Package Index
Yep, the latter. I’m not looking to know “what classifiers are available”, but rather “what packages have metadata that includes one specific classifier”.
I would be interested in this API endpoint for JupyterLab extensions. I dream of something which would generates small responses and support HTTP cache via Last-modified so that we do not incur unwanted traffic on PyPI. I know that currently XMLRPC API still works as described in: