#187 XMLRPC API result pagination

v1.0_(example)
open
nobody
None
5
2012-07-28
2012-07-28
José Moreira
No

Hi,

any possibility of implementing [optional] result pagination on the XMLRPC API ?
For example, i'm developing a mobile application to interact with Pypi (list, search, track version updates, etc) and parsing large xml results (for example the "list_packages" for sure and "search" depending on the number of results obviously ) seems to be currently (still debugging/investigating/working on it) an issue.

Discussion

  • It may be possible, but certainly not in the near future, unless somebody contributes code to do that. IIUC, pagination will require the server to maintain state for results that have been retrieved only partially, which may be difficult to do. I'd prefer a general solution, where the result is stored (e.g. as a pickle) into a separate table along with a handle, and then a single function lets one retrieve the next page.