Flypipe is a Python framework to simplify development, management and maintenance of transformation pipelines, which are commonly used in the data, feature and ML model space.
Each transformation is implemented in a small, composable function, a special decorator is then used to define it as a Flypipe node, which is the primary model Flypipe uses. Metadata on the node decorator allows for multiple nodes to be linked together into a Directed Acyclic Graph (DAG).
As each node (transformation) is connected to its ancestors, we can easily view the pipeline graphically in a html page
(my_graph.html()) or execute it by invoking my_graph.run()
Installation
pip install flypipe
Package published in PyPI.
Example Usage
import pandas as pd
from flypipe.node import node
@node(
type="pandas"
)
def t0():
return pd.DataFrame(data={"fruit": ["mango", "lemon"]})
@node(
type="pandas",
dependencies=[t0.select("fruit").alias("df")]
)
def t1(df):
categories = {'mango': 'sweet', 'lemon': 'sour'}
df['flavour'] = df['fruit']
df = df.replace({'flavour': categories})
return df
df = t1.run()
>>> print(df)
+----+---------+-----------+
| | fruit | flavour |
+====+=========+===========+
| 0 | mango | sweet |
+----+---------+-----------+
| 1 | lemon | sour |
+----+---------+-----------+
What Flypipe aims to facilitate?
- Free open-source tool for data transformations
- Facilitate streaming pipeline development (improved use of caches)
- Increase pipeline stability (better use of unittests)
- End-to-end transformation lineage
- Create development standards for Data Engineers, Machine Learning Engineers and Data Scientists
- Improve re-usability of transformations in different pipelines & contexts via composable nodes
- Faster integration and portability of pipelines to different contexts with different available technology stacks:
- Flexibility to use and mix up pyspark/pandas on spark/pandas in transformations seamlessly
- As a simple wheel package, it's very lightweight and unopinionated about runtime environment. This allows for it to be easily integrated into Databricks and independently of Databricks.
- Low latency for on-demand feature generation and predictions
- Framework level optimisations and dynamic transformations help to make even complex transformation pipelines low latency. This in turn allows for on-demand feature generation/predictions.
Commonly used
Source Code
API code is available at https://github.com/flypipe/flypipe.
Documentation
Full documentation is available at https://flypipe.github.io/flypipe/.
Metadata
Release files for flypipe 6.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flypipe-6.1.0.tar.gz | 39.2 MB | Without provenance | Details for flypipe-6.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flypipe-6.1.0-py3-none-any.whl | Python 3 | none | any | Details for flypipe-6.1.0-py3-none-any.whl |
Total release size: 41.1 MB
Release files / flypipe-6.1.0.tar.gz
| Download URL | flypipe-6.1.0.tar.gz |
|---|---|
| Size | 39.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
271e124219586881c3f44012e15d4779932ecf00146dbaa2df9fd18e33646d27
|
|
BLAKE2b-256 checksum How to use checksums |
cb8d7213762c1d5bff0456aed75be34c799470d03ab58ad21410cdbaabbadfe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.4
|
Release files / flypipe-6.1.0-py3-none-any.whl
| Download URL | flypipe-6.1.0-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaf7653d3ccf667945919698011a765529a5837b209a43b526f3cc9d7959bf2f
|
|
BLAKE2b-256 checksum How to use checksums |
57b060c8f416bcdfc0c34d92994148f0cfae573c3123e0fb32c80b2787507db9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.4
|
Security for flypipe 6.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.