Python ETL libraries

Updated Nov 2026

Python ETL libraries extract data from source systems, transform it, and load it into a warehouse or data lake. A loader tracks which records it has already moved and updates the destination schema when the source adds fields. These libraries let data teams keep warehouses and analytics tables in sync with production systems.

Popularity

PySpark has the most monthly downloads in this comparison, at 48.4M, a count that covers all Spark work.

LibraryMonthly downloadsStarsLast releaseLicense
PySpark
48.4M
44.6KOct 2026Apache-2.0
Dagster
11.0M
16.4KNov 2026Apache-2.0
Prefect
8.8M
24.2KNov 2026Apache-2.0
dlt
6.7M
6.1KOct 2026Apache-2.0
Apache Airflow
6.5M
47.5KNov 2026Apache-2.0
Apache Beam
3.8M
8.7KOct 2026Apache-2.0
Kedro
1.5M
11.1KNov 2026Apache-2.0
Luigi
1.1M
18.8KMay 2026Apache-2.0
Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Provides the Python API for Apache Spark.

Downloads / mo
48.4M
Stars
44.6K
Last release
4.3.0
License
Apache-2.0
$ pip install pyspark
from pyspark.sql import SparkSession

spark = SparkSession.builder.master('local[1]').appName('first-pipeline').getOrCreate()
spark.createDataFrame([(1,)], ['value']).show()
spark.stop()

PySpark examples

From open-source projects on GitHub

Orchestrates the development, production, and observation of data assets.

Downloads / mo
11.0M
Stars
16.4K
Last release
1.13.30
License
Apache-2.0

Quickstart

From README.md
$ pip install dagster
from dagster import asset, materialize

@asset
def greeting():
    return 'Hello'

result = materialize([greeting])

Dagster examples

From open-source projects on GitHub

Orchestrates and manages workflows.

Downloads / mo
8.8M
Stars
24.2K
Last release
3.9.3
License
Apache-2.0

Quickstart

From README.md
$ pip install prefect
from prefect import task

@task
def add_integers(a: int, b: int) -> int:
    return a + b

result = add_integers(1, 2)

Prefect examples

From open-source projects on GitHub

Loads Python data into typed destination tables with incremental state and schema controls.

Downloads / mo
6.7M
Stars
6.1K
Last release
1.32.0
License
Apache-2.0

Strengths

  • Tracks incremental loading state. Use cursor fields and merge strategies to load new or changed records.
  • Controls schema changes during loading. Evolve schemas or reject and discard data through explicit schema contracts.

Limitations

  • Replacing data can reset progress. The replace shorthand reloads data and resets the incremental cursor.
  • Frozen contracts can block loads. Freeze mode raises an exception when incoming data violates the existing schema.

Quickstart

From README.md
$ pip install "dlt[duckdb]"
import dlt

pipeline = dlt.pipeline(destination='duckdb', dataset_name='first_load')
load_info = pipeline.run([{'id': 1}], table_name='items')

dlt examples

From open-source projects on GitHub

Authors, schedules, and monitors data pipelines in code.

Downloads / mo
6.5M
Stars
47.5K
Last release
3.4.0
License
Apache-2.0

Quickstart

From dags.rst
$ pip install "apache-airflow==3.4.0"
from datetime import datetime
from airflow.sdk import DAG
from airflow.providers.standard.operators.empty import EmptyOperator

with DAG('first_pipeline', start_date=datetime(2024, 1, 1), schedule=None):
    EmptyOperator(task_id='first_task')

Apache Airflow examples

From open-source projects on GitHub

Defines data-processing pipelines over bounded batches or unbounded collections using execution runners.

Downloads / mo
3.8M
Stars
8.7K
Last release
2.77.0
License
Apache-2.0

Strengths

  • Processes unbounded data streams. Use continuously running pipelines with streaming sources and sinks.
  • Builds distributed processing graphs. Compose transforms over distributed collections and select an execution runner.

Limitations

  • Unbounded grouping needs windowing. Configure non-global windows or aggregation triggers before grouping unbounded collections.
  • Retries can repeat side effects. Make external side effects idempotent when a transform can run again.

Quickstart

From wordcount_minimal.py
$ pip install apache-beam
import apache_beam as beam

with beam.Pipeline() as pipeline:
    pipeline | beam.Create([1, 2, 3]) | beam.Map(print)

Apache Beam examples

From open-source projects on GitHub

Organizes reusable Python nodes, dependencies, and data catalog entries into reproducible pipelines.

Downloads / mo
1.5M
Stars
11.1K
Last release
1.8.0
License
Apache-2.0

Strengths

  • Resolves dependencies between Python functions. Describe node inputs and outputs, then let the pipeline determine execution order.
  • Validates catalog data at boundaries. Reject invalid inputs before processing and invalid outputs before storage.

Limitations

  • Parallel execution needs shared catalogs. Use SharedMemoryDataCatalog with ParallelRunner when calling the Python API.
  • Async dataset access needs thread-safety. Use thread-safe datasets when enabling asynchronous loading and saving.
$ pip install kedro
from kedro.pipeline import Pipeline, Node

pipeline = Pipeline([Node(len, 'items', 'count')])
print(pipeline.describe())

Kedro examples

From open-source projects on GitHub

Manages workflows, schedules tasks, and resolves dependencies.

Downloads / mo
1.1M
Stars
18.8K
Last release
3.8.1
License
Apache-2.0

Quickstart

From README.md
$ pip install luigi
import luigi

target = luigi.LocalTarget('output.txt')
with target.open('w') as output:
    output.write('Hello\n')

Luigi examples

From open-source projects on GitHub

FAQ

dlt suits loading API and database data into typed warehouse tables with incremental state. PySpark suits transformations over data too large for one machine. Dagster, Prefect, and Apache Airflow suit scheduling the pipeline steps.

PySpark is the Python API for Apache Spark, the distributed data processing engine.

Kedro organizes reusable Python nodes, their dependencies, and data catalog entries into reproducible data and analytics pipelines.

dlt is an open-source Python library that loads data into typed destination tables. It keeps incremental state and schema controls and needs no backend to run.

Luigi is a Python package for workflow management, task scheduling, and dependency resolution.

For coding agents

Found your ETL library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official