Skip to content

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

Notifications You must be signed in to change notification settings

Kk-ships/chunkifypy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

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)

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

No packages published

Languages