dlt
dlt is an open-source python-first scalable data loading library that does not require any backend to run.
What it is and what it does
dlt is a Python library that handles the repetitive parts of data pipelines: extracting from REST APIs, SQL databases, cloud storage, or DataFrames; inferring and normalizing schemas automatically; and loading into any of 20+ destinations. You define sources declaratively using decorators or configuration objects, then point a pipeline at a destination—dlt manages credentials, DDL, type mapping, staging, and schema drift for you. It's a library, not a platform: you pip-install it into your existing code and keep your workflow intact.
The package supports incremental loading (load only new or changed rows), merge strategies (upsert on primary key), schema contracts (freeze, evolve, or discard unexpected data), and secrets injection from environment variables or config files. It works anywhere Python runs—Colab notebooks, AWS Lambda, Airflow DAGs, local scripts, or AI coding agents. The Dataset API lets you reconnect to a pipeline by name and read tables back in the format your tool needs (DataFrame, SQL query, etc.).
Use it for:
- Load REST API data into DuckDB or Snowflake with automatic pagination, filtering, and schema inference.
- Replicate tables from a MySQL or PostgreSQL database into a data warehouse with incremental updates.
- Ingest CSV or Parquet files from S3, GCS, or Azure into a destination, handling schema drift automatically.
- Build an Airflow DAG that extracts from multiple sources, normalizes nested data, and upserts into BigQuery.
- Merge pandas or Polars DataFrames into a warehouse with zero-copy Arrow support and type safety.
- Enforce data quality at the gate using schema contracts that reject or adapt unexpected columns and types.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
dlt automates extraction, schema inference, and loading of data from REST APIs, SQL databases, files, and DataFrames into 20+ destinations (DuckDB, Snowflake, BigQuery, Postgres, etc.) with declarative resource definitions and zero-copy Arrow support.
Yes. dlt is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It solves a real problem—automating tedious data loading—with a clean, Pythonic API and support for many sources and destinations. The declarative resource model and schema inference reduce boilerplate significantly. Start with a simple REST API or SQL database extraction to evaluate fit.
Install
dlt on PyPI
pip
pip install dltuv
uv add dltpoetry
poetry add dltInstalling dlt
Before you install
Low install friction with a pure-wheel distribution and 26 runtime dependencies already packaged. Active maintenance—last release 3 days ago, repository at 5738 stars, continuous commits. Supports Python 3.10 through 3.14, though 3.14 support is noted as experimental.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions. No licensing concerns for most use cases.
Quickstart
pip install dlt
import dlt
from dlt.sources.rest_api import rest_api_source
source = rest_api_source({
"client": {"base_url": "https://pokeapi.co/api/v2/"},
"resources": [{"name": "pokemon", "endpoint": {"path": "pokemon"}}],
})
pipeline = dlt.pipeline(pipeline_name="pokemon", destination="duckdb", dataset_name="pokemon_data")
print(pipeline.run(source))
Requires Python 3.10 or later. Optional extras (e.g., dlt[duckdb], dlt[bigquery]) needed for specific destinations.
Verify before relying
- Whether the 5000+ sources mentioned in the description are pre-built integrations or community-contributed templates.
- Performance characteristics and scalability limits for large datasets or high-frequency incremental loads.
- Maturity and stability of Python 3.14 experimental support in production environments.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 26 — click, fsspec, gitpython, giturlparse, humanize, jsonpath-ng, orjson, packaging, pathvalidate, pendulum, pluggy, pytz, pywin32, pyyaml, requests, requirements-parser, rich-argparse, semver, setuptools, simplejson, sqlglot, tenacity, tomlkit, typing-extensions, tzdata, win-precise-time |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,210,929/month — #1,652 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dlt-1.30.0-py3-none-any.whl
Keywords: etl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
definite-sdkA Python client for the Definite API that…
permissive · top 15,000 on PyPI
intakeIntake provides a declarative data catalog…
permissive · top 5,000 on PyPI
dagster-dltIntegrates dlt data loading into Dagster…
permissive · top 15,000 on PyPI
substraitProvides a Python interface to construct,…
permissive · top 15,000 on PyPI
databricks-dltProvides type hints, API specs, and IDE…
unclear · top 5,000 on PyPI
dbt-duckdbdbt-duckdb connects dbt (a SQL/Python…
permissive · top 5,000 on PyPI
petlpetl extracts, transforms, and loads tables of…
permissive · top 5,000 on PyPI
bigquery-schema-generatorGenerates BigQuery table schemas from complete…
permissive · top 15,000 on PyPI
duckdbDuckDB is an in-process SQL database engine…
permissive · top 1,000 on PyPI
ingestringestr is a command-line tool that copies data…
permissive · top 15,000 on PyPI