Skip to main content

A lazy evaluating, memory friendly, chainable stream solution

Project description

pystreamer

Build Status

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


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 details)

Uploaded Source

Built Distribution

pyStreamer-0.4.1-py2.py3-none-any.whl (14.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyStreamer-0.4.1.tar.gz.

File metadata

  • Download URL: pyStreamer-0.4.1.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.7

File hashes

Hashes for pyStreamer-0.4.1.tar.gz
Algorithm Hash digest
SHA256 6737ae79ae9ec77cb0ae318748eb45a87765eab593093f0ac5691b8c56fee6f4
MD5 afa331167270f961dcf04795162ec103
BLAKE2b-256 ba8010ded6f9e669597727d07254d2d4aaa30c07ca8b04ae294f459d0c1cd784

See more details on using hashes here.

File details

Details for the file pyStreamer-0.4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pyStreamer-0.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.7

File hashes

Hashes for pyStreamer-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3c8b40176590607fb4bf072337961be13ff6a5ae35e39ae2ef5bd67b766c6d60
MD5 462cb4ade9e2001f87e3be21f7c9f899
BLAKE2b-256 a9b4e4518a7680030611bf2c08a8885ebf683374349a8e8d1a6c1d9cb6674f5e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page