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.1.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for pyStreamer-0.3.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d528f27733cac9bbf61fe74a36025829b13f71c7083424466974e8ed646fd39e |
|
MD5 | 560c5647b112f8fffb2143779778c329 |
|
BLAKE2b-256 | cdcf30f0aeb0e586938924e748c3dfd85d6cd9691a809ced32cc91d62aab5359 |