diff --git a/docs/examples/_template/.dlt/config.toml b/docs/examples/_template/.dlt/config.toml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/_template/.dlt/example.secrets.toml b/docs/examples/_template/.dlt/example.secrets.toml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/_template/__init__.py b/docs/examples/_template/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs/examples/_template/_template.py b/docs/examples/_template/_template.py new file mode 100644 index 0000000000..cdd38f8204 --- /dev/null +++ b/docs/examples/_template/_template.py @@ -0,0 +1,30 @@ +""" +--- +title: Example Template +description: Add desciption here +keywords: [example] +--- + +This is a template for a new example. This text will show up in the docs. + +With this example you will learn to: + +* One +* two +* Three + +""" + +import dlt + +if __name__ == "__main__": + # run a pipeline + pipeline = dlt.pipeline( + pipeline_name="example_pipeline", destination="duckdb", dataset_name="example_data" + ) + # Extract, normalize, and load the data + load_info = pipeline.run([1, 2, 3], table_name="player") + print(load_info) + + # make sure nothing failed + load_info.raise_on_failed_jobs()