dlt-runtime

0.24.1 · active · verified Fri Apr 17

dlt-runtime provides the `dlt` command-line interface (CLI) for the `dlt` data loading library. It allows users to initialize, run, deploy, and manage data pipelines built with `dlt`. The current version is 0.24.1, and it follows the frequent release cadence of the main `dlt` library, often with multiple minor releases per month.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to use the `dlt` CLI (provided by `dlt-runtime`) to initialize, configure, and run a data loading pipeline. It uses `duckdb` as an example destination. Remember to adapt the pipeline script for your specific data sources.

# 1. Initialize a dlt project (e.g., using duckdb destination)
dlt init duckdb_pipeline duckdb

# 2. Navigate into the created project directory
cd duckdb_pipeline

# 3. Modify the pipeline script (e.g., duckdb_pipeline.py) if needed
#    For example, to load data from a source:
#    from dlt import pipeline, dlt_source
#    from my_source import my_data_source
#    
#    @dlt_source
#    def my_source():
#        yield [1, 2, 3] # Replace with actual data loading
#
#    @pipeline(pipeline_name='duckdb_pipeline', destination='duckdb')
#    def my_pipeline():
#        my_source() # Load data from the source

# 4. Run the pipeline
dlt run duckdb_pipeline.py

# 5. Check the status or deploy the pipeline
dlt status

view raw JSON →