dagster-datacontract 0.4.1__py3-none-any.whl → 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dagster_datacontract-0.4.1.dist-info → dagster_datacontract-0.5.0.dist-info}/METADATA +6 -6
- {dagster_datacontract-0.4.1.dist-info → dagster_datacontract-0.5.0.dist-info}/RECORD +5 -5
- {dagster_datacontract-0.4.1.dist-info → dagster_datacontract-0.5.0.dist-info}/WHEEL +1 -1
- {dagster_datacontract-0.4.1.dist-info → dagster_datacontract-0.5.0.dist-info}/licenses/LICENSE +0 -0
- {dagster_datacontract-0.4.1.dist-info → dagster_datacontract-0.5.0.dist-info}/top_level.txt +0 -0
@@ -1,13 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: dagster-datacontract
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.5.0
|
4
4
|
Summary: Load metadata and asset check spesifications from data contracts.
|
5
5
|
Author-email: Fredrik Bakken <fredrik@dataheim.io>
|
6
6
|
Requires-Python: >=3.10
|
7
7
|
Description-Content-Type: text/markdown
|
8
8
|
License-File: LICENSE
|
9
9
|
Requires-Dist: dagster>=1.10.10
|
10
|
-
Requires-Dist: dagster-dg>=0.26.11
|
11
10
|
Requires-Dist: datacontract-cli>=0.10.24
|
12
11
|
Requires-Dist: loguru>=0.7.3
|
13
12
|
Dynamic: license-file
|
@@ -24,9 +23,9 @@ Install `dagster-datacontract` using [`uv`](https://github.com/astral-sh/uv):
|
|
24
23
|
uv add dagster-datacontract
|
25
24
|
```
|
26
25
|
|
27
|
-
##
|
26
|
+
## Example
|
28
27
|
|
29
|
-
The following example can be found inside the [examples
|
28
|
+
The following example can be found inside the [examples](https://github.com/dataheim-io/dagster-datacontract/tree/main/examples)-directory:
|
30
29
|
|
31
30
|
```python
|
32
31
|
from datetime import timedelta
|
@@ -40,10 +39,11 @@ from datacontract.data_contract import DataContract
|
|
40
39
|
from dagster_datacontract import DataContractLoader
|
41
40
|
|
42
41
|
asset_name = "yellow_taxi_trip_records"
|
42
|
+
examples_path = Path(__file__).resolve().parent.parent
|
43
43
|
data_contract = DataContractLoader(
|
44
44
|
asset_name=asset_name,
|
45
45
|
data_contract=DataContract(
|
46
|
-
data_contract_file="
|
46
|
+
data_contract_file=str(examples_path / "datacontracts" / "datacontract.yml"),
|
47
47
|
server="production",
|
48
48
|
),
|
49
49
|
)
|
@@ -60,7 +60,7 @@ data_contract = DataContractLoader(
|
|
60
60
|
def yellow_taxi_trip_records(
|
61
61
|
context: dg.AssetExecutionContext,
|
62
62
|
) -> None:
|
63
|
-
download_path = "
|
63
|
+
download_path = examples_path.parent.parent / "data"
|
64
64
|
Path(download_path).mkdir(parents=True, exist_ok=True)
|
65
65
|
|
66
66
|
url = "https://d37ci6vzurychx.cloudfront.net/trip-data/yellow_tripdata_2025-01.parquet"
|
@@ -11,8 +11,8 @@ dagster_datacontract/tags/tags.py,sha256=aZ_HTkc-vjJ_rofT32fT_zrLCt9x1ZGn8XoihhO
|
|
11
11
|
dagster_datacontract/utils/__init__.py,sha256=GSQ2Zry9pKlLhWI5Vjoj3X7iZiEgt-SjqnQRwfplbHM,231
|
12
12
|
dagster_datacontract/utils/combine_strings.py,sha256=nWy3unX6yuPi8YmvDTl_mO10K6MbJP8cxQWPOMDj6G4,987
|
13
13
|
dagster_datacontract/utils/paths.py,sha256=Rh-l5GSmxZwhIVQ_aBJPHTKU5afEma8hlA5RT31EhbY,1611
|
14
|
-
dagster_datacontract-0.
|
15
|
-
dagster_datacontract-0.
|
16
|
-
dagster_datacontract-0.
|
17
|
-
dagster_datacontract-0.
|
18
|
-
dagster_datacontract-0.
|
14
|
+
dagster_datacontract-0.5.0.dist-info/licenses/LICENSE,sha256=9ULsEM1ICzCaGoso40plwO-d_SCQ7nsU6ZA4xgfaRq8,11338
|
15
|
+
dagster_datacontract-0.5.0.dist-info/METADATA,sha256=VpeK2W62lScNKmhpS7J_UICAJL-DMdU23ajf_59c6T0,3126
|
16
|
+
dagster_datacontract-0.5.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
17
|
+
dagster_datacontract-0.5.0.dist-info/top_level.txt,sha256=_HUQ6OJ50Q0VZxEkdocTtxk1QkJpztb1QY7A0rcvtCE,21
|
18
|
+
dagster_datacontract-0.5.0.dist-info/RECORD,,
|
{dagster_datacontract-0.4.1.dist-info → dagster_datacontract-0.5.0.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|