jade.utils.utils.create_chunks

jade.utils.utils.create_chunks(items, size)[source]

Returns a generator dividing items into chunks.

items : list batch_size : int

Return type:

generator