dlt is a Python library that extracts data from APIs, SQL, files, and Python iterables, infers schemas, and loads typed datasets into dozens of destinations.
Overview
dlt (data load tool) is an open-source Python library for moving data from messy sources into structured, typed datasets. You pip install it into existing code on laptops, notebooks, Airflow, Lambda, or agent environments without adopting a hosted platform.
It provides declarative REST API sources with pagination and auth, SQL reflection, cloud and local file ingestion, and direct loading from pandas, Polars, and Arrow tables. Schema inference, normalization of nested data, incremental loading, schema evolution, and schema contracts are built in.
Destinations are selected by name in the pipeline; dlt handles credentials from secrets or environment variables, DDL in the target dialect, staging where needed, and schema drift with ALTER TABLE. A Dataset API lets you reattach to pipelines and read tables as DataFrames or via SQL and Ibis transforms.
Documentation targets both human developers and LLM-assisted workflows, with cookbook examples and semantic versioning for releases.
Key features
- REST, SQL, and file extractors
- Schema inference and evolution
- Incremental and merge decorators
- Twenty-plus built-in destinations
- Dataset API for reading loads
- Ibis SQL transforms on tables
- Secrets and config injection
Use cases
- ELT pipelines from APIs to warehouses
- Notebook-based data ingestion
- Agent-generated data loading scripts