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.3.0.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for pyStreamer-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 525874e662cc4145ae5e64df4ef82510caa15626c7379d4888b7bddced476fb8 |
|
MD5 | 049a25989b1bcd022ffa4f18f1e1789b |
|
BLAKE2b-256 | 97ab9682118f89e03ca03e1bb97fac33c0d1541a52f4d6f0d984bf9ff57a56f8 |