Skip to main content

Flypipe

Project description

Flypipe

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()

Flypipe Graph Pipeline

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

Databricks Python

Source Code

API code is available at https://github.com/flypipe/flypipe.

Documentation

Full documentation is available at https://flypipe.github.io/flypipe/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flypipe-6.0.1.tar.gz (39.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flypipe-6.0.1-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file flypipe-6.0.1.tar.gz.

File metadata

  • Download URL: flypipe-6.0.1.tar.gz
  • Upload date:
  • Size: 39.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for flypipe-6.0.1.tar.gz
Algorithm Hash digest
SHA256 94a6d40fe047d77ed26323d52fc64a7552794032cd4fa3593fcb7cba7e982b8a
MD5 c3401cf9c938def247a30d1cf95a83c7
BLAKE2b-256 4944c986a339a0401b27e746971304f04db7db9d33407a571c856073f15d5633

See more details on using hashes here.

File details

Details for the file flypipe-6.0.1-py3-none-any.whl.

File metadata

  • Download URL: flypipe-6.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for flypipe-6.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2515b16eb05b0db09f86792f474b11dfb14c04730f3ed4b76d7524cb7b08e016
MD5 fc93e6f3666fb4cc3c44d08f9c064b1d
BLAKE2b-256 eabffcfc2b4559bf9c1980c6877dbf8132aafc7d130e00fffbaaf4cd6a4fd561

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page