def get_bucket_page ( page ) : key_list = page . get ( 'Contents' , [ ] ) logger . debug ( "Retrieving page with {} keys" . format ( len ( key_list ) , ) ) return dict ( ( k . get ( 'Key' ) , k ) for k in key_list )
boto3 athena python pagination
Returns all the keys in a s3 bucket paginator page .
def get_bucket_page(page):
    """
    Returns all the keys in a s3 bucket paginator page.
    """
    key_list = page.get('Contents', [])
    logger.debug("Retrieving page with {} keys".format(
        len(key_list),
    ))
    return dict((k.get('Key'), k) for k in key_list)