PagerDuty / pdpyras

Low-level PagerDuty REST/Events API client for Python
MIT License
129 stars 29 forks source link

V4.5.0: Cursor-based pagination #76

Closed Deconstrained closed 2 years ago

Deconstrained commented 2 years ago

Summary

Adds a new method of pagination that might get used in more places in the future. In the mean time it's handy to have a function that implements it on the client end.

This change also includes a bit of project metadata housecleaning: removing myself as the code author. At this point, I have granted @lnxchk joint ownership over the PyPI project and documented the steps typically taken to release a new version, so it should be fully community-maintainable yet with PagerDuty still in control of the release pipeline in case something happens to me.

Changelog

**2022-02-17: Version 4.5.0**

* Add a new API generator ``iter_cursor`` to :class:`APISession` that yields results from API endpoints that support cursor-based pagination, requesting the next page of results whenever needed.

TODO