Skip to main content

Chainable functional-style operations for Python3.

Project description

Jivago-Streams

Build Status codecov

Jivago-Streams brings the ability to chain functional-style operations on collections. This package provides a single class (Stream), which is extracted from the Jivago web framework. Note that jivago-streams can be used independently from the Jivago web framework.

from jivago_streams import Stream

# Result : [4, 16, 36]
square_of_even_numbers = Stream([1, 2, 3, 4, 5, 6]) \
    .filter(lambda x: x % 2 == 0) \
    .map(lambda x: x ** 2) \
    .toList()

Installation

pip install jivago-streams

Documentation

The documentation is available at https://docs.jivago.io.

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

jivago-streams-0.5.5.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file jivago-streams-0.5.5.tar.gz.

File metadata

  • Download URL: jivago-streams-0.5.5.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for jivago-streams-0.5.5.tar.gz
Algorithm Hash digest
SHA256 27c838ccfc3ccb04cbc2bc2b3453b44a96f6806aefddf0edc13f006751391687
MD5 ceac34d0f61c8204d4b483d6abdac2ab
BLAKE2b-256 dff83caa9fee02d334a5a7ffa385db2a792346ded31c7bde810609c7a188bc94

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