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.1.tar.gz
(14.8 kB
view hashes)
Built Distribution
Close
Hashes for pyStreamer-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c8b40176590607fb4bf072337961be13ff6a5ae35e39ae2ef5bd67b766c6d60 |
|
MD5 | 462cb4ade9e2001f87e3be21f7c9f899 |
|
BLAKE2b-256 | a9b4e4518a7680030611bf2c08a8885ebf683374349a8e8d1a6c1d9cb6674f5e |