Skip to main content

etlrules

Release Status Python versions CI Status Documentation Status

A python rule engine for applying transformations to dataframes.

ETL stands for Extract, Trasform, Load, which is a three step process to source the data from some data source (Extract), transform the data (Transform) and publish it to a final destination (Load).

Data transformation of tabular sets can be done in pure python with many dedicated python packages, the most widely recognized being pandas. The result of such transformations can be quite opaque with the logic difficult to read and understand, especially by non-coders. Even coders can struggle to understand certain transformations unless in-code documentation is added and even when documentation is available, the code change in ways which renders the documentation stale.

The etlrules package solves this by offering a set of simple rules which users can use to form a plan. The plan is a blueprint on how to transform the data. The plan can be saved to a yaml file, stored in a repo for version control or in a database for manipulation via UIs and then executed in a repeatable and predictable fashion. The rules in the plan can have names and extensive description acting as an embedded documentation as to what the rule is trying to achieve.

This data-driven way of operating on tabular data allows non-technical users to come up with data transformations which can automate various problems without the need to code. Workflows for managing change and version control can be put in place around the plans, allowing technical and non-technical users to collaborate on data transformations that can be scheduled to run periodically for solving real business problems.

High level concepts

Plan

A plan is a blueprint of how to perform extractions of tabular data, transformations of the data and how to load (ie write) the transformed data to its final destination.

A plan is a collection of rules, each of which operate on a dataframe (tabular data).

Rule

A rule is an operation performed on a dataframe. There are three types of rules: * Extract rules (aka read rules) - They will read an external data source (ie files, DBs, APIs endpoints) and bring the data into memory for processing * Transform rules - They will perform a transformation of the data (ie add a new column, modify an existing column, join columns, aggregate) * Load rules (aka write rules) - They will write the output into an external storage (ie files, DBs, APIs endpoints)

Rule engine

The component that takes a plan and executes it (rule by rule) based on an input.

Rule data

The structure that holds together any input dataframes, temporary results and the final output of a rule engine execution of a plan. The rule data can have some input dataframes or they can start as empty canvases, with the plan performing extractions/reading of data that it needs.

Backend

The underlying dataframe library to use for executing the plan. For example: pandas, vaex, polars, etc. At the moment, only pandas is supported.

Runner

A command line interface application which can take a plan serialized as a yaml file and run it. Also allows to run that programmatically via the run_plan import.

Documentation

https://ciprianmiclaus2.github.io/etlrules/

License

Free software: MIT

Metadata

Release files for etlrules 0.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etlrules 0.3.6
File Size Uploaded Provenance Actions
etlrules-0.3.6.tar.gz 75.0 kB Without provenance Details for etlrules-0.3.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for etlrules 0.3.6
File Interpreter ABI Platform Actions
etlrules-0.3.6-py3-none-any.whl Python 3 none any Details for etlrules-0.3.6-py3-none-any.whl

Total release size: 173.4 kB

Release files / etlrules-0.3.6.tar.gz

Download URL etlrules-0.3.6.tar.gz
Size 75.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8f37248c70341e13786258c5bb637d6bb6bf1a5d22be9af6565e042959418447
BLAKE2b-256 checksum
How to use checksums
16672558adfe4ee386d06c0e0d29de4a0760fd867a58fcc0196acacb92abbef2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / etlrules-0.3.6-py3-none-any.whl

Download URL etlrules-0.3.6-py3-none-any.whl
Size 98.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
765d4605ad1bafcc66fa7951ff7bd2062a3033ac736aed2128821180ea8ec7e6
BLAKE2b-256 checksum
How to use checksums
1dfc0b068c4b6d656c2e9a407b0365ed193d6918123e02c846901569162c195d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for etlrules 0.3.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page