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.

Files for jivago-streams, version 0.5.5
Filename, size File type Python version Upload date Hashes
Filename, size jivago-streams-0.5.5.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page