CMD + K

parts

Community

Minimal library that enables partitioning of iterable objects in a concise manner.

Installation

To install this package, run one of the following:

Conda
$conda install sfe1ed40::parts

Usage Tracking

1.7.0
1 / 8 versions selected
Downloads (Last 6 months): 0

Description

This library provides a function for partitioning iterable data structure instances. When the number of parts is specified explicitly, it is treated as a strict requirement and an exception is raised when it cannot be satisfied. When a length for all parts (or each part) is specified explicitly, a best-effort approach is used: as many parts of the specified length are retrieved as possible, with the possibility that some parts at the end of the partition sequence have a shorter (but still non-zero) length.

About

Summary

Minimal library that enables partitioning of iterable objects in a concise manner.

Last Updated

Oct 18, 2023 at 17:27

License

MIT

Total Downloads

13.8K

Supported Platforms

linux-ppc64le
linux-aarch64
linux-s390x
macOS-64
macOS-arm64
linux-64
win-64