iterate_batch_get_item

iterate_batch_get_item(connection, table, *keys)

Note that this function is variadic. See Variadic functions.

Make as many BatchGetItem actions as needed to iterate over all specified items. Including processing BatchGetItemResponse.unprocessed_keys.

>>> for item in iterate_batch_get_item(connection, table, {"h": 0}, {"h": 1}, {"h": 2}):
...   print item
{u'h': 1, u'gr': 0, u'gh': 0}
{u'h': 2, u'gr': 0, u'gh': 0}
{u'h': 0, u'gr': 0, u'gh': 0}

Note that items are returned in an unspecified order.