Skip to main content

iterplus - itertools extended

This library provides a set of functions that complement Python itertools. These include means to access iterable content via slicing, scan generator (easy series) and chainable wrapper (ie. a.map(…).filter(…)).

Examples

Scan

fibo = scan(0, 1, lambda a, b: a + b)

“scan” returns an iterator. Note how simple it’s to define series such as Fibonacci’s using it. In case an explicit rule is not provided, it infers one automatically (ie. 1,2,3,…).

Sliceable

sliceable(scan(0, 1))[2:5] # returns list containing third, fourth and fifth item

“sliceable” makes it possible to slice the content of iterators.

Chainable

chainable([1, 2, 3]).map(lambda x: x * 2).filter(lambda x: x > 3).val() == [4, 6]

“chainable” makes it possible to use basic functional utilities (map, filter, reduce) using a chaining syntax.

License

iterplus is available under MIT license. See LICENSE for more details.

Changelog

0.2.5 (2011-11-16)

  • Added index and rindex

  • Tidied up docs

0.2.0 (2011-11-11)

  • First public release

  • Added caching to sliceable

0.1.0 (2011-09-26)

  • Initial release

Metadata

Release files for iterplus 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iterplus 0.2.5
File Size Uploaded Provenance
iterplus-0.2.5.tar.gz 3.1 kB Without provenance Details

Release files / iterplus-0.2.5.tar.gz

Download URL iterplus-0.2.5.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
acf1a70b9895f55a20fbaf2271789ce86460cd4869dc621fbe53e654a786d688
BLAKE2b-256 checksum
How to use checksums
b27a9f1d8266eb0d56031676aeefe941ade045dcfdfe608b7441ac64726c516c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for iterplus 0.2.5

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.

Release history Release notifications | RSS feed

This release

0.2.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page