iterum
Rusty iterators in Python.
Installation
pip install iterum
Documentation
The documentation is made with Zensical and is hosted by GitHub Pages.
Example
from iterum import iterum, Some, nil, seq
itr = iterum([1, 2])
assert itr.next() == Some(1)
assert itr.next() == Some(2)
assert itr.next() == nil
itr = iterum([1, 2, 3, 4])
assert itr.fold(0, lambda acc, x: acc + x) == 10
lst = (
seq(5)
.map(lambda x: x**2 + 1)
.filter(lambda x: x % 2)
.collect()
)
assert lst == [1, 5, 17]
License
iterum is distributed under the terms of the MIT license.
Metadata
Release files for iterum 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iterum-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / iterum-0.3.0-py3-none-any.whl
| Download URL | iterum-0.3.0-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b37cb368cea8648b017510fbe8bd44a7f855ccb871e3ca29049672801f3cb287
|
|
BLAKE2b-256 checksum How to use checksums |
8096bc657333ce1f6938eb21e87389597e8af8e4bfe9548ac63102c7e460efe0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Security for iterum 0.3.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.