Flupy is a lightweight Python library and command-line interface (CLI) for implementing data pipelines with a fluent, chainable interface. Built upon generators, it processes data lazily and uses a constant amount of memory, making it suitable for large datasets. The current stable version is 1.2.3, and it maintains an active development cadence.
pip install flupyVerified import paths — ran on the pinned version, not inferred.
This example demonstrates creating a fluent pipeline to process an infinite sequence lazily, squaring numbers, filtering them, chunking the results, and taking a limited number of chunks. Operations are chained, with each method returning a new `flu` object.
To re-run a pipeline or process data again, re-create the `flu` object from the original data source or explicitly `list()` the results of the first iteration if you need to reuse them.
Always use the new `flu` object returned by each method call to continue the pipeline. If you need a final, concrete collection, use terminal operations like `.collect()` or `list()`.
When writing Python code, always explicitly import `flu` using `from flupy import flu` and initialize it with your iterable (e.g., `flu(my_list)`).
Install the library using pip: `pip install flupy`
Ensure that if a `flu` pipeline is iterated, it is re-initialized from the original data source for subsequent iterations, or the results of the first iteration are collected into a list. Also, verify that all intermediate steps in the pipeline produce iterable outputs if required by the next step.
Wrap your iterable with `flu()` before chaining methods: `flu(my_list).map(lambda x: x * 2)`
Ensure the import statement is `from flupy import flu` with correct casing for both 'flupy' and 'flu'.
No dependency data recorded yet.