from ChunkifyPy.chunkify import chunkify
long_list = list(range(0, 10**6)) # 1 million elements list
# create a generator of elements where each chunk is of size 0.01 MB (10 KB) or less
result = chunkify(long_list, 0.01)
for chunk in result:
print(chunk)
-
Notifications
You must be signed in to change notification settings - Fork 0
ChunkifyPy is a Python package designed to simplify the process of breaking down sizable Python objects into smaller, manageable chunks. This package is an invaluable tool for applications requiring seamless streaming or transmission of data in controlled portions.
License
Kk-ships/chunkifypy
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
ChunkifyPy is a Python package designed to simplify the process of breaking down sizable Python objects into smaller, manageable chunks. This package is an invaluable tool for applications requiring seamless streaming or transmission of data in controlled portions.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published