A lazy evaluating, memory friendly, chainable stream solution
Project description
pystreamer
A lazy evaluating, memory friendly, chainable stream solution.
Inspired by the syntactical sugar of Java stream.
from streamer import Stream
with open("myfile.txt") as f_input:
uniq = Stream(f_input) \
.map(str.strip) \
.flat_map(str.split) \
.collect(set) # uniq tokens in a file
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyStreamer-0.2.0.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for pyStreamer-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 423efadff3d75e3b053edec49d73f5992b8162a39bba1525ce339d9a28cbbaf3 |
|
MD5 | 4e714e831d719bbb4b8949f3cbd3de5f |
|
BLAKE2b-256 | 473e33b7af71fe7b3de24dd7c1bb0054dfbe863b7a858dbdee5f58a52fadd524 |