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.4.0.tar.gz
(12.7 kB
view hashes)
Built Distribution
Close
Hashes for pyStreamer-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60f21acf1ac8703ff3c3046988c89334d6882db922ca81cf07fb77f6ccb7f442 |
|
MD5 | a419fd8f005a78ca5c71f1a84cb32045 |
|
BLAKE2b-256 | 6210d441673adf1682249b545a8c50b0807746fcfbce3bcdd118a5a32b8d01cd |