dagster-omni 0.27.13__py3-none-any.whl → 0.27.15__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.

Potentially problematic release.


This version of dagster-omni might be problematic. Click here for more details.

dagster_omni/component.py CHANGED
@@ -7,6 +7,11 @@ import dagster as dg
7
7
  from dagster._annotations import preview
8
8
  from dagster._core.errors import DagsterInvalidDefinitionError
9
9
  from dagster.components.component.state_backed_component import StateBackedComponent
10
+ from dagster.components.utils.defs_state import (
11
+ DefsStateConfig,
12
+ DefsStateConfigArgs,
13
+ ResolvedDefsStateConfig,
14
+ )
10
15
  from pydantic import Field
11
16
 
12
17
  from dagster_omni.objects import OmniDocument, OmniQuery, OmniWorkspaceData
@@ -28,6 +33,11 @@ class OmniComponent(StateBackedComponent, dg.Model, dg.Resolvable):
28
33
  default=None,
29
34
  description="Defines how to translate an Omni object into an AssetSpec object.",
30
35
  )
36
+ defs_state: ResolvedDefsStateConfig = DefsStateConfigArgs.versioned_state_storage()
37
+
38
+ @property
39
+ def defs_state_config(self) -> DefsStateConfig:
40
+ return DefsStateConfig.from_args(self.defs_state, default_key=self.__class__.__name__)
31
41
 
32
42
  async def write_state_to_path(self, state_path: Path) -> None:
33
43
  """Fetch documents from Omni API and write state to path."""
dagster_omni/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.27.13"
1
+ __version__ = "0.27.15"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dagster_omni
3
- Version: 0.27.13
3
+ Version: 0.27.15
4
4
  Summary: Package for integrating Omni with Dagster.
5
5
  Home-page: https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-omni
6
6
  Author: Dagster Labs
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.13
14
14
  Classifier: License :: OSI Approved :: Apache Software License
15
15
  Classifier: Operating System :: OS Independent
16
16
  License-File: LICENSE
17
- Requires-Dist: dagster==1.11.13
17
+ Requires-Dist: dagster==1.11.15
18
18
  Requires-Dist: aiohttp
19
19
  Dynamic: author
20
20
  Dynamic: author-email
@@ -1,12 +1,12 @@
1
1
  dagster_omni/__init__.py,sha256=6QUEBSqA3cRAb4kSWqkdvkUiKMbk0NY1YFdJPW0JEkQ,249
2
- dagster_omni/component.py,sha256=5hvC2tKkr7W-ULy7cFJ2yjZ1pjRCfTDJUHZ857DICPQ,5347
2
+ dagster_omni/component.py,sha256=DMyfsfywAfa4CI8trBRGdpIUxVgTvHbK5P00v5cn9HE,5724
3
3
  dagster_omni/objects.py,sha256=4cknF4xIljTYYWYCOKe8Tkaled0_Gq9u9g8Ze_mYnyQ,4960
4
4
  dagster_omni/py.typed,sha256=mDShSrm8qg9qjacQc2F-rI8ATllqP6EdgHuEYxuCXZ0,7
5
5
  dagster_omni/translation.py,sha256=ExEc_WU7qbnJ5fpWUdK_TSGRJQ-a2H13apqwM1LvdaY,4820
6
- dagster_omni/version.py,sha256=rEMnLvYM5w34kWC8YIc4QXFgiezRHgYr2j_AJji8ui8,24
6
+ dagster_omni/version.py,sha256=nh4rkWKwcS4_2NEvEKWozrztgCUEn_1ODIolwNpGd8g,24
7
7
  dagster_omni/workspace.py,sha256=C2fjZIw64TEKWRtpzt6rRm5MSY4RKCXJW22ANJBjY-o,5893
8
- dagster_omni-0.27.13.dist-info/licenses/LICENSE,sha256=lY5yc1KHX4HoXjlWnIPGcCAsnNney2rb8M8ccT6NzRQ,11347
9
- dagster_omni-0.27.13.dist-info/METADATA,sha256=hLiz4R1S_mo3kFujzCMCI1J0MDIMnLT85CODfJGe7Ts,883
10
- dagster_omni-0.27.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- dagster_omni-0.27.13.dist-info/top_level.txt,sha256=FJO_1xyIWRN_nGhCDQPirG5NrEsB-wPR7eY5puEgJes,13
12
- dagster_omni-0.27.13.dist-info/RECORD,,
8
+ dagster_omni-0.27.15.dist-info/licenses/LICENSE,sha256=lY5yc1KHX4HoXjlWnIPGcCAsnNney2rb8M8ccT6NzRQ,11347
9
+ dagster_omni-0.27.15.dist-info/METADATA,sha256=mYk3jbNbpf6AxHyR25eXa4O5Pa4P-t7kQG7hciEevsk,883
10
+ dagster_omni-0.27.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ dagster_omni-0.27.15.dist-info/top_level.txt,sha256=FJO_1xyIWRN_nGhCDQPirG5NrEsB-wPR7eY5puEgJes,13
12
+ dagster_omni-0.27.15.dist-info/RECORD,,