Description
What's the problem this feature will solve?
I run a PyPI mirror which uses the RSS feeds to keep in sync with new packages and releases, which always return the 40 most recent items. Currently I query the feeds every 5 minutes, but sometimes there have been more than 40 releases in the last 5 minutes. To get around this with the current API I would have to query much more frequently, which the vast majority of the time is unnecessary load on PyPI and depending on how these packages are being rapidly published might still be insufficient.
Describe the solution you'd like
The RSS feeds could accept a pair of query parameters:
limit
: allow returning up tolimit
items instead of the current 40, probably up to some cap for performance reasonsmax_age
: return only items published in the lastmax_age
seconds
This would make mirroring much easier, as I could set max_age
to my polling interval plus epsilon. I would not be retrieving any more items than necessary, so I think the load on PyPI would be lighter.
Additional context
This accomplishes something similar to the deprecated XML-RPC changelog, but the documentation warns to use the RSS feed instead of that.
This request is probably of interest to the same audience of #1683 but the feature itself is orthogonal.