Skip to main content

BeETL: Extensible Python/Polars-based ETL Framework


BeETL was born from a job as Integration Developer where a majority of the integrations we develop follow the same pattern - get here, transform a little, put there (with the middle step frequently missing altogether).

After building our 16th integration between the same two systems with another manual template, we decided to build BeETL. BeETL is currently limited to one datasource per source and destination per sync, but this will be expanded in the future. One configuration can contain multiple syncs.

Note: Even though some of the configuration below is in YAML format, you can also use JSON or a python dictionary.

TOC

Minimal example

# Syncing users from one table to another in the same database
from src.beetl.beetl import Beetl, BeetlConfig
config = BeetlConfig({
    "version": "V1"
    "sources": [
        {
            "name": "Sqlserver",
            "type": "Sqlserver",
            "connection": {
                "settings": {
                    "connection_string": "Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;"
                }
            }
        },
    "sync": [
        {
            "name": "Sync between two tables in a sql server",
            "source": "Sqlserver",
            "sourceConfig": {
                "query": "SELECT id, name, email FROM users"
            }
            "destination": "SqlServer",
            "destinationConfig": {
                "table": "users",
                "unique_columns": ["id"]
            }
            "comparisonColumns": [
                {
                    "name": "id",
                    "type": "Int32",
                    "unique": True
                },
                {
                    "name": "name",
                    "type": "Utf8"
                },
                {
                    "name": "email",
                    "type": "Utf8"
                }
            ]
        }
    ]
})

Beetl(config).sync()

Installation

From PyPi

#/bin/bash
python -m pip install beetl

# If you need to use xsl transformations
python -m pip install beetl[xsl]

From Source

#/bin/bash
# Clone and enter the repository
git clone https://github.com/Hoglandets-IT/beetl.git
cd ./beetl
# Install the build tools
python -m pip install build
# Build beetl
python -m build
# Install beetl from locally built package
python -m pip install ./dist/*.tar.gz

Getting Started

All the latest information about how to use beetl is located at the official docs.

Development Environment

The easiest way to get started is to use the included devcontainer.

Requirements

  • Docker
  • Visual Studio Code

Steps

  1. Clone the repository.
  2. Open the repository in Visual Studio Code.
  3. Install the recommended extensions.
  4. Using the command palette (ctrl+shift+p) search for reopen in container and run it.
    • The devcontainer will now be provisioned in your local docker instance and vscode will automatically connect to it.
  5. You can now use the included launch profiles to either open the docs or run the tests file.
  6. You can also use the built-in test explorer to run the available test.

Metadata

Release files for beetl 1.4.4

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

Source distribution (sdist)

Source distribution for beetl 1.4.4
File Size Uploaded Provenance Actions
beetl-1.4.4.tar.gz 56.8 kB Without provenance Details for beetl-1.4.4.tar.gz

Built distribution (wheel)

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

Total release size: 143.8 kB

Release files / beetl-1.4.4.tar.gz

Download URL beetl-1.4.4.tar.gz
Size 56.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2f6c6256845381d9e2c179b4a2b6d6d9d8862e5daab99fe1f48c2c647e3adde1
BLAKE2b-256 checksum
How to use checksums
cd67ef1a7c2ba78b27759e4f0f302c0cb963b33868253ef6271c898d4c31d61b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / beetl-1.4.4-py3-none-any.whl

Download URL beetl-1.4.4-py3-none-any.whl
Size 86.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b90a7bc71f35dc2af47727ae87c874c9dec40dfda8e7ab1222b896b04a65610
BLAKE2b-256 checksum
How to use checksums
d322f372c1209cfb22fadee5d36900732e8eb5bf8386a5d0c0cb688a396e66a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for beetl 1.4.4

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.

Release history Release notifications | RSS feed

This release

1.4.4 This release

2 release files No provenance

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