A helper library to manage collections more easily
Project description
PyStream - A library for managing collections more conveniently
Inspired by other language's features (e.g. Java's streaming API, or JavaScript functional traits on arrays), this library helps you interact with collections or iterable objects, by easily chaining operations, and collecting the results at the end (thus, having lazy-evaluation).
Some basic examples:
from pystream.stream import Stream
Stream(2, 3, 5, 7, 11).skip(2).collect() # [5, 7, 11]
Stream([1, 2, 3]).map(lambda x: x + 1).filter(lambda x: x > 2).collect() # [3, 4]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pystream_collections-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5613daa1c0c01394a1268c47a76946b8bd6d3f4c8a176f4fb56cce764a57f00d |
|
MD5 | 2520e28e70b48fd0dd3ef9acaad01e4d |
|
BLAKE2b-256 | a705bb9e9db392d33be861d6026681c48e543d5e02fa2dd75a2e22201a450222 |
Close
Hashes for pystream_collections-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cfd0c430cdc0aad84b2b1b2f124ab8c6bcea9da61110fbebc715dc5d9e2d604 |
|
MD5 | 9baeebc0a57c8cb4457b6d6030796467 |
|
BLAKE2b-256 | 5812d30f7c16110c41630555485caaa2b5ced82d062b24b33dbc7cdb8f8a0e3e |