MiniMindsLab List Chunk
Deterministically split Python sequences or plain iterables into fixed-size chunks, with strict validation for positive chunk sizes.
Install
pip install minimindslab-list-chunk
Usage
from minimindslab_list_chunk import chunk
result = chunk([1, 2, 3, 4, 5], 2)
# [[1, 2], [3, 4], [5]]
Works with any iterable, including generators:
from minimindslab_list_chunk import chunk
def numbers():
for i in range(5):
yield i
result = chunk(numbers(), 2)
# [[0, 1], [2, 3], [4]]
API
chunk(iterable, size)
iterable: Any Python iterable.size: Positive integer chunk size.
Returns a list of lists containing chunked values in original order.
Raises:
ValueErrorifsize <= 0
Metadata
Release files for minimindslab-list-chunk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| minimindslab_list_chunk-0.1.0.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| minimindslab_list_chunk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / minimindslab_list_chunk-0.1.0.tar.gz
| Download URL | minimindslab_list_chunk-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b0132510c2d93557c244754f1b22489ef56f5d4ed1a17f812c96332ecd7770f
|
|
BLAKE2b-256 checksum How to use checksums |
c05524bc489980786a34c2431f0b5bbe714430d788290c6ac5021cb30be193d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
n8n
|
Release files / minimindslab_list_chunk-0.1.0-py3-none-any.whl
| Download URL | minimindslab_list_chunk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0a751259aa6e76c8eda237ac53ee6a8235d0b4f7b8e3fc194d9e823d3226d08
|
|
BLAKE2b-256 checksum How to use checksums |
274e1348ebb8f0fa64746c5dfbc13600a05aadee4d29989bcbb82c383b32dea3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
n8n
|
Security for minimindslab-list-chunk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.