Registry / data / functional-streams

functional-streams

JSON →
library1.6.4pypypi✓ verified 33d ago

A Python library that provides functional programming stream operations similar to Java streams, enabling declarative, concise data transformations via lazy evaluation, fluent chaining, and common operations like map, filter, reduce, and more. Current version 1.6.4, supports Python >=3.6, with moderate release cadence (minor updates every few months).

data
Install & Compatibility
Where this runs
tested against v1.6.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

from streams import Stream

Create a stream from a list, filter even numbers, double them, and collect to list.

from functional.streams import Stream result = (Stream([1, 2, 3, 4]) .filter(lambda x: x % 2 == 0) .map(lambda x: x * 2) .to_list()) print(result) # [4, 8]
Debug
Known footguns
gotchaStream operations are lazy; a 'terminal' operation like to_list() or sum() is required to trigger evaluation. Without a terminal operation, nothing will execute.
gotchaStreams are single-use: once a terminal operation is called, the stream cannot be reused. Attempting to do so will raise a RuntimeError.
deprecatedThe 'streams' module (lower-level) is considered deprecated in favor of 'functional.streams' (higher-level). Using old imports may lead to compatibility issues in future versions.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
11 hits · last 30 days
gptbot
4
ahrefsbot
3
claudebot
3
script
1
Resources