data load tool (dlt) — the open-source Python library that automates all your tedious data loading tasks
Be it a Google Colab notebook, AWS Lambda function, an Airflow DAG, your local laptop, or an AI coding agent—dlt can be dropped in anywhere.
🚀 Join our thriving community of likeminded developers and build the future together!
We launched dltHub in March 2026. You can now run your dlt pipelines on a managed, agent-native platform with transformations, data quality and observability built in. Learn more or deploy your first pipeline.
Installation
dlt supports Python 3.10 through Python 3.14. Note that some optional extras are not yet available for Python 3.14, so support for this version is considered experimental.
pip install dlt
Add the extras you need for your sources and destinations, for example:
pip install "dlt[duckdb]" # local DuckDB destination
pip install "dlt[bigquery]" # or snowflake, postgres, redshift, databricks, athena, ...
pip install "dlt[s3]" # or gs, az for cloud filesystems
pip install "dlt[sql_database]" # read from any SQL database
pip install "dlt[hub]" # data quality, transformations, and AI (see below)
dlt loads data from messy, often unstructured sources into well-structured, typed datasets. It's a library, not a platform — you pip install it into your existing code and keep your workflow and the other tools you already use. No black boxes: clean Pythonic interfaces, human-readable file formats, schemas you can inspect, no hidden side effects.
dlt and its docs are built from the ground up for LLMs and coding agents. Pair the typed, declarative primitives below with dlthub.com/context and the LLM-native workflow to go from prompt to working pipeline — across 5000+ sources — often in a single shot.
Extract from any source
REST APIs — describe the endpoints declaratively; filter, map, and flatten records right at the source (docs):
The same resource runs anywhere. Change the destination string and dlt takes care of credentials, DDL in the target dialect, staging, and schema drift:
Decorators let you declare what you want — incremental loading, merge strategies, schema contracts, column hints — instead of hand-rolling it. Every knob can be overridden at runtime (docs):
import dlt
@dlt.resource(
primary_key="id",
write_disposition="merge", # upsert on the primary key
columns={"artist": {"x-annotation-pii": False}}, # type and annotate columns
schema_contract={"columns": "freeze"}, # reject unexpected columns
)
def tracks(
updated_at=dlt.sources.incremental("updated_at"), # load only new/changed rows
):
yield from fetch_tracks(since=updated_at.last_value)
@dlt.source
def spotify(api_key: str = dlt.secrets.value):
return tracks(), playlists() # group one or more resources behind shared config/auth
Lift any loaded table into an Ibis expression, compose group-bys, joins, and window functions in Python, and let dlt compile it to SQL in the destination's dialect. Nothing runs until you ask for the result:
import ibis
tracks = pipeline.dataset().tracks.to_ibis()
streams_by_artist = (
tracks
.group_by("artist")
.aggregate(total_streams=ibis._.streams.sum())
)
streams_by_artist.to_pyarrow() # compiles to SQL and runs on the destination
dlt follows the semantic versioning with the MAJOR.MINOR.PATCH pattern.
major means breaking changes and removed deprecations
minor new features, sometimes automatic migrations
patch bug fixes
We suggest that you allow only patch level updates automatically using the Compatible Release Specifier. For example dlt~=1.23.0 allows only versions >=1.23.0 and less than <1.24.0
Please also see our release notes for notable changes between versions.
Get Involved
The dlt project is quickly growing, and we're excited to have you join our community! Here's how you can get involved:
Connect with the Community: Join other dlt users and contributors on our Slack
Report issues and suggest features: Please use the GitHub Issues to report bugs or suggest new features. Before creating a new issue, make sure to search the tracker for possible duplicates and add a comment if you find one.
Track progress of our work and our plans: Please check out our public Github project
Improve documentation: Help us enhance the dlt documentation.
📣 New destinations are unlikely to be merged due to high maintenance cost (but we are happy to improve SQLAlchemy destination to handle more dialects)
Significant changes require tests and docs and in many cases writing tests will be more laborious than writing code
Bugfixes and improvements are welcome! You'll get help with writing tests and docs + a decent review.
Run it in production with dltHub
dltHub is an agent-native data engineering platform built around dlt. It uses the same sources, destinations, and pipelines you already write, and adds what you need to run them in production:
Agent-native development: build pipelines from prompts with Claude Code, Codex, or Cursor, with per-source context files and scaffolding commands
Managed infrastructure for pipelines, notebooks, and data apps, with dev and prod profiles and one-command deploys
Observability: monitor runs and troubleshoot from the workspace dashboard
dlt stays open source under the Apache 2.0 license. dltHub is a commercial product governed by the dltHub License.
Deploy your first pipeline → One command sets up a workspace, connects it to dltHub, and has your coding agent deploy and run a sample pipeline:
uvx dlthub-start@latest
Sponsors
Blacksmith is a drop-in replacement for GitHub-hosted runners that speed up our CI/CD pipelines by 2x and up to 75% cheaper. We're grateful to Blacksmith for sponsoring us with free CI/CD minutes--which helps us keep builds fast and our costs lower.
Meltano is your CLI for ELT+: Open Source, Flexible, and Scalable. Move, transform, and test your data with confidence using a streamlined data engineering workflow you’ll love.