Skip to main content

Simple stream tool like java

Project description

JStream

Is a simple tool like Java stream.

install

pip install jstream

example

from JStream import JStream, collectors

s = JStream([1,2,3,4,5,6,7,8,9,10])
s.filter(lambda x: x % 2 == 0).sum()

s.filter(lambda x: x >= 5).collect(collectors.GroupingByCollector(lambda x: x % 2))

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

jstream-0.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jstream-0.5-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file jstream-0.5.tar.gz.

File metadata

  • Download URL: jstream-0.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for jstream-0.5.tar.gz
Algorithm Hash digest
SHA256 ce4654aa6c3f8c1b3f35929b4d81bfea7b28fd92fb240f253430e85fbe693798
MD5 8541c27008d279fee7c935dc580e5329
BLAKE2b-256 1a0d98801e81a4cf84e52e02acf05468d8a4da630ed3f1dc7f9c3b4ef06234c5

See more details on using hashes here.

File details

Details for the file jstream-0.5-py3-none-any.whl.

File metadata

  • Download URL: jstream-0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for jstream-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a2b72e4c7205a86fc14ec07569049e002511f3496f53943e8f57256226fce33c
MD5 9710561fac5da60bc954f31e8aee5629
BLAKE2b-256 980315638f00785aecaf8e2128e6b98fe3a536174395ebd166628db964728bfa

See more details on using hashes here.

Supported by

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