flupy
Fluent data processing in Python - a chainable stream processing library for expressive data manipulation using method chaining
What it is and what it does
Flupy is a lightweight, zero-dependency Python library that implements a fluent interface for working with iterables. It lets you chain operations like map, filter, chunk, and take in a readable, method-chaining style while maintaining lazy evaluation—all transformations are generators that process data on-demand rather than loading everything into memory at once.
The library is designed as a pure-Python alternative to Apache Spark for scenarios where you need expressive, memory-efficient data pipelines without external dependencies. It supports both library usage (importing `flu` and chaining methods) and command-line usage through a `flu` shell command that applies the same lazy pipeline syntax to file or stdin input.
Use it for:
- Process infinite or very large sequences (like itertools.count) without exhausting memory by chaining transformations.
- Build readable, chainable data transformation pipelines in place of nested loops or complex list comprehensions.
- Filter, map, and chunk streaming data in a shell script using the flupy CLI tool.
- Prototype data processing logic that could later scale to Spark without rewriting the pipeline structure.
- Combine multiple lazy operations (e.g., map → filter → chunk → take) while keeping intermediate results as generators.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Flupy provides a fluent interface for lazy evaluation of operations on Python iterables, allowing you to chain transformations like map, filter, and chunk while processing data in constant memory regardless of input size.
Yes. Flupy is a low-friction, well-maintained library with zero dependencies, permissive licensing, and no known vulnerabilities. Install it if you want readable, chainable lazy evaluation for iterables without the overhead of larger frameworks. It's particularly useful for memory-constrained scenarios or when you prefer functional-style pipelines over imperative loops.
Install
flupy on PyPI
pip
pip install flupyuv
uv add flupypoetry
poetry add flupyInstalling flupy
Before you install
Installation is straightforward with no runtime dependencies. The package is actively maintained with a recent release (27 days ago) and has been stable since its initial 2018 release, supporting Python 3.10 through 3.13.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe to adopt in most projects without licensing concerns.
Quickstart
from flupy import flu
from itertools import count
pipeline = (
flu(count())
.map(lambda x: x**2)
.filter(lambda x: x % 517 == 0)
.take(3)
)
for item in pipeline:
print(item)
Requires Python 3.10 or later.
Verify before relying
- Whether the CLI tool is included in the standard pip installation or requires additional setup.
- Performance characteristics on very large datasets compared to alternatives like itertools or pandas.
- Community adoption and real-world usage patterns beyond the documented examples.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 27 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,835,286/month — #3,503 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: flupy-1.2.4-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
nr-streamProvides functional-style utilities for Python…
permissive · top 15,000 on PyPI
pipePipe enables shell-like infix syntax for…
permissive · top 15,000 on PyPI
iterable-ioWraps iterables (generators, lists, etc.) as…
copyleft · top 15,000 on PyPI
vineVine provides a Python implementation of…
permissive · top 1,000 on PyPI
reactivexRxPY is a library for building asynchronous and…
permissive · top 5,000 on PyPI
cytoolzCython-accelerated implementation of the toolz…
permissive · top 5,000 on PyPI
aiostreamaiostream provides composable stream operators…
copyleft · top 5,000 on PyPI
more-itertoolsProvides additional iterator utilities and…
permissive · top 1,000 on PyPI
LazifyLazify provides lazy evaluation utilities for…
permissive · top 15,000 on PyPI
lmzProvides convenience functions for mapping,…
copyleft · top 15,000 on PyPI