iterators
This module is used internally to provide utilities for iterating over paginated endpoints.
Pagination
¶
Utility for paginated endpoints.
Attributes:
| Name | Type | Description |
|---|---|---|
_fetch_page |
A callable that takes limit and offset and returns a dict with "items" and "total". |
|
limit |
The number of items to fetch per page. |
Source code in luduvo/utilities/iterators.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |