id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21,100 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/stack.py | dagster._config.stack.EvaluationStackMapValueEntry | from dagster._record import record
@record
class EvaluationStackMapValueEntry(EvaluationStackEntry):
map_key: object | @record
class EvaluationStackMapValueEntry(EvaluationStackEntry):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,101 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/stack.py | dagster._config.stack.EvaluationStackPathEntry | from dagster._record import record
@record
class EvaluationStackPathEntry(EvaluationStackEntry):
field_name: str | @record
class EvaluationStackPathEntry(EvaluationStackEntry):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,102 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/stack.py | dagster._config.stack.EvaluationStackRoot | from typing import Optional
from dagster._record import record
@record
class EvaluationStackRoot(EvaluationStackEntry):
parent: Optional['EvaluationStackEntry'] = None
def iter_entries(self):
yield from [] | @record
class EvaluationStackRoot(EvaluationStackEntry):
def iter_entries(self):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 8 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
21,103 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/traversal_context.py | dagster._config.traversal_context.ContextData | from dagster._config.snap import ConfigFieldSnap, ConfigSchemaSnapshot, ConfigTypeSnap
from dagster._record import record
from dagster._config.stack import EvaluationStackEntry
@record
class ContextData:
config_schema_snapshot: ConfigSchemaSnapshot
config_type_snap: ConfigTypeSnap
stack: EvaluationStackEnt... | @record
class ContextData:
@property
def config_type_key(self) -> str:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 2 | 1 | 0 | 1 | 1 | 8 | 1 | 7 | 3 | 4 | 0 | 6 | 2 | 4 | 1 | 0 | 0 | 1 |
21,104 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/traversal_context.py | dagster._config.traversal_context.TraversalContext | import dagster._check as check
from dagster._config.stack import EvaluationStackEntry
from dagster._config.config_type import ConfigType
from dagster._record import record
from dagster._config.field import Field
@record
class TraversalContext(ContextData):
config_type: ConfigType
do_post_process: bool
@st... | @record
class TraversalContext(ContextData):
@staticmethod
def from_config_type(config_type: ConfigType, stack: EvaluationStackEntry, do_post_process: bool) -> 'TraversalContext':
pass
def for_array(self, index: int) -> 'TraversalContext':
pass
def for_map(self, key: object) -> 'Trave... | 9 | 0 | 10 | 0 | 10 | 1 | 1 | 0.05 | 1 | 6 | 2 | 0 | 5 | 2 | 6 | 7 | 69 | 6 | 63 | 14 | 51 | 3 | 16 | 7 | 9 | 1 | 1 | 0 | 6 |
21,105 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/traversal_context.py | dagster._config.traversal_context.ValidationContext | import dagster._check as check
from dagster._config.snap import ConfigFieldSnap, ConfigSchemaSnapshot, ConfigTypeSnap
from dagster._record import record
@record
class ValidationContext(ContextData):
def for_field_snap(self, field_snap: ConfigFieldSnap) -> 'ValidationContext':
check.inst_param(field_snap, ... | @record
class ValidationContext(ContextData):
def for_field_snap(self, field_snap: ConfigFieldSnap) -> 'ValidationContext':
pass
def for_array(self, index: int) -> 'ValidationContext':
pass
def for_map_key(self, key: object) -> 'ValidationContext':
pass
def for_map_value(self... | 8 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 6 | 1 | 6 | 7 | 54 | 5 | 49 | 9 | 42 | 0 | 17 | 8 | 10 | 1 | 1 | 0 | 6 |
21,106 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/asset_graph_view/asset_graph_view.py | dagster._core.asset_graph_view.asset_graph_view.AssetGraphView | from dagster._core.definitions.partitions.context import PartitionLoadingContext, use_partition_loading_context
from dagster._core.definitions.partitions.utils import MultiPartitionKey, PartitionDimensionDefinition, TimeWindow, get_time_partitions_def
from dagster._core.definitions.partitions.definition import MultiPar... |
class AssetGraphView(LoadingContext):
'''The Asset Graph View. It is a view of the asset graph from the perspective of a specific
temporal context.
If the user wants to get a new view of the asset graph with a new effective date or last event
id, they should create a new instance of an AssetGraphView. ... | 90 | 6 | 13 | 1 | 12 | 1 | 2 | 0.09 | 1 | 32 | 20 | 0 | 48 | 5 | 49 | 49 | 787 | 89 | 638 | 234 | 474 | 60 | 252 | 138 | 184 | 6 | 1 | 3 | 96 |
21,107 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/asset_graph_view/bfs.py | dagster._core.asset_graph_view.bfs.AssetGraphViewBfsFilterConditionResult | from typing import TYPE_CHECKING, Callable, NamedTuple
from collections.abc import Iterable, Sequence
from dagster._core.definitions.assets.graph.asset_graph_subset import AssetGraphSubset
class AssetGraphViewBfsFilterConditionResult(NamedTuple):
passed_asset_graph_subset: AssetGraphSubset
excluded_asset_graph... |
class AssetGraphViewBfsFilterConditionResult(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,108 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/asset_graph_view/bfs.py | dagster._core.asset_graph_view.bfs.ToposortedPriorityQueue | from typing import TYPE_CHECKING, Callable, NamedTuple
from heapq import heapify, heappop, heappush
import dagster._check as check
from dagster._core.definitions.assets.graph.asset_graph_subset import AssetGraphSubset
from dagster._core.asset_graph_view.asset_graph_view import AssetGraphView
from dagster._core.asset_gr... |
class ToposortedPriorityQueue:
'''Queue that returns parents before their children.'''
@total_ordering
class QueueItem(NamedTuple):
def __eq__(self, other: object) -> bool:
pass
def __lt__(self, other: object) -> bool:
pass
def __init__(self, asset_gra... | 10 | 1 | 11 | 1 | 9 | 1 | 1 | 0.07 | 0 | 7 | 3 | 0 | 5 | 4 | 5 | 5 | 91 | 16 | 70 | 28 | 55 | 5 | 37 | 21 | 28 | 2 | 0 | 1 | 10 |
21,109 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/asset_graph_view/entity_subset.py | dagster._core.asset_graph_view.entity_subset.EntitySubset | from dagster._core.asset_graph_view.serializable_entity_subset import EntitySubsetValue, SerializableEntitySubset
from dagster import _check as check
from dagster._core.definitions.asset_key import AssetCheckKey, EntityKey, T_EntityKey
from dagster._core.definitions.events import AssetKey, AssetKeyPartitionKey
from dag... |
class EntitySubset(Generic[T_EntityKey]):
'''An EntitySubset represents a subset of a given EntityKey tied to a particular instance of an
AssetGraphView.
'''
def __init__(self, asset_graph_view: 'AssetGraphView', key: T_EntityKey, value: _ValidatedEntitySubsetValue):
pass
@property
def... | 30 | 1 | 4 | 0 | 4 | 0 | 1 | 0.03 | 1 | 8 | 2 | 0 | 20 | 1 | 20 | 22 | 115 | 22 | 90 | 44 | 53 | 3 | 61 | 28 | 40 | 4 | 1 | 1 | 26 |
21,110 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/asset_graph_view/entity_subset.py | dagster._core.asset_graph_view.entity_subset._ValidatedEntitySubsetValue | from dagster._core.asset_graph_view.serializable_entity_subset import EntitySubsetValue, SerializableEntitySubset
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, Literal, NamedTuple, Optional, TypeVar, Union
class _ValidatedEntitySubsetValue(NamedTuple):
inner: EntitySubsetValue |
class _ValidatedEntitySubsetValue(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,111 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/asset_graph_view/serializable_entity_subset.py | dagster._core.asset_graph_view.serializable_entity_subset.EntitySubsetSerializer | from dataclasses import dataclass, replace
from dagster_shared.serdes.serdes import DataclassSerializer, whitelist_for_serdes
class EntitySubsetSerializer(DataclassSerializer):
"""Ensures that the inner PartitionsSubset is converted to a serializable form if necessary."""
def get_storage_name(self) -> str:
... |
class EntitySubsetSerializer(DataclassSerializer):
'''Ensures that the inner PartitionsSubset is converted to a serializable form if necessary.'''
def get_storage_name(self) -> str:
pass
def before_pack(self, value: 'SerializableEntitySubset') -> 'SerializableEntitySubset':
pass | 3 | 1 | 4 | 0 | 3 | 1 | 2 | 0.29 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 35 | 11 | 2 | 7 | 3 | 4 | 2 | 7 | 3 | 4 | 2 | 7 | 1 | 3 |
21,112 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/asset_graph_view/serializable_entity_subset.py | dagster._core.asset_graph_view.serializable_entity_subset.SerializableEntitySubset | from dagster._core.definitions.partitions.context import partition_loading_context
from typing_extensions import Self
from dagster._core.definitions.events import AssetKeyPartitionKey
from dagster._core.definitions.partitions.definition import PartitionsDefinition
import dagster._check as check
from dagster._core.defin... | @whitelist_for_serdes(serializer=EntitySubsetSerializer, storage_field_names={'key': 'asset_key'}, old_storage_names={'AssetSubset'})
@dataclass(frozen=True)
class SerializableEntitySubset(Generic[T_EntityKey]):
'''Represents a serializable subset of a given EntityKey.'''
@classmethod
def from_coercible_val... | 24 | 3 | 4 | 0 | 4 | 0 | 2 | 0.07 | 1 | 4 | 1 | 1 | 8 | 0 | 8 | 10 | 53 | 9 | 41 | 16 | 25 | 3 | 29 | 9 | 20 | 3 | 1 | 2 | 13 |
21,113 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/assets.py | dagster._core.assets.AssetDetails | from typing import NamedTuple, Optional
from dagster._serdes import whitelist_for_serdes
from dagster_shared.serdes.errors import DeserializationError
import dagster._check as check
from dagster_shared.serdes import deserialize_value
@whitelist_for_serdes
class AssetDetails(NamedTuple('_AssetDetails', [('last_wipe_tim... | @whitelist_for_serdes
class AssetDetails(NamedTuple('_AssetDetails', [('last_wipe_timestamp', Optional[float])])):
'''Set of asset fields that do not change with every materialization. These are generally updated
on some non-materialization action (e.g. wipe).
'''
def __new__(cls, last_wipe_timestamp:... | 5 | 1 | 7 | 1 | 6 | 0 | 2 | 0.23 | 1 | 3 | 1 | 0 | 1 | 0 | 2 | 2 | 20 | 4 | 13 | 5 | 9 | 3 | 12 | 4 | 9 | 3 | 1 | 1 | 4 |
21,114 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/captured_log_api.py | dagster._core.captured_log_api.LogLineCursor | import base64
from typing import NamedTuple
from dagster_shared.seven import json
from collections.abc import Sequence
class LogLineCursor(NamedTuple):
"""Representation of a log line cursor, to keep track of the place in the logs.
The captured logs are stored in multiple files in the same direcotry. The curso... |
class LogLineCursor(NamedTuple):
'''Representation of a log line cursor, to keep track of the place in the logs.
The captured logs are stored in multiple files in the same direcotry. The cursor keeps
track of the file name and the number of lines read so far.
line=-1 means that the entire file has been... | 5 | 1 | 3 | 0 | 3 | 0 | 1 | 0.8 | 1 | 2 | 0 | 0 | 2 | 0 | 3 | 3 | 32 | 6 | 15 | 7 | 10 | 12 | 12 | 6 | 8 | 1 | 1 | 0 | 3 |
21,115 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/code_pointer.py | dagster._core.code_pointer.CodePointer | from abc import ABC, abstractmethod
from typing import Callable, Optional, Union, cast
class CodePointer(ABC):
@abstractmethod
def load_target(self) -> object:
pass
@abstractmethod
def describe(self) -> str:
pass
@staticmethod
def from_module(module_name: str, definition: str... |
class CodePointer(ABC):
@abstractmethod
def load_target(self) -> object:
pass
@abstractmethod
def describe(self) -> str:
pass
@staticmethod
def from_module(module_name: str, definition: str, working_directory: Optional[str]) -> 'ModuleCodePointer':
pass
@staticmetho... | 11 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 4 | 3 | 4 | 2 | 0 | 5 | 25 | 37 | 4 | 33 | 17 | 16 | 0 | 20 | 6 | 14 | 1 | 4 | 0 | 5 |
21,116 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/code_pointer.py | dagster._core.code_pointer.CustomPointer | import dagster._check as check
from collections.abc import Sequence
from dagster_shared.utils.hash import hash_collection
from dagster._serdes import whitelist_for_serdes
from typing import Callable, Optional, Union, cast
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
@whiteli... | @whitelist_for_serdes
@record_custom(checked=False)
class CustomPointer(CodePointer, IHaveNew, LegacyNamedTupleMixin):
def __new__(cls, reconstructor_pointer: ModuleCodePointer, reconstructable_args: Sequence[object], reconstructable_kwargs: Sequence[Sequence]):
pass
def load_target(self) -> object:
... | 7 | 0 | 9 | 1 | 8 | 1 | 2 | 0.16 | 2 | 5 | 1 | 0 | 4 | 1 | 4 | 29 | 56 | 5 | 44 | 23 | 24 | 7 | 19 | 8 | 14 | 2 | 5 | 1 | 6 |
21,117 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/code_pointer.py | dagster._core.code_pointer.FileCodePointer | from typing import Callable, Optional, Union, cast
from dagster._serdes import whitelist_for_serdes
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
@whitelist_for_serdes
@record(kw_only=False)
class FileCodePointer(CodePointer, LegacyNamedTupleMixin):
python_file: str
f... | @whitelist_for_serdes
@record(kw_only=False)
class FileCodePointer(CodePointer, LegacyNamedTupleMixin):
def load_target(self) -> object:
pass
def describe(self) -> str:
pass | 5 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 2 | 2 | 0 | 0 | 3 | 0 | 3 | 28 | 26 | 2 | 24 | 11 | 14 | 0 | 10 | 5 | 6 | 2 | 5 | 1 | 4 |
21,118 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/code_pointer.py | dagster._core.code_pointer.ModuleCodePointer | from dagster._serdes import whitelist_for_serdes
from typing import Callable, Optional, Union, cast
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
@whitelist_for_serdes
@record(kw_only=False)
class ModuleCodePointer(CodePointer, LegacyNamedTupleMixin):
module: str
fn_n... | @whitelist_for_serdes
@record(kw_only=False)
class ModuleCodePointer(CodePointer, LegacyNamedTupleMixin):
def load_target(self) -> object:
pass
def describe(self) -> str:
pass | 5 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 2 | 2 | 0 | 0 | 3 | 0 | 3 | 28 | 23 | 2 | 21 | 11 | 11 | 0 | 8 | 5 | 4 | 1 | 5 | 0 | 3 |
21,119 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/code_pointer.py | dagster._core.code_pointer.PackageCodePointer | from typing import Callable, Optional, Union, cast
from dagster._serdes import whitelist_for_serdes
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
@whitelist_for_serdes
@record(kw_only=False)
class PackageCodePointer(CodePointer, LegacyNamedTupleMixin):
module: str
att... | @whitelist_for_serdes
@record(kw_only=False)
class PackageCodePointer(CodePointer, LegacyNamedTupleMixin):
def load_target(self) -> object:
pass
def describe(self) -> str:
pass | 5 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 2 | 2 | 0 | 0 | 3 | 0 | 3 | 28 | 23 | 2 | 21 | 11 | 11 | 0 | 8 | 5 | 4 | 1 | 5 | 0 | 3 |
21,120 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/debug.py | dagster._core.debug.DebugRunPayload | from dagster._core.storage.dagster_run import DagsterRun
from dagster._core.events.log import EventLogEntry
from typing import NamedTuple
from dagster._core.snap import ExecutionPlanSnapshot, JobSnap
from dagster._serdes import serialize_value, whitelist_for_serdes
from collections.abc import Sequence
import dagster._c... | @whitelist_for_serdes(storage_field_names={'dagster_run': 'pipeline_run', 'job_snapshot': 'pipeline_snapshot'})
class DebugRunPayload(NamedTuple('_DebugRunPayload', [('version', str), ('dagster_run', DagsterRun), ('event_list', Sequence[EventLogEntry]), ('job_snapshot', JobSnap), ('execution_plan_snapshot', ExecutionPl... | 6 | 0 | 11 | 0 | 10 | 1 | 1 | 0.05 | 1 | 4 | 1 | 0 | 2 | 0 | 3 | 3 | 47 | 3 | 44 | 24 | 20 | 2 | 8 | 5 | 3 | 1 | 1 | 0 | 3 |
21,121 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/antlr_asset_selection/antlr_asset_selection.py | dagster._core.definitions.antlr_asset_selection.antlr_asset_selection.AntlrAssetSelectionParser | from dagster._core.definitions.antlr_asset_selection.generated.AssetSelectionParser import AssetSelectionParser
from dagster._core.definitions.antlr_asset_selection.generated.AssetSelectionLexer import AssetSelectionLexer
from dagster._core.definitions.asset_selection import AssetSelection, ChangedInBranchAssetSelectio... |
class AntlrAssetSelectionParser:
def __init__(self, selection_str: str, include_sources: bool=False):
pass
@property
def tree_str(self) -> str:
pass
@property
def asset_selection(self) -> AssetSelection:
pass | 6 | 0 | 6 | 1 | 5 | 1 | 1 | 0.11 | 0 | 7 | 5 | 0 | 3 | 3 | 3 | 3 | 23 | 5 | 18 | 12 | 12 | 2 | 16 | 10 | 12 | 1 | 0 | 0 | 3 |
21,122 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/antlr_asset_selection/antlr_asset_selection.py | dagster._core.definitions.antlr_asset_selection.antlr_asset_selection.AntlrAssetSelectionVisitor | from dagster._core.definitions.antlr_asset_selection.generated.AssetSelectionParser import AssetSelectionParser
from dagster._core.definitions.antlr_asset_selection.generated.AssetSelectionVisitor import AssetSelectionVisitor
from dagster._core.definitions.asset_selection import AssetSelection, ChangedInBranchAssetSele... |
class AntlrAssetSelectionVisitor(AssetSelectionVisitor):
def __init__(self, include_sources: bool):
pass
def visitStart(self, ctx: AssetSelectionParser.StartContext):
pass
def visitTraversalAllowedExpression(self, ctx: AssetSelectionParser.TraversalAllowedExpressionContext):
pass... | 28 | 0 | 4 | 0 | 4 | 0 | 1 | 0.02 | 1 | 33 | 32 | 0 | 26 | 1 | 26 | 53 | 134 | 27 | 105 | 71 | 66 | 2 | 90 | 59 | 63 | 3 | 2 | 1 | 34 |
21,123 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/antlr_asset_selection/antlr_asset_selection.py | dagster._core.definitions.antlr_asset_selection.antlr_asset_selection.AntlrInputErrorListener | from antlr4.error.ErrorListener import ErrorListener
class AntlrInputErrorListener(ErrorListener):
def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e):
raise Exception(f'Syntax error at line {line}, column {column}: {msg}') |
class AntlrInputErrorListener(ErrorListener):
def syntaxError(self, recognizer, offendingSymbol, line, column, msg, e):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,124 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/antlr_asset_selection/generated/AssetSelectionLexer.py | dagster._core.definitions.antlr_asset_selection.generated.AssetSelectionLexer.AssetSelectionLexer | from typing import TextIO
import sys
class AssetSelectionLexer(Lexer):
atn = ATNDeserializer().deserialize(serializedATN())
decisionsToDFA = [DFA(ds, i) for i, ds in enumerate(atn.decisionToState)]
EQUAL = 1
AND = 2
OR = 3
NOT = 4
STAR = 5
PLUS = 6
DIGITS = 7
COLON = 8
LPARE... |
class AssetSelectionLexer(Lexer):
def __init__(self, input=None, output: TextIO=sys.stdout):
pass | 2 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 3 | 1 | 1 | 135 | 9 | 126 | 40 | 124 | 0 | 42 | 40 | 40 | 1 | 1 | 0 | 1 |
21,125 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/antlr_asset_selection/generated/AssetSelectionListener.py | dagster._core.definitions.antlr_asset_selection.generated.AssetSelectionListener.AssetSelectionListener | from .AssetSelectionParser import AssetSelectionParser
class AssetSelectionListener(ParseTreeListener):
def enterStart(self, ctx: AssetSelectionParser.StartContext):
pass
def exitStart(self, ctx: AssetSelectionParser.StartContext):
pass
def enterUpTraversalExpression(self, ctx: AssetSele... |
class AssetSelectionListener(ParseTreeListener):
def enterStart(self, ctx: AssetSelectionParser.StartContext):
pass
def exitStart(self, ctx: AssetSelectionParser.StartContext):
pass
def enterUpTraversalExpression(self, ctx: AssetSelectionParser.UpTraversalExpressionContext):
pass... | 57 | 0 | 2 | 0 | 2 | 0 | 1 | 0.42 | 1 | 28 | 28 | 0 | 54 | 0 | 54 | 54 | 236 | 53 | 129 | 75 | 54 | 54 | 109 | 55 | 54 | 1 | 1 | 0 | 54 |
21,126 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/antlr_asset_selection/generated/AssetSelectionParser.py | dagster._core.definitions.antlr_asset_selection.generated.AssetSelectionParser.AssetSelectionParser | import sys
from typing import TextIO
class AssetSelectionParser(Parser):
grammarFileName = 'AssetSelection.g4'
atn = ATNDeserializer().deserialize(serializedATN())
decisionsToDFA = [DFA(ds, i) for i, ds in enumerate(atn.decisionToState)]
sharedContextCache = PredictionContextCache()
literalNames = ... |
class AssetSelectionParser(Parser):
def __init__(self, input: TokenStream, output: TextIO=sys.stdout):
pass
class StartContext(ParserRuleContext):
def __init__(self, input: TokenStream, output: TextIO=sys.stdout):
pass
def expr(self):
pass
def EOF(self):... | 243 | 0 | 5 | 0 | 5 | 0 | 2 | 0.02 | 1 | 36 | 30 | 0 | 11 | 5 | 11 | 11 | 1,401 | 236 | 1,165 | 372 | 887 | 25 | 989 | 320 | 755 | 15 | 1 | 5 | 331 |
21,127 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/antlr_asset_selection/generated/AssetSelectionVisitor.py | dagster._core.definitions.antlr_asset_selection.generated.AssetSelectionVisitor.AssetSelectionVisitor | from .AssetSelectionParser import AssetSelectionParser
class AssetSelectionVisitor(ParseTreeVisitor):
def visitStart(self, ctx: AssetSelectionParser.StartContext):
return self.visitChildren(ctx)
def visitUpTraversalExpression(self, ctx: AssetSelectionParser.UpTraversalExpressionContext):
retu... |
class AssetSelectionVisitor(ParseTreeVisitor):
def visitStart(self, ctx: AssetSelectionParser.StartContext):
pass
def visitUpTraversalExpression(self, ctx: AssetSelectionParser.UpTraversalExpressionContext):
pass
def visitAndExpression(self, ctx: AssetSelectionParser.AndExpressionContext... | 29 | 0 | 2 | 0 | 2 | 0 | 1 | 0.4 | 1 | 28 | 28 | 1 | 27 | 0 | 27 | 27 | 120 | 26 | 67 | 40 | 27 | 27 | 55 | 28 | 27 | 1 | 1 | 0 | 27 |
21,128 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_daemon_cursor.py | dagster._core.definitions.asset_daemon_cursor.AssetDaemonCursor | import dataclasses
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, SerializableNonScalarKeyMapping, UnpackContext, WhitelistMap, pack_value, unpack_value, whitelist_for_serdes
from functools import cached_property
from typing import TYPE_CHECKING, NamedTuple, Optional
fro... | @whitelist_for_serdes(field_serializers={'last_observe_request_timestamp_by_asset_key': ObserveRequestTimestampSerializer})
@dataclass(frozen=True)
class AssetDaemonCursor:
'''State that's stored between daemon evaluations.
Args:
evaluation_id (int): The ID of the evaluation that produced this cursor.
... | 10 | 3 | 12 | 0 | 10 | 1 | 1 | 0.24 | 0 | 7 | 1 | 0 | 4 | 0 | 5 | 5 | 82 | 10 | 58 | 24 | 37 | 14 | 21 | 10 | 14 | 2 | 0 | 1 | 7 |
21,129 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_daemon_cursor.py | dagster._core.definitions.asset_daemon_cursor.AutomationConditionCursorExtras | from collections.abc import Mapping, Sequence
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, SerializableNonScalarKeyMapping, UnpackContext, WhitelistMap, pack_value, unpack_value, whitelist_for_serdes
from typing import TYPE_CHECKING, NamedTuple, Optional
@whitelist_fo... | @whitelist_for_serdes(storage_name='AssetConditionCursorExtras')
class AutomationConditionCursorExtras(NamedTuple):
'''Represents additional state that may be optionally saved by an AutomationCondition between
evaluations.
'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 1 | 3 | 1 | 2 | 3 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,130 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_daemon_cursor.py | dagster._core.definitions.asset_daemon_cursor.LegacyAssetDaemonCursorWrapper | from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, SerializableNonScalarKeyMapping, UnpackContext, WhitelistMap, pack_value, unpack_value, whitelist_for_serdes
from typing import TYPE_CHECKING, NamedTuple, Optional
from dagster._core.definitions.assets.graph.base_asset_graph... | @whitelist_for_serdes
class LegacyAssetDaemonCursorWrapper(NamedTuple):
'''Wrapper class for the legacy AssetDaemonCursor object, which is not a serializable NamedTuple.'''
def get_asset_daemon_cursor(self, asset_graph: Optional[BaseAssetGraph]) -> AssetDaemonCursor:
pass | 3 | 1 | 4 | 0 | 4 | 0 | 1 | 0.17 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 9 | 2 | 6 | 2 | 4 | 1 | 4 | 2 | 2 | 1 | 1 | 0 | 1 |
21,131 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_daemon_cursor.py | dagster._core.definitions.asset_daemon_cursor.ObserveRequestTimestampSerializer | from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, SerializableNonScalarKeyMapping, UnpackContext, WhitelistMap, pack_value, unpack_value, whitelist_for_serdes
from collections.abc import Mapping, Sequence
class ObserveRequestTimestampSerializer(FieldSerializer):
def p... |
class ObserveRequestTimestampSerializer(FieldSerializer):
def pack(self, mapping: Mapping[str, float], whitelist_map: WhitelistMap, descent_path: str) -> JsonSerializableValue:
pass
def unpack(self, unpacked_value: JsonSerializableValue, whitelist_map: WhitelistMap, context: UnpackContext) -> Packabl... | 3 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 7 | 3 | 0 | 2 | 0 | 2 | 25 | 16 | 1 | 15 | 13 | 2 | 0 | 5 | 3 | 2 | 1 | 6 | 0 | 2 |
21,132 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_key.py | dagster._core.definitions.asset_key.AssetCheckKey | from collections.abc import Mapping, Sequence
import dagster_shared.seven as seven
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, TypeVar, Union
import dagster._check as check
from dagster._serdes import whitelist_for_serdes
from dagster._annotations import PublicAttr, public
@public
@whitelist_for_serde... | @public
@whitelist_for_serdes(old_storage_names={'AssetCheckHandle'})
class AssetCheckKey(NamedTuple):
'''Check names are expected to be unique per-asset. Thus, this combination of asset key and
check name uniquely identifies an asset check within a deployment.
'''
@staticmethod
def from_graphql_inp... | 13 | 1 | 4 | 0 | 4 | 0 | 1 | 0.09 | 1 | 5 | 1 | 0 | 4 | 0 | 7 | 7 | 45 | 8 | 34 | 13 | 23 | 3 | 24 | 10 | 16 | 3 | 1 | 2 | 9 |
21,133 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_key.py | dagster._core.definitions.asset_key.AssetKey | from dagster._serdes import whitelist_for_serdes
from dagster_pipes import to_assey_key_path
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, TypeVar, Union
from collections.abc import Mapping, Sequence
from dagster._record import IHaveNew, record_custom
from dagster._annotations import PublicAttr, public
f... | @whitelist_for_serdes
@record_custom(checked=False, field_to_new_mapping={'parts': 'path'})
@public
class AssetKey(IHaveNew):
'''Object representing the structure of an asset key. Takes in a sanitized string, list of
strings, or tuple of strings.
Example usage:
.. code-block:: python
from dagst... | 32 | 6 | 5 | 0 | 4 | 1 | 2 | 0.26 | 1 | 10 | 2 | 0 | 14 | 0 | 21 | 23 | 159 | 32 | 102 | 40 | 64 | 27 | 73 | 27 | 49 | 5 | 1 | 2 | 32 |
21,134 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.AllAssetCheckSelection | from dagster_shared.serdes import whitelist_for_serdes
from typing import AbstractSet, Optional, Union, cast
from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_k... | @whitelist_for_serdes
@record
class AllAssetCheckSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def resolve_checks_inner(self, asset_graph: AssetGraph, allow_missing: bool) -> AbstractSet[AssetCheckKey]:
pass
... | 6 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 3 | 0 | 3 | 59 | 13 | 2 | 11 | 8 | 3 | 0 | 7 | 4 | 3 | 1 | 5 | 0 | 3 |
21,135 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.AllSelection | from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from typing import AbstractSet, Optional, Union, cast
from dagster._record import copy, record
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAss... | @whitelist_for_serdes
@record
class AllSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_serializable_asset_selection(self, asset_graph: BaseAssetGraph) -> 'AssetSelection':
pass
def to_selection_str(... | 6 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 3 | 0 | 3 | 59 | 17 | 3 | 14 | 7 | 8 | 0 | 8 | 5 | 4 | 2 | 5 | 0 | 4 |
21,136 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.AndAssetSelection | from functools import reduce
from typing import AbstractSet, Optional, Union, cast
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from dagster_shared.serdes import whitelist_for_serdes
from dagster.... | @whitelist_for_serdes
class AndAssetSelection(OperandListAssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def resolve_checks_inner(self, asset_graph: AssetGraph, allow_missing: bool) -> AbstractSet[AssetCheckKey]:
pass
... | 5 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 3 | 0 | 3 | 62 | 25 | 2 | 23 | 8 | 15 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
21,137 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.AssetCheckKeysSelection | from dagster._record import copy, record
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from dagster_shared.serdes i... | @whitelist_for_serdes
@record
class AssetCheckKeysSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def resolve_checks_inner(self, asset_graph: AssetGraph, allow_missing: bool) -> AbstractSet[AssetCheckKey]:
pass... | 6 | 0 | 7 | 0 | 6 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 3 | 0 | 3 | 59 | 25 | 4 | 21 | 10 | 13 | 0 | 12 | 6 | 8 | 2 | 5 | 1 | 4 |
21,138 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.AssetChecksForAssetKeysSelection | from collections.abc import Iterable, Sequence
from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from typing import AbstractSet, Option... | @whitelist_for_serdes
@record
class AssetChecksForAssetKeysSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def resolve_checks_inner(self, asset_graph: AssetGraph, allow_missing: bool) -> AbstractSet[AssetCheckKey]:
... | 6 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 3 | 0 | 3 | 59 | 19 | 3 | 16 | 8 | 8 | 0 | 8 | 4 | 4 | 1 | 5 | 0 | 3 |
21,139 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.AssetSelection | from dagster._annotations import beta_param, deprecated, public
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from dagster._core.definitions.source_asset import SourceAsset
import operator
from collections.abc import Iterable, Sequence
from abc import ABC, abstractmethod
from dagster... | @public
class AssetSelection(ABC):
'''An AssetSelection defines a query over a set of assets and asset checks, normally all that are defined in a project.
You can use the "|", "&", and "-" operators to create unions, intersections, and differences of selections, respectively.
AssetSelections are typically u... | 82 | 29 | 12 | 1 | 6 | 5 | 2 | 0.76 | 1 | 32 | 24 | 19 | 22 | 0 | 36 | 56 | 544 | 100 | 252 | 104 | 148 | 192 | 132 | 54 | 94 | 8 | 4 | 2 | 59 |
21,140 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.ChainedAssetSelection | from dagster._record import copy, record
from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
@record
class ChainedAssetSelection(AssetSelection):
"""Superclass for AssetSelection classes that contain a single child AssetSelection and are
resolved by applying some o... | @record
class ChainedAssetSelection(AssetSelection):
'''Superclass for AssetSelection classes that contain a single child AssetSelection and are
resolved by applying some operation to the result of resolving the child selection.
'''
def to_serializable_asset_selection(self, asset_graph: BaseAssetGraph)... | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.75 | 1 | 1 | 1 | 7 | 1 | 0 | 1 | 57 | 9 | 2 | 4 | 2 | 2 | 3 | 4 | 2 | 2 | 1 | 5 | 0 | 1 |
21,141 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.ChangedInBranchAssetSelection | from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from dagster_shared.serdes import whitelist_for_serde... | @whitelist_for_serdes
@record
class ChangedInBranchAssetSelection(AssetSelection):
'''Used to represent a UI asset selection by changed in branch metadata. This should not be resolved against
an in-process asset graph.
'''
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> Abs... | 5 | 2 | 4 | 0 | 3 | 1 | 1 | 0.5 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 58 | 15 | 3 | 8 | 5 | 3 | 4 | 6 | 3 | 3 | 1 | 5 | 0 | 2 |
21,142 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.CodeLocationAssetSelection | import dagster._check as check
from dagster._record import copy, record
from typing import AbstractSet, Optional, Union, cast
from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibl... | @whitelist_for_serdes
@record
class CodeLocationAssetSelection(AssetSelection):
'''Used to represent a UI asset selection by project. This should not be resolved against
an in-process asset graph.
'''
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
... | 5 | 1 | 4 | 0 | 3 | 1 | 1 | 0.5 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 58 | 15 | 3 | 8 | 5 | 3 | 4 | 6 | 3 | 3 | 1 | 5 | 0 | 2 |
21,143 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.ColumnAssetSelection | from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from dagster._record import copy, record
from typing import AbstractSet, Optional, Union, cast
from dagster._core.definitions.assets.graph.base_asset_g... | @whitelist_for_serdes
@record
class ColumnAssetSelection(AssetSelection):
'''Used to represent a UI asset selection by column. This should not be resolved against
an in-process asset graph.
'''
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
'... | 5 | 2 | 4 | 0 | 3 | 1 | 1 | 0.5 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 58 | 15 | 3 | 8 | 5 | 3 | 4 | 6 | 3 | 3 | 1 | 5 | 0 | 2 |
21,144 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.ColumnTagAssetSelection | from typing import AbstractSet, Optional, Union, cast
from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible... | @whitelist_for_serdes
@record
class ColumnTagAssetSelection(AssetSelection):
'''Used to represent a UI asset selection by column tag. This should not be resolved against
an in-process asset graph.
'''
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
... | 5 | 2 | 5 | 0 | 5 | 1 | 2 | 0.33 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 58 | 19 | 3 | 12 | 5 | 7 | 4 | 9 | 3 | 6 | 2 | 5 | 1 | 3 |
21,145 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.DownstreamAssetSelection | from dagster._record import copy, record
from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.selector.subset_selector import fetch_connected, fetch_sinks, fetch_sources, parse_clause
import operator
from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
f... | @whitelist_for_serdes
@record
class DownstreamAssetSelection(ChainedAssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_selection_str(self) -> str:
pass | 5 | 0 | 16 | 1 | 16 | 0 | 3 | 0 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 59 | 37 | 3 | 34 | 7 | 29 | 0 | 14 | 5 | 11 | 4 | 6 | 1 | 6 |
21,146 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.GroupsAssetSelection | from dagster._record import copy, record
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from typing ... | @whitelist_for_serdes
@record
class GroupsAssetSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_serializable_asset_selection(self, asset_graph: BaseAssetGraph) -> 'AssetSelection':
pass
def needs_par... | 7 | 0 | 6 | 0 | 6 | 0 | 2 | 0 | 1 | 3 | 1 | 0 | 4 | 0 | 4 | 60 | 30 | 4 | 26 | 9 | 19 | 0 | 14 | 6 | 9 | 2 | 5 | 1 | 6 |
21,147 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.KeyPrefixesAssetSelection | from typing import AbstractSet, Optional, Union, cast
from collections.abc import Iterable, Sequence
from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coerc... | @whitelist_for_serdes
@record
class KeyPrefixesAssetSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_serializable_asset_selection(self, asset_graph: BaseAssetGraph) -> 'AssetSelection':
pass | 5 | 0 | 8 | 0 | 8 | 0 | 2 | 0 | 1 | 2 | 1 | 0 | 2 | 0 | 2 | 58 | 20 | 2 | 18 | 6 | 13 | 0 | 8 | 4 | 5 | 2 | 5 | 0 | 3 |
21,148 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.KeySubstringAssetSelection | from dagster._record import copy, record
from dagster_shared.serdes import whitelist_for_serdes
from typing import AbstractSet, Optional, Union, cast
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
f... | @whitelist_for_serdes
@record
class KeySubstringAssetSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_serializable_asset_selection(self, asset_graph: BaseAssetGraph) -> 'AssetSelection':
pass
def to_... | 6 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 3 | 0 | 3 | 59 | 19 | 3 | 16 | 7 | 10 | 0 | 10 | 5 | 6 | 2 | 5 | 0 | 4 |
21,149 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.KeysAssetSelection | from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from collections.abc import Iterable, Sequence
from dagster._core.errors import DagsterInvalidSubsetError
from dagster._core.definitions.resolved_asset_deps import resolve_similar_asset_names
from dagster._core.definitions... | @whitelist_for_serdes
@record
class KeysAssetSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_serializable_asset_selection(self, asset_graph: BaseAssetGraph) -> 'AssetSelection':
pass
def needs_paren... | 7 | 0 | 10 | 1 | 9 | 1 | 2 | 0.05 | 1 | 5 | 1 | 0 | 4 | 0 | 4 | 60 | 46 | 7 | 37 | 15 | 30 | 2 | 23 | 13 | 18 | 5 | 5 | 3 | 8 |
21,150 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.MaterializableAssetSelection | from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from typing import AbstractSet, Optional, Union, cast... | @whitelist_for_serdes
class MaterializableAssetSelection(ChainedAssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass | 3 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 58 | 9 | 0 | 9 | 4 | 5 | 0 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
21,151 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.OperandListAssetSelection | from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from collections.abc import Iterable, Sequence
from dagster._record import copy, record
@record
class OperandListAssetSelection(AssetSelection):
"""Superclass for classes like `AndAssetSelection` and `OrAssetSelection... | @record
class OperandListAssetSelection(AssetSelection):
'''Superclass for classes like `AndAssetSelection` and `OrAssetSelection` that operate on
a list of sub-AssetSelections.
'''
def to_serializable_asset_selection(self, asset_graph: BaseAssetGraph) -> 'AssetSelection':
pass
def __eq__(... | 5 | 1 | 6 | 0 | 5 | 0 | 1 | 0.17 | 1 | 3 | 1 | 2 | 3 | 0 | 3 | 59 | 26 | 5 | 18 | 5 | 14 | 3 | 11 | 5 | 7 | 2 | 5 | 1 | 4 |
21,152 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.OrAssetSelection | from dagster_shared.serdes import whitelist_for_serdes
import operator
from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_pref... | @whitelist_for_serdes
class OrAssetSelection(OperandListAssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def resolve_checks_inner(self, asset_graph: AssetGraph, allow_missing: bool) -> AbstractSet[AssetCheckKey]:
pass
... | 5 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 3 | 0 | 3 | 62 | 25 | 2 | 23 | 8 | 15 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
21,153 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.OwnerAssetSelection | from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from dagster_shared.serdes import whitelist_for_serdes
from dagster._record import copy, record
from typing import AbstractSet, Optional, Union, cast
f... | @whitelist_for_serdes
@record
class OwnerAssetSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_selection_str(self) -> str:
pass | 5 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 58 | 14 | 2 | 12 | 5 | 7 | 0 | 6 | 3 | 3 | 1 | 5 | 0 | 2 |
21,154 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.ParentSourcesAssetSelection | from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from typing import AbstractSet, Optional, Union, cast
from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.definitions.assets.grap... | @whitelist_for_serdes
class ParentSourcesAssetSelection(ChainedAssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass | 3 | 0 | 8 | 0 | 8 | 0 | 2 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 58 | 9 | 0 | 9 | 6 | 5 | 0 | 7 | 4 | 5 | 2 | 6 | 1 | 2 |
21,155 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.RequiredNeighborsAssetSelection | from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from dagster_shared.serdes import whitelist_for_serdes
from typing import AbstractSet, Optional, Union, cast
from dagster._core.definitions.assets.grap... | @whitelist_for_serdes
class RequiredNeighborsAssetSelection(ChainedAssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass | 3 | 0 | 8 | 0 | 8 | 0 | 2 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 58 | 9 | 0 | 9 | 7 | 5 | 0 | 7 | 5 | 5 | 2 | 6 | 1 | 2 |
21,156 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.RootsAssetSelection | from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from dagster._core.selector.subset_selector import fetch_connected, fetch_sinks, fetch_sources, parse_clause
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_k... | @whitelist_for_serdes
class RootsAssetSelection(ChainedAssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_selection_str(self) -> str:
pass | 4 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 59 | 9 | 1 | 8 | 6 | 3 | 0 | 6 | 4 | 3 | 1 | 6 | 0 | 2 |
21,157 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.SinksAssetSelection | from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from typing import AbstractSet, Optional, Union, cast... | @whitelist_for_serdes
class SinksAssetSelection(ChainedAssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_selection_str(self) -> str:
pass | 4 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 59 | 9 | 1 | 8 | 6 | 3 | 0 | 6 | 4 | 3 | 1 | 6 | 0 | 2 |
21,158 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.SubtractAssetSelection | from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from dagster_shared.serdes import whitelist_for_serdes
from typing import AbstractSet, Optional, Union, cast
from dagster._core.definitions.assets.graph.asset_graph import AssetGraph
from dagster._record import copy, record
from dagster._... | @whitelist_for_serdes
@record
class SubtractAssetSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def resolve_checks_inner(self, asset_graph: AssetGraph, allow_missing: bool) -> AbstractSet[AssetCheckKey]:
pass
... | 8 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 5 | 3 | 0 | 5 | 0 | 5 | 61 | 32 | 5 | 27 | 10 | 17 | 0 | 15 | 6 | 9 | 2 | 5 | 1 | 6 |
21,159 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.TableNameAssetSelection | from typing import AbstractSet, Optional, Union, cast
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode... | @whitelist_for_serdes
@record
class TableNameAssetSelection(AssetSelection):
'''Used to represent a UI asset selection by table name. This should not be resolved against
an in-process asset graph.
'''
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
... | 5 | 2 | 4 | 0 | 3 | 1 | 1 | 0.5 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 58 | 15 | 3 | 8 | 5 | 3 | 4 | 6 | 3 | 3 | 1 | 5 | 0 | 2 |
21,160 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.TagAssetSelection | from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph, BaseAssetNode
from typing import AbstractSet, Optional, Union, cast
from dagster._record import copy, record
from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAss... | @whitelist_for_serdes
@record
class TagAssetSelection(AssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_selection_str(self) -> str:
pass | 5 | 0 | 8 | 1 | 7 | 0 | 2 | 0 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 58 | 21 | 3 | 18 | 6 | 13 | 0 | 11 | 4 | 8 | 2 | 5 | 1 | 4 |
21,161 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_selection.py | dagster._core.definitions.asset_selection.UpstreamAssetSelection | from dagster_shared.serdes import whitelist_for_serdes
from dagster._record import copy, record
from typing import AbstractSet, Optional, Union, cast
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey, CoercibleToAssetKeyPrefix, asset_keys_from_defs_and_coercibles, key_prefix_from_coercible
f... | @whitelist_for_serdes
@record
class UpstreamAssetSelection(ChainedAssetSelection):
def resolve_inner(self, asset_graph: BaseAssetGraph, allow_missing: bool) -> AbstractSet[AssetKey]:
pass
def to_selection_str(self) -> str:
pass | 5 | 0 | 10 | 1 | 10 | 0 | 3 | 0 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 59 | 25 | 3 | 22 | 8 | 17 | 0 | 17 | 6 | 14 | 4 | 6 | 1 | 6 |
21,162 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_sensor_definition.py | dagster._core.definitions.asset_sensor_definition.AssetSensorDefinition | import inspect
from typing import Any, Callable, NamedTuple, Optional
from collections.abc import Mapping, Sequence
from dagster._core.definitions.target import ExecutableDefinition
from dagster._core.definitions.resource_annotation import get_resource_args
from dagster._core.definitions.metadata import RawMetadataMapp... | @public
class AssetSensorDefinition(SensorDefinition):
'''Define an asset sensor that initiates a set of runs based on the materialization of a given
asset.
If the asset has been materialized multiple times between since the last sensor tick, the
evaluation function will only be invoked once, with the l... | 10 | 2 | 40 | 6 | 33 | 1 | 2 | 0.33 | 1 | 13 | 3 | 0 | 3 | 1 | 3 | 3 | 140 | 19 | 91 | 37 | 64 | 30 | 37 | 17 | 30 | 8 | 1 | 2 | 12 |
21,163 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/asset_sensor_definition.py | dagster._core.definitions.asset_sensor_definition.AssetSensorParamNames | from typing import Any, Callable, NamedTuple, Optional
class AssetSensorParamNames(NamedTuple):
context_param_name: Optional[str]
event_log_entry_param_name: Optional[str] |
class AssetSensorParamNames(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,164 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_policy.py | dagster._core.definitions.auto_materialize_policy.AutoMaterializePolicy | from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, whitelist_for_serdes
from collections.abc import Sequence
import dagster._check as check
from dagster._annotations import deprecated, public
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional
@whitelist_for_se... | @whitelist_for_serdes(old_fields={'time_window_partition_scope_minutes': 1e-06}, serializer=AutoMaterializePolicySerializer)
@deprecated(breaking_version='1.10.0')
class AutoMaterializePolicy(NamedTuple('_AutoMaterializePolicy', [('rules', frozenset['AutoMaterializeRule']), ('max_materializations_per_minute', Optional[... | 28 | 7 | 15 | 1 | 12 | 2 | 1 | 0.39 | 1 | 11 | 4 | 0 | 9 | 0 | 12 | 12 | 280 | 40 | 173 | 62 | 107 | 67 | 50 | 27 | 29 | 3 | 1 | 1 | 16 |
21,165 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_policy.py | dagster._core.definitions.auto_materialize_policy.AutoMaterializePolicySerializer | from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, whitelist_for_serdes
class AutoMaterializePolicySerializer(NamedTupleSerializer):
def before_unpack(self, context: UnpackContext, unpacked_dict: dict[str, UnpackedValue]) -> dict[str, UnpackedValue]:
from dagster.... |
class AutoMaterializePolicySerializer(NamedTupleSerializer):
def before_unpack(self, context: UnpackContext, unpacked_dict: dict[str, UnpackedValue]) -> dict[str, UnpackedValue]:
pass | 2 | 0 | 26 | 3 | 21 | 2 | 4 | 0.09 | 1 | 5 | 2 | 0 | 1 | 0 | 1 | 34 | 27 | 3 | 22 | 8 | 17 | 2 | 11 | 6 | 8 | 4 | 7 | 3 | 4 |
21,166 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_policy.py | dagster._core.definitions.auto_materialize_policy.AutoMaterializePolicyType | from enum import Enum
class AutoMaterializePolicyType(Enum):
EAGER = 'EAGER'
LAZY = 'LAZY' |
class AutoMaterializePolicyType(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
21,167 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule.py | dagster._core.definitions.auto_materialize_rule.AutoMaterializeRule | from dagster._annotations import public
from dagster._utils.schedules import is_valid_cron_string
from abc import ABC, abstractmethod
import dagster._check as check
import pytz
from typing import TYPE_CHECKING, Optional
class AutoMaterializeRule(ABC):
"""An AutoMaterializeRule defines a bit of logic which helps de... |
class AutoMaterializeRule(ABC):
'''An AutoMaterializeRule defines a bit of logic which helps determine if a materialization
should be kicked off for a given asset partition.
Each rule can have one of two decision types, `MATERIALIZE` (indicating that an asset partition
should be materialized) or `SKIP`... | 44 | 16 | 10 | 1 | 5 | 4 | 1 | 0.71 | 1 | 17 | 13 | 0 | 7 | 0 | 18 | 38 | 238 | 41 | 115 | 72 | 32 | 82 | 52 | 32 | 20 | 1 | 4 | 0 | 18 |
21,168 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_evaluation.py | dagster._core.definitions.auto_materialize_rule_evaluation.AutoMaterializeAssetEvaluation | from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, WhitelistMap, whitelist_for_serdes
from typing import NamedTuple, Optional
@whitelist_for_serdes(serializer=BackcompatAutoMaterializeAssetEvaluationSerializer)
class AutoMaterializeAssetEvaluation(NamedTuple):
... | @whitelist_for_serdes(serializer=BackcompatAutoMaterializeAssetEvaluationSerializer)
class AutoMaterializeAssetEvaluation(NamedTuple):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,169 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_evaluation.py | dagster._core.definitions.auto_materialize_rule_evaluation.AutoMaterializeDecisionType | from enum import Enum
from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, WhitelistMap, whitelist_for_serdes
@whitelist_for_serdes
class AutoMaterializeDecisionType(Enum):
"""Represents the set of results of the auto-materialize logic.
MATERIALIZE: The asset should be ... | @whitelist_for_serdes
class AutoMaterializeDecisionType(Enum):
'''Represents the set of results of the auto-materialize logic.
MATERIALIZE: The asset should be materialized by a run kicked off on this tick
SKIP: The asset should not be materialized by a run kicked off on this tick, because future
ti... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 13 | 2 | 4 | 4 | 3 | 7 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
21,170 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_evaluation.py | dagster._core.definitions.auto_materialize_rule_evaluation.AutoMaterializeRuleEvaluation | from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, WhitelistMap, whitelist_for_serdes
from typing import NamedTuple, Optional
@whitelist_for_serdes(serializer=BackcompatNullSerializer)
class AutoMaterializeRuleEvaluation(NamedTuple):
rule_snapshot: AutoMaterializeRuleSnaps... | @whitelist_for_serdes(serializer=BackcompatNullSerializer)
class AutoMaterializeRuleEvaluation(NamedTuple):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,171 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_evaluation.py | dagster._core.definitions.auto_materialize_rule_evaluation.AutoMaterializeRuleEvaluationData | from abc import ABC, abstractproperty
from dagster._core.definitions.metadata import MetadataMapping, MetadataValue
class AutoMaterializeRuleEvaluationData(ABC):
@abstractproperty
def metadata(self) -> MetadataMapping:
raise NotImplementedError()
@property
def frozen_metadata(self) -> frozens... |
class AutoMaterializeRuleEvaluationData(ABC):
@abstractproperty
def metadata(self) -> MetadataMapping:
pass
@property
def frozen_metadata(self) -> frozenset[tuple[str, MetadataValue]]:
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 0 | 3 | 2 | 0 | 2 | 22 | 8 | 1 | 7 | 5 | 2 | 0 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
21,172 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_evaluation.py | dagster._core.definitions.auto_materialize_rule_evaluation.AutoMaterializeRuleSnapshot | from typing import NamedTuple, Optional
from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, WhitelistMap, whitelist_for_serdes
@whitelist_for_serdes(serializer=BackcompatNullSerializer)
class AutoMaterializeRuleSnapshot(NamedTuple):
class_name: str
description: str
... | @whitelist_for_serdes(serializer=BackcompatNullSerializer)
class AutoMaterializeRuleSnapshot(NamedTuple):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
21,173 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_evaluation.py | dagster._core.definitions.auto_materialize_rule_evaluation.BackcompatAutoMaterializeAssetEvaluationSerializer | from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, WhitelistMap, whitelist_for_serdes
from dagster._core.definitions.events import AssetKey
from dagster._core.definitions.declarative_automation.serialized_objects import AutomationConditionEvaluation, AutomationConditionEvaluati... |
class BackcompatAutoMaterializeAssetEvaluationSerializer(NamedTupleSerializer):
'''Unpacks the legacy AutoMaterializeAssetEvaluation class into a completely empty
AutomationConditionEvaluationWithRunIds.
'''
def unpack(self, unpacked_dict: dict[str, UnpackedValue], whitelist_map: WhitelistMap, context... | 2 | 1 | 18 | 0 | 18 | 0 | 1 | 0.16 | 1 | 10 | 7 | 0 | 1 | 0 | 1 | 34 | 23 | 1 | 19 | 7 | 12 | 3 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
21,174 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_evaluation.py | dagster._core.definitions.auto_materialize_rule_evaluation.BackcompatNullSerializer | from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, WhitelistMap, whitelist_for_serdes
class BackcompatNullSerializer(NamedTupleSerializer):
"""Unpacks an arbitrary object into None."""
def unpack(self, unpacked_dict: dict[str, UnpackedValue], whitelist_map: WhitelistM... |
class BackcompatNullSerializer(NamedTupleSerializer):
'''Unpacks an arbitrary object into None.'''
def unpack(self, unpacked_dict: dict[str, UnpackedValue], whitelist_map: WhitelistMap, context: UnpackContext) -> None:
pass | 2 | 1 | 7 | 0 | 7 | 0 | 1 | 0.13 | 1 | 4 | 2 | 0 | 1 | 0 | 1 | 34 | 10 | 1 | 8 | 7 | 1 | 1 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
21,175 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_evaluation.py | dagster._core.definitions.auto_materialize_rule_evaluation.ParentUpdatedRuleEvaluationData | from dagster._core.definitions.events import AssetKey
from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, WhitelistMap, whitelist_for_serdes
from dagster._core.definitions.metadata import MetadataMapping, MetadataValue
from typing import NamedTuple, Optional
@whitelist_for_serd... | @whitelist_for_serdes
class ParentUpdatedRuleEvaluationData(AutoMaterializeRuleEvaluationData, NamedTuple('_ParentUpdatedRuleEvaluationData', [('updated_asset_keys', frozenset[AssetKey]), ('will_update_asset_keys', frozenset[AssetKey])])):
@property
def metadata(self) -> MetadataMapping:
pass | 4 | 0 | 11 | 0 | 11 | 0 | 1 | 0 | 2 | 2 | 1 | 0 | 1 | 0 | 1 | 23 | 22 | 0 | 22 | 12 | 10 | 0 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
21,176 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_evaluation.py | dagster._core.definitions.auto_materialize_rule_evaluation.TextRuleEvaluationData | from dagster._core.definitions.metadata import MetadataMapping, MetadataValue
from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, WhitelistMap, whitelist_for_serdes
from typing import NamedTuple, Optional
@whitelist_for_serdes
class TextRuleEvaluationData(AutoMaterializeRuleEva... | @whitelist_for_serdes
class TextRuleEvaluationData(AutoMaterializeRuleEvaluationData, NamedTuple('_TextRuleEvaluationData', [('text', str)])):
@property
def metadata(self) -> MetadataMapping:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 1 | 23 | 7 | 0 | 7 | 6 | 1 | 0 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
21,177 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_evaluation.py | dagster._core.definitions.auto_materialize_rule_evaluation.WaitingOnAssetsRuleEvaluationData | from dagster._core.definitions.metadata import MetadataMapping, MetadataValue
from dagster_shared.serdes.serdes import NamedTupleSerializer, UnpackContext, UnpackedValue, WhitelistMap, whitelist_for_serdes
from dagster._core.definitions.events import AssetKey
from typing import NamedTuple, Optional
@whitelist_for_serd... | @whitelist_for_serdes
class WaitingOnAssetsRuleEvaluationData(AutoMaterializeRuleEvaluationData, NamedTuple('_WaitingOnParentRuleEvaluationData', [('waiting_on_asset_keys', frozenset[AssetKey])])):
@property
def metadata(self) -> MetadataMapping:
pass | 4 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 2 | 2 | 1 | 0 | 1 | 0 | 1 | 23 | 15 | 0 | 15 | 9 | 6 | 0 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
21,178 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.AutoMaterializeAssetPartitionsFilter | from dagster._core.definitions.events import AssetKey, AssetKeyPartitionKey
from dagster._core.event_api import AssetRecordsFilter
from dagster._annotations import deprecated
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional
from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.sto... | null | 7 | 1 | 27 | 4 | 24 | 0 | 5 | 0.09 | 1 | 11 | 3 | 0 | 3 | 0 | 3 | 3 | 100 | 15 | 78 | 33 | 64 | 7 | 37 | 22 | 33 | 12 | 1 | 3 | 14 |
21,179 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.DiscardOnMaxMaterializationsExceededRule | from dagster._core.definitions.declarative_automation.legacy.valid_asset_subset import ValidAssetSubset
from dagster._core.definitions.auto_materialize_rule_evaluation import AutoMaterializeDecisionType, ParentUpdatedRuleEvaluationData, WaitingOnAssetsRuleEvaluationData
from dagster._core.definitions.assets.graph.base_... | @whitelist_for_serdes
class DiscardOnMaxMaterializationsExceededRule(AutoMaterializeRule, NamedTuple('_DiscardOnMaxMaterializationsExceededRule', [('limit', int)])):
@property
def decision_type(self) -> AutoMaterializeDecisionType:
pass
@property
def description(self) -> str:
pass
... | 7 | 0 | 9 | 1 | 8 | 0 | 1 | 0.03 | 2 | 5 | 3 | 0 | 3 | 0 | 3 | 3 | 34 | 4 | 29 | 12 | 18 | 1 | 9 | 6 | 4 | 1 | 1 | 0 | 3 |
21,180 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.MaterializeOnCronRule | from dagster._core.definitions.auto_materialize_rule_evaluation import AutoMaterializeDecisionType, ParentUpdatedRuleEvaluationData, WaitingOnAssetsRuleEvaluationData
from dagster._core.definitions.events import AssetKey, AssetKeyPartitionKey
from dagster._core.definitions.partitions.utils import TimeWindow, get_time_p... | @whitelist_for_serdes
class MaterializeOnCronRule(AutoMaterializeRule, NamedTuple('_MaterializeOnCronRule', [('cron_schedule', str), ('timezone', str), ('all_partitions', bool)])):
@property
def decision_type(self) -> AutoMaterializeDecisionType:
pass
@property
def description(self) -> str:
... | 9 | 1 | 25 | 2 | 21 | 2 | 3 | 0.09 | 2 | 10 | 5 | 0 | 5 | 1 | 5 | 5 | 139 | 12 | 116 | 33 | 95 | 11 | 39 | 17 | 32 | 6 | 1 | 2 | 14 |
21,181 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.MaterializeOnMissingRule | from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.asset_graph_view.serializable_entity_subset import SerializableEntitySubset
from dagster._core.definitions.auto_materialize_rule import AutoMaterializeRule
from dagster._core.definitions.declarative_automation.legacy.valid_asset_subset import Val... | @whitelist_for_serdes
class MaterializeOnMissingRule(AutoMaterializeRule, NamedTuple('_MaterializeOnMissingRule', [])):
@property
def decision_type(self) -> AutoMaterializeDecisionType:
pass
@property
def description(self) -> str:
pass
def get_handled_subset(self, context: 'Automat... | 8 | 2 | 26 | 1 | 22 | 3 | 3 | 0.14 | 2 | 9 | 6 | 0 | 4 | 0 | 4 | 4 | 110 | 7 | 90 | 16 | 80 | 13 | 24 | 12 | 18 | 5 | 1 | 3 | 10 |
21,182 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.MaterializeOnParentUpdatedRule | from collections.abc import Iterable, Mapping, Sequence
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional
from dagster._core.definitions.auto_materialize_rule_evaluation import AutoMaterializeDecisionType, ParentUpdatedRuleEvaluationData, WaitingOnAssetsRuleEvaluationData
from dagster_shared.serdes im... | @whitelist_for_serdes
class MaterializeOnParentUpdatedRule(AutoMaterializeRule, NamedTuple('_MaterializeOnParentUpdatedRule', [('updated_parent_filter', Optional[AutoMaterializeAssetPartitionsFilter])])):
def __new__(cls, updated_parent_filter: Optional[AutoMaterializeAssetPartitionsFilter]=None):
pass
... | 8 | 1 | 27 | 3 | 23 | 2 | 4 | 0.07 | 2 | 11 | 5 | 0 | 4 | 0 | 4 | 4 | 120 | 13 | 100 | 32 | 84 | 7 | 38 | 22 | 32 | 10 | 1 | 3 | 14 |
21,183 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.MaterializeOnRequiredForFreshnessRule | from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.definitions.freshness_based_auto_materialize import freshness_evaluation_results_for_asset_key
from dagster._core.definitions.auto_materialize_rule import AutoMaterializeRule
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional
fro... | @whitelist_for_serdes
class MaterializeOnRequiredForFreshnessRule(AutoMaterializeRule, NamedTuple('_MaterializeOnRequiredForFreshnessRule', [])):
@property
def decision_type(self) -> AutoMaterializeDecisionType:
pass
@property
def description(self) -> str:
pass
def evaluate_for_ass... | 7 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 2 | 3 | 2 | 0 | 3 | 0 | 3 | 3 | 23 | 3 | 20 | 12 | 9 | 0 | 10 | 6 | 5 | 1 | 1 | 0 | 3 |
21,184 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.SkipOnBackfillInProgressRule | from dagster._core.definitions.auto_materialize_rule import AutoMaterializeRule
from dagster._core.definitions.auto_materialize_rule_evaluation import AutoMaterializeDecisionType, ParentUpdatedRuleEvaluationData, WaitingOnAssetsRuleEvaluationData
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional
from ... | @whitelist_for_serdes
class SkipOnBackfillInProgressRule(AutoMaterializeRule, NamedTuple('_SkipOnBackfillInProgressRule', [('all_partitions', bool)])):
@property
def decision_type(self) -> AutoMaterializeDecisionType:
pass
@property
def description(self) -> str:
pass
def evaluate_f... | 7 | 0 | 11 | 1 | 10 | 1 | 2 | 0.06 | 2 | 4 | 3 | 0 | 3 | 0 | 3 | 3 | 42 | 5 | 35 | 14 | 23 | 2 | 16 | 7 | 11 | 3 | 1 | 1 | 6 |
21,185 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.SkipOnNotAllParentsUpdatedRule | from collections import defaultdict
from dagster._core.definitions.auto_materialize_rule import AutoMaterializeRule
from dagster._core.definitions.auto_materialize_rule_evaluation import AutoMaterializeDecisionType, ParentUpdatedRuleEvaluationData, WaitingOnAssetsRuleEvaluationData
from dagster_shared.serdes import whi... | @whitelist_for_serdes
class SkipOnNotAllParentsUpdatedRule(AutoMaterializeRule, NamedTuple('_SkipOnNotAllParentsUpdatedRule', [('require_update_for_all_parent_partitions', bool)])):
'''An auto-materialize rule that enforces that an asset can only be materialized if all parents
have been materialized since the a... | 7 | 1 | 24 | 2 | 20 | 2 | 2 | 0.22 | 2 | 6 | 3 | 0 | 3 | 0 | 3 | 3 | 95 | 11 | 69 | 26 | 52 | 15 | 25 | 14 | 20 | 4 | 1 | 2 | 7 |
21,186 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.SkipOnNotAllParentsUpdatedSinceCronRule | from dagster._core.definitions.auto_materialize_rule import AutoMaterializeRule
from dagster._core.definitions.declarative_automation.legacy.valid_asset_subset import ValidAssetSubset
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional
from dagster._core.definitions.events import AssetKey, AssetKeyParti... | null | 11 | 4 | 32 | 1 | 25 | 6 | 2 | 0.22 | 2 | 10 | 6 | 0 | 7 | 1 | 7 | 7 | 238 | 16 | 182 | 52 | 149 | 40 | 45 | 27 | 36 | 3 | 1 | 2 | 14 |
21,187 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.SkipOnParentMissingRule | from dagster._core.definitions.auto_materialize_rule_evaluation import AutoMaterializeDecisionType, ParentUpdatedRuleEvaluationData, WaitingOnAssetsRuleEvaluationData
from collections import defaultdict
from dagster_shared.serdes import whitelist_for_serdes
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Opt... | @whitelist_for_serdes
class SkipOnParentMissingRule(AutoMaterializeRule, NamedTuple('_SkipOnParentMissingRule', [])):
@property
def decision_type(self) -> AutoMaterializeDecisionType:
pass
@property
def description(self) -> str:
pass
def evaluate_for_asset(self, context: 'Automatio... | 7 | 0 | 18 | 1 | 16 | 1 | 3 | 0.06 | 2 | 6 | 3 | 0 | 3 | 0 | 3 | 3 | 58 | 5 | 50 | 18 | 38 | 3 | 21 | 11 | 16 | 6 | 1 | 3 | 8 |
21,188 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.SkipOnParentOutdatedRule | from dagster._core.definitions.auto_materialize_rule import AutoMaterializeRule
from dagster_shared.serdes import whitelist_for_serdes
from collections import defaultdict
from dagster._core.definitions.auto_materialize_rule_evaluation import AutoMaterializeDecisionType, ParentUpdatedRuleEvaluationData, WaitingOnAssetsR... | @whitelist_for_serdes
class SkipOnParentOutdatedRule(AutoMaterializeRule, NamedTuple('_SkipOnParentOutdatedRule', [])):
@property
def decision_type(self) -> AutoMaterializeDecisionType:
pass
@property
def description(self) -> str:
pass
def evaluate_for_asset(self, context: 'Automat... | 7 | 0 | 16 | 1 | 14 | 1 | 2 | 0.04 | 2 | 6 | 3 | 0 | 3 | 0 | 3 | 3 | 52 | 5 | 45 | 15 | 36 | 2 | 20 | 11 | 15 | 5 | 1 | 3 | 7 |
21,189 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.SkipOnRequiredButNonexistentParentsRule | from dagster_shared.serdes import whitelist_for_serdes
from collections import defaultdict
from dagster._core.definitions.auto_materialize_rule_evaluation import AutoMaterializeDecisionType, ParentUpdatedRuleEvaluationData, WaitingOnAssetsRuleEvaluationData
from dagster._core.definitions.auto_materialize_rule import Au... | @whitelist_for_serdes
class SkipOnRequiredButNonexistentParentsRule(AutoMaterializeRule, NamedTuple('_SkipOnRequiredButNonexistentParentsRule', [])):
@property
def decision_type(self) -> AutoMaterializeDecisionType:
pass
@property
def description(self) -> str:
pass
def evaluate_for... | 7 | 0 | 14 | 1 | 13 | 0 | 2 | 0 | 2 | 6 | 3 | 0 | 3 | 0 | 3 | 3 | 49 | 6 | 43 | 17 | 32 | 0 | 17 | 11 | 12 | 3 | 1 | 2 | 5 |
21,190 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/auto_materialize_rule_impls.py | dagster._core.definitions.auto_materialize_rule_impls.SkipOnRunInProgressRule | from dagster._core.definitions.auto_materialize_rule_evaluation import AutoMaterializeDecisionType, ParentUpdatedRuleEvaluationData, WaitingOnAssetsRuleEvaluationData
from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional
from dagster._core.storage.dagster_run import IN_PROGRESS_RUN_STATUSES, RunsFilter
fr... | @whitelist_for_serdes
class SkipOnRunInProgressRule(AutoMaterializeRule, NamedTuple('_SkipOnRunInProgressRule', [])):
@property
def decision_type(self) -> AutoMaterializeDecisionType:
pass
@property
def description(self) -> str:
pass
def evaluate_for_asset(self, context: 'Automatio... | 7 | 0 | 11 | 0 | 11 | 0 | 2 | 0 | 2 | 3 | 2 | 0 | 3 | 0 | 3 | 3 | 39 | 3 | 36 | 12 | 27 | 0 | 16 | 8 | 11 | 4 | 1 | 2 | 6 |
21,191 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/automation_condition_sensor_definition.py | dagster._core.definitions.automation_condition_sensor_definition.AutomationConditionSensorDefinition | from dagster._core.definitions.utils import check_valid_name
from dagster._core.definitions.metadata import RawMetadataMapping
from collections.abc import Mapping
from dagster._core.definitions.declarative_automation.automation_condition import AutomationCondition
from typing import Any, Optional, cast
from dagster._co... | @public
@beta_param(param='use_user_code_server')
@beta_param(param='default_condition')
class AutomationConditionSensorDefinition(SensorDefinition):
'''Targets a set of assets and repeatedly evaluates all the AutomationConditions on all of
those assets to determine which to request runs for.
Args:
... | 15 | 1 | 10 | 1 | 9 | 0 | 2 | 0.98 | 1 | 10 | 2 | 0 | 6 | 3 | 6 | 31 | 131 | 16 | 58 | 29 | 32 | 57 | 20 | 10 | 13 | 3 | 2 | 1 | 9 |
21,192 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/automation_tick_evaluation_context.py | dagster._core.definitions.automation_tick_evaluation_context.AutomationTickEvaluationContext | from typing import TYPE_CHECKING, AbstractSet, Any, Optional, cast
from dagster._core.definitions.asset_daemon_cursor import AssetDaemonCursor
from dagster._core.definitions.declarative_automation.serialized_objects import AutomationConditionEvaluation
import datetime
from dagster._core.definitions.run_request import R... |
class AutomationTickEvaluationContext:
def __init__(self, evaluation_id: int, instance: 'DagsterInstance', asset_graph: BaseAssetGraph, cursor: AssetDaemonCursor, materialize_run_tags: Mapping[str, str], observe_run_tags: Mapping[str, str], auto_observe_asset_keys: AbstractSet[AssetKey], asset_selection: AssetSel... | 16 | 0 | 14 | 0 | 14 | 0 | 2 | 0.02 | 0 | 14 | 3 | 0 | 9 | 6 | 9 | 9 | 141 | 12 | 127 | 57 | 92 | 3 | 46 | 31 | 36 | 5 | 0 | 2 | 15 |
21,193 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/backfill_policy.py | dagster._core.definitions.backfill_policy.BackfillPolicy | import dagster._check as check
from typing import NamedTuple, Optional
from dagster._serdes import whitelist_for_serdes
from dagster._annotations import public
@public
@whitelist_for_serdes
class BackfillPolicy(NamedTuple('_BackfillPolicy', [('max_partitions_per_run', Optional[int])])):
"""A BackfillPolicy specifi... | @public
@whitelist_for_serdes
class BackfillPolicy(NamedTuple('_BackfillPolicy', [('max_partitions_per_run', Optional[int])])):
'''A BackfillPolicy specifies how Dagster should attempt to backfill a partitioned asset.
There are two main kinds of backfill policies: single-run and multi-run.
An asset with a s... | 13 | 3 | 6 | 0 | 4 | 1 | 1 | 0.71 | 1 | 3 | 1 | 0 | 3 | 0 | 5 | 5 | 74 | 14 | 35 | 16 | 17 | 25 | 13 | 6 | 7 | 2 | 1 | 1 | 7 |
21,194 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/backfill_policy.py | dagster._core.definitions.backfill_policy.BackfillPolicyType | from enum import Enum
class BackfillPolicyType(Enum):
SINGLE_RUN = 'SINGLE_RUN'
MULTI_RUN = 'MULTI_RUN' |
class BackfillPolicyType(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
21,195 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/composition.py | dagster._core.definitions.composition.CompleteCompositionContext | from dagster._core.definitions.output import OutputDefinition, OutputMapping
from dagster._core.definitions.dependency import DependencyDefinition, DependencyMapping, DynamicCollectDependencyDefinition, IDependencyDefinition, MultiDependencyDefinition, NodeInvocation
from dagster._core.definitions.node_definition impor... |
class CompleteCompositionContext(NamedTuple):
'''The processed information from capturing node invocations during a composition function.'''
@staticmethod
def create(name: str, source: str, invocations: Mapping[str, 'InvokedNode'], output_mapping_dict: Mapping[str, OutputMapping], pending_invocations: Mapp... | 3 | 1 | 80 | 7 | 73 | 0 | 13 | 0.01 | 1 | 12 | 6 | 0 | 0 | 0 | 1 | 1 | 91 | 9 | 81 | 21 | 71 | 1 | 38 | 14 | 35 | 13 | 1 | 5 | 13 |
21,196 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/composition.py | dagster._core.definitions.composition.DynamicFanIn | from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, NoReturn, Optional, TypeVar, Union, cast
class DynamicFanIn(NamedTuple):
"""Type to signify collecting over a dynamic output, output by collect() on a
InvokedNodeDynamicOutputWrapper.
"""
node_name: str
output_name: ... |
class DynamicFanIn(NamedTuple):
'''Type to signify collecting over a dynamic output, output by collect() on a
InvokedNodeDynamicOutputWrapper.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 1 | 3 | 1 | 2 | 3 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,197 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/composition.py | dagster._core.definitions.composition.InProgressCompositionContext | from dagster._core.definitions.policy import RetryPolicy
from dagster._core.errors import DagsterInvalidDefinitionError, DagsterInvalidInvocationError, DagsterInvariantViolationError
from dagster._core.definitions.output import OutputDefinition, OutputMapping
from dagster._core.definitions.hook_definition import HookDe... |
class InProgressCompositionContext:
'''This context captures invocations of nodes within a
composition function such as @job or @graph.
'''
def __init__(self, name: str, source: str):
pass
def observe_invocation(self, given_alias: Optional[str], node_def: NodeDefinition, input_bindings: M... | 5 | 1 | 12 | 1 | 12 | 0 | 2 | 0.06 | 0 | 6 | 4 | 0 | 4 | 0 | 4 | 4 | 63 | 7 | 53 | 17 | 38 | 3 | 31 | 7 | 26 | 4 | 0 | 2 | 8 |
21,198 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/composition.py | dagster._core.definitions.composition.InputMappingNode | from dagster._core.definitions.input import InputDefinition, InputMapping
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, NoReturn, Optional, TypeVar, Union, cast
class InputMappingNode(NamedTuple):
input_def: InputDefinition |
class InputMappingNode(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,199 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/composition.py | dagster._core.definitions.composition.InvokedNode | from dagster._core.definitions.hook_definition import HookDefinition
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, NoReturn, Optional, TypeVar, Union, cast
from collections.abc import Mapping, Sequence
from dagster._core.definitions.policy import RetryPolicy
from dagster._core.defin... |
class InvokedNode(NamedTuple):
'''The metadata about a node invocation saved by the current composition context.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 1 | 7 | 1 | 6 | 1 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.