This is the base class used to define default methods and attributes for all classes which will be used for pagination of the TruSTAR public API.

Variables:items – The list of items of the page; i.e. a list of indicators, reports, etc.
classmethod get_generator(page_generator)

Gets a generator for retrieving all results from a paginated endpoint. Pass exactly one of page_generator or func. This method is intended for internal use.

Parameters:page_generator – A generator to be used to generate each successive Page.
Returns:A generator that generates each successive element.