Skip to main 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.

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chunkifypy-0.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

chunkifypy-0.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page