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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for chunkifypy-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83397a2c07d18594e16e88d1428566b227b8b094b67db61962bfe13f9303ec67 |
|
MD5 | bce68cd36202edbb334545ca0aa13943 |
|
BLAKE2b-256 | 55ff1c12f0da9d2534cf7df517ac99d363f103f5acc73b8dc17e820bd449af3a |