def read_limits(self, limit=None, page_size=None):
page_limit = values.unset<EOL>if limit is not None:<EOL><INDENT>if page_size is None:<EOL><INDENT>page_size = limit<EOL><DEDENT>page_limit = int(ceil(limit / float(page_size)))<EOL><DEDENT>return {<EOL>'<STR_LIT>': limit or values.unset,<EOL>'<STR_LIT>': page_size or values.unset,<EOL>'<STR_LIT>': page_limit,<EOL>}<EOL>
Takes a limit on the max number of records to read and a max page_size
and calculates the max number of pages to read.

:param int limit: Max number of records to read.
:param int page_size: Max page size.
:return dict: A dictionary of paging limits.