# Python ETL libraries

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

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [PySpark](#pyspark) | 48.4M | 44.6K | Oct 2026 | Apache-2.0 |
| [Dagster](#dagster) | 11.0M | 16.4K | Nov 2026 | Apache-2.0 |
| [Prefect](#prefect) | 8.8M | 24.2K | Nov 2026 | Apache-2.0 |
| [dlt](#dlt) | 6.7M | 6.1K | Oct 2026 | Apache-2.0 |
| [Apache Airflow](#apache-airflow) | 6.5M | 47.5K | Nov 2026 | Apache-2.0 |
| [Apache Beam](#apache-beam) | 3.8M | 8.7K | Oct 2026 | Apache-2.0 |
| [Kedro](#kedro) | 1.5M | 11.1K | Nov 2026 | Apache-2.0 |
| [Luigi](#luigi) | 1.1M | 18.8K | May 2026 | Apache-2.0 |

Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[PySpark](#pyspark) has the most monthly downloads in this comparison, at 48.4M, a count that covers all Spark work.

## Capabilities

| Library | Recurring schedules | Automatic work retries |
| --- | --- | --- |
| [PySpark](#pyspark) | Via plugin | Yes |
| [Dagster](#dagster) | Yes | Yes |
| [Prefect](#prefect) | Yes | Yes |
| [dlt](#dlt) | Via plugin | Yes |
| [Apache Airflow](#apache-airflow) | Yes | Yes |
| [Apache Beam](#apache-beam) | Via plugin | Yes |
| [Kedro](#kedro) | Via plugin | No |
| [Luigi](#luigi) | Via plugin | Yes |

## Libraries

### PySpark

[GitHub](https://github.com/apache/spark) · [PyPI](https://pypi.org/project/pyspark) · [Docs](https://github.com/apache/spark/tree/master/python)

Provides the Python API for Apache Spark.

- Downloads / mo: 48.4M
- Stars: 44.6K
- Last release: 4.3.0
- License: Apache-2.0
- Capabilities: [From the PySpark docs](https://github.com/apache/spark/tree/master/python)

```sh
pip install pyspark
```

**uber/petastorm** (1.9K stars)

[uber/petastorm](https://github.com/uber/petastorm) 

```python
def configure_spark(spark_session_builder, args):
    """Applies configuration to a ``SparkSession.Builder`` object.

    Call :func:`add_configure_spark_arguments` to add command line arguments to the argparser object.
    This function returns the ``SparkSession.Builder`` to allow chaining additional calls to the ``Builder``.

    >>> from pyspark.sql import SparkSession
    >>>
    >>> arg_parser = argparse.ArgumentParser()
    >>> add_configure_spark_arguments(arg_parser)
    >>> # ... more argparse arguments

    >>> args = arg_parser.parse_args()
    >>> spark = configure_spark(SparkSession.builder.appName('petastorm-copy'), args).getOrCreate()

    :param spark_session_builder: An instance of the ``pyspark.sql.session.SparkSession.Builder`` object.
    :param args: A value returned by ``argparser.ArgumentParser.parse_args()`` call.
    :return: ``SparkSession.Builder`` object.
    """
    if 'spark_session_config' not in args or 'master' not in args:
        raise RuntimeError('--spark-session-config and/or --master were not found in parsed arguments. '
                           'Call add_configure_spark_arguments() to add them.')

    spark_session_config = _cli_spark_session_config_to_dict(args.spark_session_config)

    for key, value in spark_session_config.items():
        spark_session_builder.config(key, value)

    if args.master:
        spark_session_builder.master(args.master)

    return spark_session_builder
```

[petastorm/tools/spark_session_cli.py](https://github.com/uber/petastorm/blob/01ba9cb7da8d8a6937e177aee39e241e10569d29/petastorm/tools/spark_session_cli.py) · [More projects using PySpark →](https://dashboard.exa.ai/playground/search?q=pyspark%20GitHub%20projects)

**Quickstart**

```python
from pyspark.sql import SparkSession

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

```

From [sql-getting-started.html](https://spark.apache.org/docs/4.3.0/sql-getting-started.html)

### Dagster

[GitHub](https://github.com/dagster-io/dagster) · [PyPI](https://pypi.org/project/dagster) · [Docs](https://docs.dagster.io)

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
- Capabilities: [From the Dagster docs](https://docs.dagster.io)

```sh
pip install dagster
```

**dagster-io/project-dagster-university** (148 stars)

[dagster-io/project-dagster-university](https://github.com/dagster-io/project-dagster-university) 

```python
@dg.asset(
    group_name="raw_files",
    kinds={"python"},
)
def taxi_zones_file() -> dg.MaterializeResult:
    """The raw CSV file for the taxi zones dataset. Sourced from the NYC Open Data portal."""
    raw_taxi_zones = requests.get(
        "https://community-engineering-artifacts.s3.us-west-2.amazonaws.com/dagster-university/data/taxi_zones.csv"
    )

    with open(
        constants.TAXI_ZONES_FILE_PATH, "wb", transport_params=smart_open_config
    ) as output_file:
        output_file.write(raw_taxi_zones.content)

    num_rows = len(pd.read_csv(BytesIO(raw_taxi_zones.content)))

    return dg.MaterializeResult(
        metadata={"Number of records": dg.MetadataValue.int(num_rows)}
    )
```

[dagster_university/dagster_and_dbt/src/dagster_and_dbt/defs/assets/trips.py](https://github.com/dagster-io/project-dagster-university/blob/96d8c8cc0c64a54d8fd2cff231af063383ec290a/dagster_university/dagster_and_dbt/src/dagster_and_dbt/defs/assets/trips.py) · [More projects using Dagster →](https://dashboard.exa.ai/playground/search?q=dagster%20GitHub%20projects)

**Quickstart**

```python
from dagster import asset, materialize

@asset
def greeting():
    return 'Hello'

result = materialize([greeting])

```

From [README.md](https://docs.dagster.io/api/dagster/assets)

### Prefect

[GitHub](https://github.com/PrefectHQ/prefect) · [PyPI](https://pypi.org/project/prefect) · [Docs](https://www.prefect.io/docs)

Orchestrates and manages workflows.

- Downloads / mo: 8.8M
- Stars: 24.2K
- Last release: 3.9.3
- License: Apache-2.0
- Capabilities: [From the Prefect docs](https://www.prefect.io/docs)

```sh
pip install prefect
```

**prefect-archive/prefect-recipes** (260 stars)

[prefect-archive/prefect-recipes](https://github.com/prefect-archive/prefect-recipes) 

```python
@flow(name="Update ABC Snowflake Table", retries=2, retry_delay_seconds=900)
def abc_elt_flow(deptCode_list: List[int]) -> None:

    """Flow which
    1. Calculates the last successful load of data into Snowflake in order
    to set the correct start_time.
    2. Extracts the data since the start_time from ABC API into a df.
    3. If new data from ABC API, loads df into Snowflake table.

    Args:
        - deptCode_list: A list of dept IDs each referenced as a
        deptCode.
    """

    target_table = "ABC_TABLE"

    start_tms = get_start_time(target_table)

    df = extract_data_from_api(start_tms, deptCode_list)

    if isinstance(df, DataFrame):

        # clean column names for Snowflake
        df.columns = [col.replace(".", "_").upper() for col in df.columns]

        # create ddl
        ddl = "".join([col + " STRING, " for col in df.columns])[:-2]

        load_data_into_snowflake(df, target_table, ddl)
```

[flows-advanced/etl/elt-with-snowflake.py](https://github.com/prefect-archive/prefect-recipes/blob/ebc974b22430f8fceda609dd0d17663ab2008c01/flows-advanced/etl/elt-with-snowflake.py) · [More projects using Prefect →](https://dashboard.exa.ai/playground/search?q=prefect%20GitHub%20projects)

**Quickstart**

```python
from prefect import task

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

result = add_integers(1, 2)

```

From [README.md](https://docs.prefect.io/v3/concepts/tasks)

### dlt

[GitHub](https://github.com/dlt-hub/dlt) · [PyPI](https://pypi.org/project/dlt) · [Docs](https://pypi.org/project/dlt/)

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
- Capabilities: [From the dlt docs](https://pypi.org/project/dlt/)

**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.

**Watch out for**

- **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.

```sh
pip install "dlt[duckdb]"
```

**dagster-io/dagster** (16.4K stars)

[dagster-io/dagster](https://github.com/dagster-io/dagster) 

```python
def _run(
    self,
    context: OpExecutionContext | AssetExecutionContext,
    dlt_source: DltSource,
    dlt_pipeline: Pipeline,
    dagster_dlt_translator: DagsterDltTranslator,
    **kwargs,
) -> Iterator[DltEventType]:
    """Runs the dlt pipeline with subset support.

    Args:
        context (Union[OpExecutionContext, AssetExecutionContext]): Asset or op execution context
        dlt_source (Optional[DltSource]): optional dlt source if resource is used from an `@op`
        dlt_pipeline (Optional[Pipeline]): optional dlt pipeline if resource is used from an `@op`
        dagster_dlt_translator (Optional[DagsterDltTranslator]): optional dlt translator if resource is used from an `@op`
        **kwargs (dict[str, Any]): Keyword args passed to pipeline `run` method

    Returns:
        DltEventIterator[DltEventType]: An iterator of MaterializeResult or AssetMaterialization

    """
    asset_key_dlt_source_resource_mapping = {
        dagster_dlt_translator.get_asset_spec(
            DltResourceTranslatorData(resource=dlt_source_resource, pipeline=dlt_pipeline)
        ).key: dlt_source_resource
        for dlt_source_resource in dlt_source.selected_resources.values()
    }

    # Filter sources by asset key sub-selection
    if context.is_subset:
        asset_key_dlt_source_resource_mapping = {
            asset_key: asset_dlt_source_resource
            for (
                asset_key,
                asset_dlt_source_resource,
            ) in asset_key_dlt_source_resource_mapping.items()
            if asset_key in context.selected_asset_keys
        }
        dlt_source = dlt_source.with_resources(
            *[
                dlt_source_resource.name
                for dlt_source_resource in asset_key_dlt_source_resource_mapping.values()
                if dlt_source_resource
            ]
        )

    # Dlt keeps some local state that interferes with next runs.
    # This is annoying when an asset fails and running a different one on the same pipeline
    # would just pick up the failing job and fail again.
    # When restore_from_destination is enabled (default), we can safely drop all local state
    # because it will be restored from the destination.
    # When restore_from_destination is disabled, we only drop pending packages to avoid
    # wiping incremental loading cursors that can't be recovered from the destination.
    if dlt_pipeline.config.restore_from_destination:
        dlt_pipeline.drop()
    else:
        dlt_pipeline.drop_pending_packages()

    load_info = dlt_pipeline.run(dlt_source, **kwargs)

    load_info.raise_on_failed_jobs()

    has_asset_def: bool = bool(context and context.has_assets_def)

    for (
        asset_key,
        dlt_source_resource,
    ) in asset_key_dlt_source_resource_mapping.items():
        metadata = self.extract_resource_metadata(
            context, dlt_source_resource, load_info, dlt_pipeline
        )

        if has_asset_def:
            yield MaterializeResult(asset_key=asset_key, metadata=metadata)

        else:
            yield AssetMaterialization(asset_key=asset_key, metadata=metadata)

```

[python_modules/libraries/dagster-dlt/dagster_dlt/resource.py](https://github.com/dagster-io/dagster/blob/b0099d257d666c1c95e8079254060d2ab2caa6f3/python_modules/libraries/dagster-dlt/dagster_dlt/resource.py#L240-L316) · [More projects using dlt →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20dlt%20for%20source%20subset%20loads%2C%20multiline%20CSV%20ingestion%20and%20pipeline%20input%20validation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import dlt

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

```

From [README.md](https://dlthub.com/docs/api_reference/dlt/pipeline/)

### Apache Airflow

[GitHub](https://github.com/apache/airflow) · [PyPI](https://pypi.org/project/apache-airflow) · [Docs](https://airflow.apache.org/docs/)

Authors, schedules, and monitors data pipelines in code.

- Downloads / mo: 6.5M
- Stars: 47.5K
- Last release: 3.4.0
- License: Apache-2.0
- Capabilities: [From the Apache Airflow docs](https://airflow.apache.org/docs/)

```sh
pip install "apache-airflow==3.4.0"
```

**astronomer/astronomer-cosmos** (1.3K stars)

[astronomer/astronomer-cosmos](https://github.com/astronomer/astronomer-cosmos) 

```python
def create_task_groups_based_on_folder(
    dag: DAG,
    node: DbtNode,
    parent_task_group: TaskGroup | None,
    task_groups: dict[str, TaskGroup],
    use_hierarchical_naming: bool = False,
) -> TaskGroup | None:
    """
    Generate the parent task group for the given node based on the node's file path. If a TaskGroup is given, it will
    be used as the parent group.

    When ``use_hierarchical_naming`` is True, groups are cached by their cumulative folder path, so that folders
    sharing a leaf name under different parents (e.g. ``staging/aurora`` and ``marts/aurora``) become distinct task
    groups instead of collapsing into the first one created. When False (default), groups are cached by the bare
    folder name, preserving the legacy behaviour — and the existing task-group ids that users may reference — at the
    cost of collapsing same-named folders. See https://github.com/astronomer/astronomer-cosmos/pull/2824.
    """
    task_group = None
    # Use ``Path.parts`` (OS-agnostic) rather than ``str(path).split("/")`` so folder grouping also
    # works on Windows, where ``str(Path(...))`` uses backslash separators.
    resource_file_path_parts = Path(node.original_file_path).parts[:-1]
    cumulative_path = ""
    for resource_file_path_part in resource_file_path_parts:
        cumulative_path = f"{cumulative_path}/{resource_file_path_part}" if cumulative_path else resource_file_path_part
        cache_key = cumulative_path if use_hierarchical_naming else resource_file_path_part
        if cache_key in task_groups:
            task_group = task_groups[cache_key]
        else:
            task_group = TaskGroup(dag=dag, group_id=resource_file_path_part, parent_group=parent_task_group)
            task_groups[cache_key] = task_group
        parent_task_group = task_group
    return task_group
```

[cosmos/airflow/graph.py](https://github.com/astronomer/astronomer-cosmos/blob/9bc1fad676f59aeaa629c390cfd27df639826c4a/cosmos/airflow/graph.py) · [More projects using Apache Airflow →](https://dashboard.exa.ai/playground/search?q=apache-airflow%20GitHub%20projects)

**Quickstart**

```python
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')

```

From [dags.rst](https://github.com/apache/airflow/blob/main/airflow-core/docs/core-concepts/dags.rst)

### Apache Beam

[GitHub](https://github.com/apache/beam) · [PyPI](https://pypi.org/project/apache-beam) · [Docs](https://beam.apache.org)

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
- Capabilities: [From the Apache Beam docs](https://beam.apache.org)

**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.

**Watch out for**

- **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.

```sh
pip install apache-beam
```

**tensorflow/tfx** (2.2K stars)

[tensorflow/tfx](https://github.com/tensorflow/tfx) 

```python
def expand(
    self,
    pipeline: beam.Pipeline) -> beam.pvalue.PCollection[tf.train.Example]:
  logging.info('Processing input csv data %s to TFExample.',
               self._csv_pattern)

  csv_files = fileio.glob(self._csv_pattern)
  if not csv_files:
    raise RuntimeError('Split pattern {} does not match any files.'.format(
        self._csv_pattern))

  column_names = io_utils.load_csv_column_names(csv_files[0])
  for csv_file in csv_files[1:]:
    if io_utils.load_csv_column_names(csv_file) != column_names:
      raise RuntimeError(
          'Files in same split {} have different header.'.format(
              self._csv_pattern))

  # Read each CSV file while maintaining order. This is done in order to group
  # together multi-line string fields.
  parsed_csv_lines = (
      pipeline
      | 'CreateFilenames' >> beam.Create(csv_files)
      | 'ReadFromText' >> beam.ParDo(_ReadCsvRecordsFromTextFile())
      | 'ParseCSVLine' >> beam.ParDo(csv_decoder.ParseCSVLine(delimiter=','))
      | 'ExtractParsedCSVLines' >> beam.Keys())
  column_infos = beam.pvalue.AsSingleton(
      parsed_csv_lines
      | 'InferColumnTypes' >> beam.CombineGlobally(
          csv_decoder.ColumnTypeInferrer(column_names, skip_blank_lines=True))
  )

  return (parsed_csv_lines
          |
          'ToTFExample' >> beam.ParDo(_ParsedCsvToTfExample(), column_infos))

```

[tfx/components/example_gen/csv_example_gen/executor.py](https://github.com/tensorflow/tfx/blob/d0064e2937ee3ba3854cd71f2a862588fd0f745d/tfx/components/example_gen/csv_example_gen/executor.py#L175-L209) · [More projects using Apache Beam →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20apache-beam%20for%20source%20subset%20loads%2C%20multiline%20CSV%20ingestion%20and%20pipeline%20input%20validation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import apache_beam as beam

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

```

From [wordcount_minimal.py](https://beam.apache.org/documentation/programming-guide/)

### Kedro

[GitHub](https://github.com/kedro-org/kedro) · [PyPI](https://pypi.org/project/kedro) · [Docs](https://docs.kedro.org)

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
- Capabilities: [From the Kedro docs](https://docs.kedro.org)

**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.

**Watch out for**

- **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.

```sh
pip install kedro
```

**Galileo-Galilei/kedro-mlflow** (238 stars)

[Galileo-Galilei/kedro-mlflow](https://github.com/Galileo-Galilei/kedro-mlflow) 

```python
def _check_consistency(self) -> None:
    inference_parameters = {
        input for input in self.inference.inputs() if input.startswith("params:")
    }

    free_inputs_set = (
        self.inference.inputs()
        - {self.input_name}
        - self.all_outputs()
        - self.inputs()
        - inference_parameters  # it is allowed to pass parameters: they will be automatically persisted by the hook
    )

    if len(free_inputs_set) > 0:
        input_set_txt = "\n     - ".join(free_inputs_set)
        raise KedroMlflowPipelineMLError(
            "The following inputs are free for the inference pipeline:\n"
            f"    - {input_set_txt}."
            " \nNo free input is allowed."
            " Please make sure that 'inference.inputs()' are all"
            " in 'training.all_outputs() + training.inputs()'"
            "except 'input_name' and parameters which starts with 'params:'."
        )

```

[kedro_mlflow/pipeline/pipeline_ml.py](https://github.com/Galileo-Galilei/kedro-mlflow/blob/f4aa0a4d0aade5dc1824fa690f14877f3d2ed22d/kedro_mlflow/pipeline/pipeline_ml.py#L144-L166) · [More projects using Kedro →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20kedro%20for%20source%20subset%20loads%2C%20multiline%20CSV%20ingestion%20and%20pipeline%20input%20validation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from kedro.pipeline import Pipeline, Node

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

```

From [pipeline_introduction.md](https://docs.kedro.org/en/stable/build/pipeline_introduction/)

### Luigi

[GitHub](https://github.com/spotify/luigi) · [PyPI](https://pypi.org/project/luigi) · [Docs](https://pypi.org/project/luigi/)

Manages workflows, schedules tasks, and resolves dependencies.

- Downloads / mo: 1.1M
- Stars: 18.8K
- Last release: 3.8.1
- License: Apache-2.0
- Capabilities: [From the Luigi docs](https://pypi.org/project/luigi/)

```sh
pip install luigi
```

**m3dev/gokart** (344 stars)

[m3dev/gokart](https://github.com/m3dev/gokart) 

```python
@staticmethod
def get_object_storage_target(path: str, format: Format) -> luigi.target.FileSystemTarget:
    if path.startswith('s3://'):
        try:
            import boto3  # noqa: F401  # pyright: ignore[reportUnusedImport]
        except ImportError:
            raise ImportError('S3 support requires additional dependencies. Install them with: pip install gokart[s3]') from None

        import luigi.contrib.s3

        from gokart.s3_config import S3Config

        return luigi.contrib.s3.S3Target(path, client=S3Config().get_s3_client(), format=format)
    elif path.startswith('gs://'):
        try:
            import googleapiclient  # noqa: F401  # pyright: ignore[reportUnusedImport]
        except ImportError:
            raise ImportError('GCS support requires additional dependencies. Install them with: pip install gokart[gcs]') from None

        import luigi.contrib.gcs

        from gokart.gcs_config import GCSConfig

        return luigi.contrib.gcs.GCSTarget(path, client=GCSConfig().get_gcs_client(), format=format)
    else:
        raise
```

[gokart/object_storage.py](https://github.com/m3dev/gokart/blob/1059892f291f20672c08bee0d7064d63c52ea18c/gokart/object_storage.py) · [More projects using Luigi →](https://dashboard.exa.ai/playground/search?q=luigi%20GitHub%20projects)

**Quickstart**

```python
import luigi

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

```

From [README.md](https://luigi.readthedocs.io/en/stable/api/luigi.local_target.html)

## FAQ

### Which Python ETL library should I use?

[dlt](#dlt) suits loading API and database data into typed warehouse tables with incremental state. [PySpark](#pyspark) suits transformations over data too large for one machine. [Dagster](#dagster), [Prefect](#prefect), and [Apache Airflow](#apache-airflow) suit scheduling the pipeline steps.

### What is PySpark?

[PySpark](#pyspark) is the Python API for Apache Spark, the distributed data processing engine.

### What is Kedro?

[Kedro](#kedro) organizes reusable Python nodes, their dependencies, and data catalog entries into reproducible data and analytics pipelines.

### What is dlt in Python?

[dlt](#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.

### What is Luigi?

[Luigi](#luigi) is a Python package for workflow management, task scheduling, and dependency resolution.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best Python ETL libraries dlt petl Apache Beam Kedro data pipeline code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
