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.3.tar.gz
(15.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pystreamer-0.4.3.tar.gz.
File metadata
- Download URL: pystreamer-0.4.3.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e71617f08b02db2781ffcf93bf1faaa930723ff0a791bff0a3e0b95f4c109cfe
|
|
| MD5 |
b96e261b7d302c60ef91b02b5f9e1c65
|
|
| BLAKE2b-256 |
5428a9189833cdf61e0346917b2b31b63a54f7fbebc5a67c9f33e80c36763b42
|
File details
Details for the file pystreamer-0.4.3-py2.py3-none-any.whl.
File metadata
- Download URL: pystreamer-0.4.3-py2.py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
746d52e9872c96e13f5b4ab4783e59401252d46039314fbd7df0b1ea43d524a2
|
|
| MD5 |
8592c9add4632c0fb5b32057070485a7
|
|
| BLAKE2b-256 |
a67c29568afa21e3a090c1bc99defb223ae8215e870a55c3d138999d91fd308e
|