#187 XMLRPC API result pagination

v1.0_(example)
wont-fix
nobody
None
5
2016-08-23
2012-07-28
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

  • Martin v. Löwis

    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.

     
  • Ernest W. Durbin III

    • status: open --> wont-fix
     
  • Ernest W. Durbin III

    The plan is to update PyPI in the forthcoming Warehouse project. XMLRPC interface will not be further modified.

    please see https://github.com/pypa/warehouse/issues to track progress and contribute to the discussion on modern APIs.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks