r/Python • u/AutoModerator • Oct 04 '26
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
23
Upvotes
r/Python • u/AutoModerator • Oct 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
View all comments
0
u/Sudden_Broccoli3754 23d ago
**fpstreams: JavaScript style functional pipelines for Python**
I'm the author of fpstreams, a Python 3.11+ library for working with Python objects and async inputs through lazy, chainable pipelines.
If you've used JavaScript's map, filter, and reduce, the style should feel familiar. fpstreams extends that approach with grouping, joins, aggregation, and async processing with configurable concurrency and result ordering.
The implementation goes beyond translating those methods into Python. It can fuse compatible operations into a single loop and use native Rust kernels or Arrow execution for supported workloads. Performance depends on the operations and input; for a short transformation, a comprehension is often simpler.
Terminal operations also handle cleanup of iterators owned by the pipeline, and async pipelines cancel their remaining tasks when processing stops early.
I'd appreciate feedback on the API, particularly from people who use functional pipelines in JavaScript and want a similar workflow in Python.
GitHub: https://github.com/steventimes/fpstreams
PyPI: https://pypi.org/project/fpstreams/
Documentation: https://steventimes.github.io/fpstreams/