File tree Expand file tree Collapse file tree
opendata_stack_platform_project/opendata_stack_platform Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 mem_io_manager ,
88)
99from dagster_aws .s3 import S3Resource
10- from dagster_embedded_elt . dlt import DagsterDltResource
10+ from dagster_dlt import DagsterDltResource
1111
1212from opendata_stack_platform import assets
1313from opendata_stack_platform .dbt import assets as dbt_assets
Original file line number Diff line number Diff line change 11from collections .abc import Iterable
22
33from dagster import AssetExecutionContext , AssetKey
4- from dagster_embedded_elt . dlt import (
4+ from dagster_dlt import (
55 DagsterDltResource ,
66 DagsterDltTranslator ,
77 dlt_assets ,
Original file line number Diff line number Diff line change 11"""Utility functions for handling paths in the project."""
22
33import os
4+
45from pathlib import Path
56
67
78def get_project_root () -> Path :
89 """Get the absolute path to the project root directory.
9-
10+
1011 Returns:
1112 Path: Absolute path to the project root directory
1213 """
@@ -17,13 +18,13 @@ def get_project_root() -> Path:
1718
1819def get_duckdb_path () -> Path :
1920 """Get the absolute path to the DuckDB database file.
20-
21+
2122 Returns:
2223 Path: Absolute path to the DuckDB database file
2324 """
2425 # First try environment variable
2526 if db_path := os .getenv ("DUCKDB_DATABASE" ):
2627 return Path (db_path )
27-
28+
2829 # Default to data/nyc_database.duckdb in project root
2930 return get_project_root () / "data" / "nyc_database.duckdb"
Original file line number Diff line number Diff line change 11polars == 1.22.0
22dagster == 1.10.1
33dagster-webserver == 1.10.1
4- dagster-embedded-elt == 0.26.1
4+ dagster-dlt == 0.26.1
55dagster-polars == 0.26.1
66dagster-aws == 0.26.1
77dagster-duckdb == 0.26.1
You can’t perform that action at this time.
0 commit comments