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,300 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/dependency.py | dagster._core.definitions.dependency.NodeInvocation | from collections.abc import Iterable, Iterator, Mapping, Sequence
from dagster._core.definitions.policy import RetryPolicy
from dagster._core.definitions.hook_definition import HookDefinition
from dagster._annotations import PublicAttr, public
from typing import TYPE_CHECKING, AbstractSet, Any, Generic, NamedTuple, Opt... | @public
class NodeInvocation(NamedTuple('Node', [('name', PublicAttr[str]), ('alias', PublicAttr[Optional[str]]), ('tags', PublicAttr[Mapping[str, Any]]), ('hook_defs', PublicAttr[AbstractSet[HookDefinition]]), ('retry_policy', PublicAttr[Optional[RetryPolicy]])])):
'''Identifies an instance of a node in a graph de... | 4 | 1 | 10 | 0 | 10 | 0 | 2 | 0.66 | 1 | 6 | 2 | 0 | 2 | 1 | 2 | 2 | 61 | 8 | 32 | 22 | 11 | 21 | 7 | 4 | 4 | 2 | 1 | 1 | 3 |
21,301 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/dependency.py | dagster._core.definitions.dependency.NodeOutput | from typing import TYPE_CHECKING, AbstractSet, Any, Generic, NamedTuple, Optional, Union, cast
from dagster._core.definitions.output import OutputDefinition
from dagster._core.definitions.utils import DEFAULT_OUTPUT, struct_to_string
import dagster._check as check
class NodeOutput(NamedTuple('_NodeOutput', [('node', N... |
class NodeOutput(NamedTuple('_NodeOutput', [('node', Node), ('output_def', OutputDefinition)])):
def __new__(cls, node: Node, output_def: OutputDefinition):
pass
def _inner_str(self) -> str:
pass
def __str__(self):
pass
def __repr__(self):
pass
def __hash__(self... | 14 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 7 | 2 | 0 | 10 | 0 | 10 | 10 | 41 | 9 | 32 | 14 | 18 | 0 | 21 | 11 | 10 | 1 | 1 | 0 | 10 |
21,302 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/dependency.py | dagster._core.definitions.dependency.NodeOutputHandle | from typing import TYPE_CHECKING, AbstractSet, Any, Generic, NamedTuple, Optional, Union, cast
from dagster._record import record
@record(checked=False)
class NodeOutputHandle(Generic[T_OptionalNodeHandle]):
"""A structured object to uniquely identify outputs in the potentially recursive graph structure."""
no... | @record(checked=False)
class NodeOutputHandle(Generic[T_OptionalNodeHandle]):
'''A structured object to uniquely identify outputs in the potentially recursive graph structure.'''
def __str__(self) -> str:
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.2 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 3 | 8 | 2 | 5 | 2 | 3 | 1 | 5 | 2 | 3 | 1 | 1 | 0 | 1 |
21,303 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/dependency.py | dagster._core.definitions.dependency.OpNode | from dagster._core.definitions.hook_definition import HookDefinition
import dagster._check as check
from collections.abc import Iterable, Iterator, Mapping, Sequence
from dagster._core.definitions.policy import RetryPolicy
from typing import TYPE_CHECKING, AbstractSet, Any, Generic, NamedTuple, Optional, Union, cast
c... |
class OpNode(Node):
def __init__(self, name: str, definition: 'OpDefinition', graph_definition: 'GraphDefinition', tags: Optional[Mapping[str, str]]=None, hook_defs: Optional[AbstractSet[HookDefinition]]=None, retry_policy: Optional[RetryPolicy]=None):
pass
def get_resource_requirements(self, outer_c... | 4 | 0 | 14 | 1 | 12 | 0 | 2 | 0.03 | 1 | 10 | 6 | 0 | 3 | 0 | 3 | 43 | 46 | 6 | 39 | 22 | 20 | 1 | 17 | 9 | 11 | 4 | 5 | 2 | 6 |
21,304 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/dynamic_partitions_request.py | dagster._core.definitions.dynamic_partitions_request.AddDynamicPartitionsRequest | from dagster_shared.serdes import whitelist_for_serdes
from typing import NamedTuple
from collections.abc import Sequence
import dagster._check as check
from dagster._annotations import public
@whitelist_for_serdes
@public
class AddDynamicPartitionsRequest(NamedTuple('_AddDynamicPartitionsRequest', [('partitions_def_n... | @whitelist_for_serdes
@public
class AddDynamicPartitionsRequest(NamedTuple('_AddDynamicPartitionsRequest', [('partitions_def_name', str), ('partition_keys', Sequence[str])])):
'''A request to add partitions to a dynamic partitions definition, to be evaluated by a sensor or schedule.'''
def __new__(cls, partiti... | 4 | 1 | 10 | 0 | 10 | 0 | 1 | 0.05 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 21 | 1 | 19 | 14 | 5 | 1 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,305 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/dynamic_partitions_request.py | dagster._core.definitions.dynamic_partitions_request.DeleteDynamicPartitionsRequest | from dagster_shared.serdes import whitelist_for_serdes
from collections.abc import Sequence
from typing import NamedTuple
from dagster._annotations import public
import dagster._check as check
@whitelist_for_serdes
@public
class DeleteDynamicPartitionsRequest(NamedTuple('_AddDynamicPartitionsRequest', [('partitions_de... | @whitelist_for_serdes
@public
class DeleteDynamicPartitionsRequest(NamedTuple('_AddDynamicPartitionsRequest', [('partitions_def_name', str), ('partition_keys', Sequence[str])])):
'''A request to delete partitions to a dynamic partitions definition, to be evaluated by a sensor or schedule.'''
def __new__(cls, p... | 4 | 1 | 10 | 0 | 10 | 0 | 1 | 0.05 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 21 | 1 | 19 | 14 | 5 | 1 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,306 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.AssetKeyPartitionKey | from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
from dagster._core.definitions.asset_key import AssetKey as AssetKey, CoercibleToAssetKey as CoercibleToAssetKey, CoercibleToAssetKeyPrefix as CoercibleToAssetKeyPrefix, parse_asset_key_string
class AssetK... |
class AssetKeyPartitionKey(NamedTuple):
'''An AssetKey with an (optional) partition key. Refers either to a non-partitioned asset or a
partition of a partitioned asset.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 1 | 3 | 2 | 2 | 3 | 3 | 2 | 2 | 0 | 1 | 0 | 0 |
21,307 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.AssetLineageInfo | from dagster._serdes import whitelist_for_serdes
from dagster._core.definitions.asset_key import AssetKey as AssetKey, CoercibleToAssetKey as CoercibleToAssetKey, CoercibleToAssetKeyPrefix as CoercibleToAssetKeyPrefix, parse_asset_key_string
import dagster._check as check
from typing import TYPE_CHECKING, AbstractSet, ... | @whitelist_for_serdes
class AssetLineageInfo(NamedTuple('_AssetLineageInfo', [('asset_key', AssetKey), ('partitions', AbstractSet[str])])):
def __new__(cls, asset_key: AssetKey, partitions: Optional[AbstractSet[str]]=None):
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 7 | 0 | 7 | 4 | 3 | 0 | 5 | 2 | 3 | 1 | 1 | 0 | 1 |
21,308 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.AssetMaterialization | from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
from collections.abc import Mapping, Sequence
from dagster._annotations import PublicAttr, beta_param, deprecated, public
from dagster._core.definitions.asset_key import AssetKey as AssetKey, CoercibleToAss... | @whitelist_for_serdes(old_storage_names={'Materialization'}, serializer=AssetMaterializationSerializer, storage_field_names={'metadata': 'metadata_entries'}, field_serializers={'metadata': MetadataFieldSerializer})
@public
class AssetMaterialization(NamedTuple('_AssetMaterialization', [('asset_key', PublicAttr[AssetKey... | 10 | 2 | 19 | 2 | 15 | 2 | 2 | 0.35 | 2 | 7 | 2 | 0 | 3 | 3 | 4 | 25 | 119 | 15 | 77 | 38 | 43 | 27 | 24 | 8 | 18 | 5 | 5 | 2 | 9 |
21,309 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.AssetMaterializationSerializer | from dagster._core.definitions.asset_key import AssetKey as AssetKey, CoercibleToAssetKey as CoercibleToAssetKey, CoercibleToAssetKeyPrefix as CoercibleToAssetKeyPrefix, parse_asset_key_string
from dagster_shared.serdes import NamedTupleSerializer
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, N... |
class AssetMaterializationSerializer(NamedTupleSerializer):
def before_unpack(self, context, unpacked_dict: Any) -> Any:
pass | 2 | 0 | 5 | 0 | 4 | 1 | 2 | 0.8 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 34 | 9 | 0 | 5 | 2 | 3 | 4 | 5 | 2 | 3 | 2 | 7 | 1 | 2 |
21,310 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.AssetObservation | from dagster._core.definitions.metadata import MetadataFieldSerializer, MetadataMapping, MetadataValue, RawMetadataValue, normalize_metadata
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
from dagster._core.definitions.data_version import _OLD_DATA_VERS... | @whitelist_for_serdes(storage_field_names={'metadata': 'metadata_entries'}, field_serializers={'metadata': MetadataFieldSerializer})
@public
class AssetObservation(NamedTuple('_AssetObservation', [('asset_key', PublicAttr[AssetKey]), ('description', PublicAttr[Optional[str]]), ('metadata', PublicAttr[Mapping[str, Metad... | 9 | 1 | 11 | 1 | 10 | 0 | 2 | 0.2 | 2 | 3 | 0 | 0 | 4 | 3 | 4 | 25 | 75 | 8 | 56 | 32 | 28 | 11 | 16 | 6 | 11 | 3 | 5 | 1 | 6 |
21,311 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.AssetPartitionWipeRange | from dagster._core.definitions.asset_key import AssetKey as AssetKey, CoercibleToAssetKey as CoercibleToAssetKey, CoercibleToAssetKeyPrefix as CoercibleToAssetKeyPrefix, parse_asset_key_string
from dagster._core.definitions.partitions.partition_key_range import PartitionKeyRange
from typing import TYPE_CHECKING, Abstra... |
class AssetPartitionWipeRange(NamedTuple):
'''An AssetKey with a partition range.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,312 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.DynamicOutput | from dagster._annotations import PublicAttr, beta_param, deprecated, public
from dagster._core.definitions.utils import DEFAULT_OUTPUT, check_valid_name
from collections.abc import Mapping, Sequence
import dagster._check as check
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optiona... |
class DynamicOutput(Generic[T]):
'''Variant of :py:class:`Output <dagster.Output>` used to support
dynamic mapping & collect. Each ``DynamicOutput`` produced by an op represents
one item in a set that can be processed individually with ``map`` or gathered
with ``collect``.
Each ``DynamicOutput`` mu... | 14 | 4 | 5 | 0 | 5 | 1 | 1 | 0.62 | 1 | 4 | 0 | 0 | 6 | 4 | 6 | 8 | 68 | 8 | 37 | 21 | 17 | 23 | 16 | 11 | 9 | 1 | 1 | 0 | 6 |
21,313 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.EventWithMetadata | from collections.abc import Mapping, Sequence
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
from dagster._core.definitions.metadata import MetadataFieldSerializer, MetadataMapping, MetadataValue, RawMetadataValue, normalize_metadata
from abc import ABC... |
class EventWithMetadata(ABC):
@abstractmethod
def with_metadata(self, metadata: Optional[Mapping[str, RawMetadataValue]]) -> Self:
'''Returns a new instance of the event with the same properties as the original,
but with metadata replaced by the provided value.
'''
pass | 3 | 1 | 4 | 0 | 1 | 3 | 1 | 1 | 1 | 2 | 0 | 4 | 1 | 0 | 1 | 21 | 6 | 0 | 3 | 3 | 0 | 3 | 2 | 2 | 0 | 1 | 4 | 0 | 1 |
21,314 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.ExpectationResult | from collections.abc import Mapping, Sequence
from dagster._annotations import PublicAttr, beta_param, deprecated, public
from dagster._serdes import whitelist_for_serdes
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
import dagster._check as check
from... | @deprecated(breaking_version='2.0', additional_warn_text='If using assets, use AssetCheckResult and @asset_check instead.')
@whitelist_for_serdes(storage_field_names={'metadata': 'metadata_entries'}, field_serializers={'metadata': MetadataFieldSerializer})
@public
class ExpectationResult(NamedTuple('_ExpectationResult'... | 5 | 1 | 18 | 1 | 17 | 0 | 1 | 0.46 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 1 | 45 | 4 | 28 | 19 | 10 | 13 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
21,315 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.Failure | from dagster._annotations import PublicAttr, beta_param, deprecated, public
from collections.abc import Mapping, Sequence
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
import dagster._check as check
from dagster._core.definitions.metadata import Metada... | @public
class Failure(Exception):
'''Event indicating op failure.
Raise events of this type from within op compute functions or custom type checks in order to
indicate an unrecoverable failure in user code to the Dagster machinery and return
structured metadata about the failure.
Args:
descr... | 3 | 1 | 12 | 0 | 12 | 0 | 1 | 1.08 | 1 | 4 | 0 | 0 | 1 | 3 | 1 | 11 | 30 | 3 | 13 | 10 | 6 | 14 | 6 | 5 | 4 | 1 | 3 | 0 | 1 |
21,316 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.HookExecutionResult | from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
import dagster._check as check
class HookExecutionResult(NamedTuple('_HookExecutionResult', [('hook_name', str), ('is_skipped', bool)])):
"""This event is used internally to indicate the execution resu... |
class HookExecutionResult(NamedTuple('_HookExecutionResult', [('hook_name', str), ('is_skipped', bool)])):
'''This event is used internally to indicate the execution result of a hook, e.g. whether the
user-defined hook function is skipped.
Args:
hook_name (str): The name of the hook.
is_ski... | 2 | 1 | 6 | 0 | 6 | 0 | 1 | 0.67 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 17 | 2 | 9 | 4 | 5 | 6 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,317 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.ObjectStoreOperation | from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
import dagster._check as check
class ObjectStoreOperation(NamedTuple('_ObjectStoreOperation', [('op', ObjectStoreOperationType), ('key', str), ('dest_key', Optional[str]), ('obj', Any), ('serialization_str... |
class ObjectStoreOperation(NamedTuple('_ObjectStoreOperation', [('op', ObjectStoreOperationType), ('key', str), ('dest_key', Optional[str]), ('obj', Any), ('serialization_strategy_name', Optional[str]), ('object_store_name', Optional[str]), ('value_name', Optional[str]), ('version', Optional[str]), ('mapping_key', Opt... | 4 | 1 | 21 | 0 | 21 | 1 | 1 | 0.29 | 1 | 5 | 1 | 0 | 1 | 0 | 2 | 2 | 79 | 4 | 59 | 30 | 29 | 17 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
21,318 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.ObjectStoreOperationType | from enum import Enum
class ObjectStoreOperationType(Enum):
SET_OBJECT = 'SET_OBJECT'
GET_OBJECT = 'GET_OBJECT'
RM_OBJECT = 'RM_OBJECT'
CP_OBJECT = 'CP_OBJECT' |
class ObjectStoreOperationType(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
21,319 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.Output | from dagster._annotations import PublicAttr, beta_param, deprecated, public
from dagster._core.definitions.utils import DEFAULT_OUTPUT, check_valid_name
import dagster._check as check
from collections.abc import Mapping, Sequence
from dagster._core.definitions.data_version import _OLD_DATA_VERSION_TAG, _OLD_INPUT_DATA_... | @beta_param(param='data_version')
@public
class Output(Generic[T], EventWithMetadata):
'''Event corresponding to one of an op's outputs.
Op compute functions must explicitly yield events of this type when they have more than
one output, or when they also yield events of other types, or when defining a op us... | 19 | 5 | 6 | 0 | 5 | 1 | 1 | 0.49 | 2 | 5 | 1 | 0 | 8 | 5 | 8 | 31 | 87 | 11 | 51 | 27 | 26 | 25 | 21 | 14 | 12 | 1 | 5 | 0 | 8 |
21,320 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/events.py | dagster._core.definitions.events.RetryRequested | from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
import dagster._check as check
from dagster._annotations import PublicAttr, beta_param, deprecated, public
@public
class RetryRequested(Exception):
"""An exception to raise from an op to indicate that ... | @public
class RetryRequested(Exception):
'''An exception to raise from an op to indicate that it should be retried.
Args:
max_retries (Optional[int]):
The max number of retries this step should attempt before failing
seconds_to_wait (Optional[Union[float,int]]):
Seconds t... | 3 | 1 | 6 | 0 | 6 | 0 | 1 | 2.29 | 1 | 3 | 0 | 0 | 1 | 2 | 1 | 11 | 27 | 4 | 7 | 6 | 3 | 16 | 5 | 4 | 3 | 1 | 3 | 0 | 1 |
21,321 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/executor_definition.py | dagster._core.definitions.executor_definition.ExecutorDefinition | from collections.abc import Mapping, Sequence
import dagster._check as check
from typing import TYPE_CHECKING, Any, Callable, Optional, Union, overload
from dagster._core.definitions.definition_config_schema import IDefinitionConfigSchema, convert_user_facing_definition_config_schema
from dagster._core.definitions.conf... | @public
class ExecutorDefinition(NamedConfigurableDefinition):
'''An executor is responsible for executing the steps of a job.
Args:
name (str): The name of the executor.
config_schema (Optional[ConfigSchema]): The schema for the config. Configuration data
available in `init_context.... | 20 | 5 | 10 | 1 | 7 | 3 | 1 | 0.63 | 1 | 6 | 2 | 0 | 8 | 5 | 9 | 36 | 130 | 15 | 71 | 40 | 35 | 45 | 29 | 17 | 19 | 2 | 6 | 1 | 10 |
21,322 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/executor_definition.py | dagster._core.definitions.executor_definition.ExecutorRequirement | from enum import Enum as PyEnum
class ExecutorRequirement(PyEnum):
"""An ExecutorDefinition can include a list of requirements that the system uses to
check whether the executor will be able to work for a particular job execution.
"""
RECONSTRUCTABLE_PIPELINE = 'RECONSTRUCTABLE_PIPELINE'
RECONSTRUC... |
class ExecutorRequirement(PyEnum):
'''An ExecutorDefinition can include a list of requirements that the system uses to
check whether the executor will be able to work for a particular job execution.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 16 | 3 | 7 | 5 | 6 | 7 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
21,323 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/executor_definition.py | dagster._core.definitions.executor_definition._ExecutorDecoratorCallable | import dagster._check as check
from functools import update_wrapper
class _ExecutorDecoratorCallable:
def __init__(self, name=None, config_schema=None, requirements=None):
self.name = check.opt_str_param(name, 'name')
self.config_schema = config_schema
self.requirements = requirements
... |
class _ExecutorDecoratorCallable:
def __init__(self, name=None, config_schema=None, requirements=None):
pass
def __call__(self, fn: ExecutorCreationFunction) -> ExecutorDefinition:
pass | 3 | 0 | 11 | 2 | 8 | 2 | 2 | 0.18 | 0 | 1 | 1 | 0 | 2 | 3 | 2 | 2 | 23 | 5 | 17 | 7 | 14 | 3 | 12 | 7 | 9 | 2 | 0 | 1 | 3 |
21,324 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/freshness_policy.py | dagster._core.definitions.freshness_policy.FreshnessConstraint | from typing import AbstractSet, NamedTuple, Optional
import datetime
from dagster._core.definitions.events import AssetKey
class FreshnessConstraint(NamedTuple):
asset_keys: AbstractSet[AssetKey]
required_data_time: datetime.datetime
required_by_time: datetime.datetime |
class FreshnessConstraint(NamedTuple):
pass | 1 | 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,325 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/freshness_policy.py | dagster._core.definitions.freshness_policy.FreshnessMinutes | from typing import AbstractSet, NamedTuple, Optional
class FreshnessMinutes(NamedTuple):
overdue_minutes: float
lag_minutes: float |
class FreshnessMinutes(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,326 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/graph_definition.py | dagster._core.definitions.graph_definition.GraphDefinition | from dagster._core.definitions.logger_definition import LoggerDefinition
from dagster._core.types.dagster_type import DagsterType, DagsterTypeKind, construct_dagster_type_dictionary
from dagster._core.definitions.resource_requirement import ResourceRequirement
from dagster._core.definitions.node_definition import NodeD... | @deprecated_param(param='node_input_source_assets', breaking_version='2.0', additional_warn_text='Use `input_assets` instead.')
@public
class GraphDefinition(NodeDefinition):
'''Defines a Dagster op graph.
An op graph is made up of
- Nodes, which can either be an op (the functional unit of computation), or ... | 90 | 13 | 12 | 1 | 9 | 3 | 2 | 0.35 | 1 | 27 | 14 | 1 | 56 | 3 | 56 | 121 | 850 | 128 | 535 | 235 | 360 | 189 | 269 | 123 | 204 | 6 | 7 | 4 | 97 |
21,327 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/graph_definition.py | dagster._core.definitions.graph_definition.SubselectedGraphDefinition | from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Optional, TypeVar, Union, cast
from collections.abc import Iterable, Iterator, Mapping, Sequence, Set
from dagster._core.definitions.dependency import DependencyMapping, DependencyStructure, GraphNode, Node, NodeHandle, NodeInput, NodeInputHandle, NodeInvoca... |
class SubselectedGraphDefinition(GraphDefinition):
'''Defines a subselected graph.
Args:
parent_graph_def (GraphDefinition): The parent graph that this current graph is subselected
from. This is used for tracking where the subselected graph originally comes from.
Note that we al... | 7 | 1 | 8 | 0 | 8 | 0 | 1 | 0.59 | 1 | 6 | 2 | 0 | 4 | 1 | 4 | 125 | 58 | 5 | 34 | 20 | 15 | 20 | 10 | 6 | 5 | 1 | 8 | 0 | 4 |
21,328 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/hook_definition.py | dagster._core.definitions.hook_definition.HookDefinition | from dagster._core.definitions.resource_requirement import HookResourceRequirement, ResourceRequirement
from collections.abc import Iterator
from dagster._core.errors import DagsterInvalidInvocationError
from dagster._annotations import PublicAttr, public
from typing import AbstractSet, Any, Callable, NamedTuple, Optio... | @public
class HookDefinition(NamedTuple('_HookDefinition', [('name', PublicAttr[str]), ('hook_fn', PublicAttr[Callable]), ('required_resource_keys', PublicAttr[AbstractSet[str]]), ('decorated_fn', PublicAttr[Optional[Callable]])])):
'''Define a hook which can be triggered during a op execution (e.g. a callback on t... | 5 | 2 | 38 | 2 | 30 | 6 | 5 | 0.26 | 1 | 11 | 5 | 0 | 3 | 0 | 3 | 3 | 137 | 11 | 100 | 34 | 72 | 26 | 40 | 14 | 32 | 12 | 1 | 4 | 15 |
21,329 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/inference.py | dagster._core.definitions.inference.InferredInputProps | from typing import Any, Callable, NamedTuple, Optional
from dagster._core.definitions.utils import NoValueSentinel
class InferredInputProps(NamedTuple):
"""The information about an input that can be inferred from the function signature."""
name: str
annotation: Any
description: Optional[str]
defaul... |
class InferredInputProps(NamedTuple):
'''The information about an input that can be inferred from the function signature.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 1 | 5 | 2 | 4 | 1 | 5 | 2 | 4 | 0 | 1 | 0 | 0 |
21,330 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/inference.py | dagster._core.definitions.inference.InferredOutputProps | from typing import Any, Callable, NamedTuple, Optional
class InferredOutputProps(NamedTuple):
"""The information about an input that can be inferred from the function signature."""
annotation: Any
description: Optional[str] |
class InferredOutputProps(NamedTuple):
'''The information about an input that can be inferred from the function signature.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,331 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/input.py | dagster._core.definitions.input.FanInInputPointer | from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, TypeVar, Union
import dagster._check as check
class FanInInputPointer(NamedTuple('_FanInInputPointer', [('node_name', str), ('input_name', str), ('fan_in_index', int)])):
def __new__(cls, node_name: str, input_name: str, fan_in_index: int):
... |
class FanInInputPointer(NamedTuple('_FanInInputPointer', [('node_name', str), ('input_name', str), ('fan_in_index', int)])):
def __new__(cls, node_name: str, input_name: str, fan_in_index: int):
pass | 2 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 12 | 0 | 12 | 6 | 6 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,332 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/input.py | dagster._core.definitions.input.GraphIn | from dagster._annotations import PublicAttr, deprecated_param, public, superseded
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, TypeVar, Union
@public
class GraphIn(NamedTuple('_GraphIn', [('description', PublicAttr[Optional[str]])])):
"""Represents information about an input that a graph ... | @public
class GraphIn(NamedTuple('_GraphIn', [('description', PublicAttr[Optional[str]])])):
'''Represents information about an input that a graph maps.
Args:
description (Optional[str]): Human-readable description of the input.
'''
def __new__(cls, description: Optional[str]=None):
pas... | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.8 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 2 | 12 | 3 | 5 | 3 | 2 | 4 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
21,333 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/input.py | dagster._core.definitions.input.In | from collections.abc import Mapping
from dagster._core.types.dagster_type import DagsterType, resolve_dagster_type
from dagster._core.definitions.events import AssetKey
from dagster._core.definitions.utils import NoValueSentinel, check_valid_name
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, Ty... | @public
class In(NamedTuple('_In', [('dagster_type', PublicAttr[Union[DagsterType, type[NoValueSentinel]]]), ('description', PublicAttr[Optional[str]]), ('default_value', PublicAttr[Any]), ('metadata', PublicAttr[Optional[Mapping[str, Any]]]), ('asset_key', PublicAttr[Optional[Union[AssetKey, Callable[['InputContext'],... | 6 | 1 | 15 | 0 | 15 | 1 | 2 | 0.34 | 1 | 8 | 2 | 0 | 2 | 5 | 3 | 3 | 92 | 5 | 67 | 39 | 34 | 23 | 8 | 5 | 4 | 2 | 1 | 0 | 5 |
21,334 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/input.py | dagster._core.definitions.input.InputDefinition | from dagster._core.definitions.events import AssetKey
from dagster._core.definitions.metadata import ArbitraryMetadataMapping, MetadataValue, RawMetadataValue, normalize_metadata
from dagster._core.types.dagster_type import DagsterType, resolve_dagster_type
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, O... | @superseded(additional_warn_text='Use `In` instead', emit_runtime_warning=False)
class InputDefinition:
'''Defines an argument to an op's compute function.
Inputs may flow from previous op outputs, or be stubbed using config. They may optionally
be typed using the Dagster type system.
Args:
name... | 28 | 5 | 11 | 1 | 8 | 2 | 2 | 0.35 | 0 | 9 | 3 | 0 | 15 | 0 | 16 | 16 | 234 | 39 | 144 | 43 | 105 | 51 | 80 | 21 | 63 | 5 | 0 | 1 | 27 |
21,335 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/input.py | dagster._core.definitions.input.InputMapping | from dagster._core.types.dagster_type import DagsterType, resolve_dagster_type
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, TypeVar, Union
from dagster._annotations import PublicAttr, deprecated_param, public, superseded
@deprecated_param(param='dagster_type', breaking_version='2.0', addition... | @deprecated_param(param='dagster_type', breaking_version='2.0', additional_warn_text='Any defined `dagster_type` should come from the upstream op `Output`.', emit_runtime_warning=False)
@public
class InputMapping(NamedTuple):
'''Defines an input mapping for a graph.
Args:
graph_input_name (str): Name of... | 9 | 1 | 4 | 0 | 4 | 0 | 2 | 1.15 | 1 | 5 | 3 | 0 | 4 | 0 | 4 | 4 | 67 | 11 | 26 | 11 | 19 | 30 | 18 | 9 | 13 | 2 | 1 | 1 | 6 |
21,336 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/input.py | dagster._core.definitions.input.InputPointer | import dagster._check as check
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, TypeVar, Union
class InputPointer(NamedTuple('_InputPointer', [('node_name', str), ('input_name', str)])):
def __new__(cls, node_name: str, input_name: str):
return super().__new__(cls, check.str_param(no... |
class InputPointer(NamedTuple('_InputPointer', [('node_name', str), ('input_name', str)])):
def __new__(cls, node_name: str, input_name: str):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 7 | 0 | 7 | 2 | 5 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,337 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/instigation_logger.py | dagster._core.definitions.instigation_logger.CapturedLogHandler | from dagster._utils.error import serializable_error_info_from_exc_info
from dagster_shared import seven
import sys
import logging
import traceback
from typing import IO, TYPE_CHECKING, Any, Optional
class CapturedLogHandler(logging.Handler):
"""Persist logging records to an IO stream controlled by the ComputeLogMa... |
class CapturedLogHandler(logging.Handler):
'''Persist logging records to an IO stream controlled by the ComputeLogManager.'''
def __init__(self, write_stream: IO):
pass
@property
def has_logged(self):
pass
def emit(self, record: logging.LogRecord):
pass | 5 | 1 | 7 | 1 | 6 | 0 | 2 | 0.05 | 1 | 4 | 0 | 0 | 3 | 2 | 3 | 23 | 26 | 5 | 20 | 9 | 15 | 1 | 17 | 8 | 13 | 3 | 3 | 1 | 5 |
21,338 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/instigation_logger.py | dagster._core.definitions.instigation_logger.DispatchingLogHandler | import logging
import threading
class DispatchingLogHandler(logging.Handler):
"""Proxies logging records to a set of downstream loggers which themselves will route to their own
set of handlers. Needed to bridge to the set of dagster logging utilities which were
implemented as loggers rather than log handl... |
class DispatchingLogHandler(logging.Handler):
'''Proxies logging records to a set of downstream loggers which themselves will route to their own
set of handlers. Needed to bridge to the set of dagster logging utilities which were
implemented as loggers rather than log handlers.
'''
def __init__(s... | 4 | 2 | 8 | 0 | 5 | 2 | 2 | 0.65 | 1 | 6 | 0 | 0 | 3 | 2 | 3 | 23 | 31 | 3 | 17 | 7 | 13 | 11 | 16 | 7 | 12 | 2 | 3 | 2 | 5 |
21,339 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/instigation_logger.py | dagster._core.definitions.instigation_logger.InstigationLogger | from collections.abc import Mapping, Sequence
import logging
from dagster._utils.error import serializable_error_info_from_exc_info
from dagster._core.log_manager import LOG_RECORD_METADATA_ATTR
from dagster._core.storage.compute_log_manager import ComputeIOType, ComputeLogManager
from contextlib import ExitStack
impor... |
class InstigationLogger(logging.Logger):
'''Logger exposed on the evaluation context of sensor/schedule evaluation functions. This is tied
to the Python logging system by setting up a custom logging handler that writes JSON payloads
representing the log events to the dagster-managed captured log manager. ... | 7 | 1 | 12 | 0 | 11 | 0 | 2 | 0.12 | 1 | 12 | 4 | 0 | 6 | 6 | 6 | 34 | 85 | 8 | 69 | 25 | 53 | 8 | 40 | 16 | 33 | 4 | 3 | 2 | 12 |
21,340 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/job_base.py | dagster._core.definitions.job_base.IJob | from abc import ABC, abstractmethod
from collections.abc import Iterable
from dagster._core.definitions.events import AssetKey
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from typing import TYPE_CHECKING, AbstractSet, Optional
class IJob(ABC):
"""IJob is a wrapper interface fo... |
class IJob(ABC):
'''IJob is a wrapper interface for JobDefinitions to be used as parameters to Dagster's
core execution APIs. This enables these execution APIs to operate on both in memory job
definitions to be executed in the current process (InMemoryJob) as well as definitions that
can be reconstruc... | 18 | 1 | 3 | 0 | 3 | 0 | 1 | 0.16 | 1 | 3 | 0 | 1 | 7 | 0 | 7 | 27 | 43 | 7 | 31 | 21 | 7 | 5 | 15 | 8 | 7 | 2 | 4 | 0 | 8 |
21,341 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/job_base.py | dagster._core.definitions.job_base.InMemoryJob | from typing import TYPE_CHECKING, AbstractSet, Optional
from dagster._core.definitions.events import AssetKey
from collections.abc import Iterable
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
class InMemoryJob(IJob):
def __init__(self, job_def: 'JobDefinition'):
self._... |
class InMemoryJob(IJob):
def __init__(self, job_def: 'JobDefinition'):
pass
def get_definition(self) -> 'JobDefinition':
pass
def get_repository_definition(self) -> Optional['RepositoryDefinition']:
pass
def get_subset(self, *, op_selection: Optional[Iterable[str]]=None, ass... | 11 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 7 | 1 | 7 | 34 | 40 | 6 | 34 | 21 | 14 | 0 | 16 | 9 | 8 | 2 | 5 | 0 | 8 |
21,342 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/job_definition.py | dagster._core.definitions.job_definition.JobDefinition | from dagster._core.definitions.assets.job.asset_layer import AssetLayer
from dagster._core.definitions.resource_definition import ResourceDefinition
from dagster._core.definitions.op_definition import OpDefinition
from collections.abc import Iterable, Mapping, Sequence
from dagster._core.errors import DagsterInvalidCon... | @public
class JobDefinition(IHasInternalInit):
'''Defines a Dagster job.'''
def __init__(self, *, graph_def: GraphDefinition, resource_defs: Optional[Mapping[str, ResourceDefinition]]=None, executor_def: Optional[ExecutorDefinition]=None, logger_defs: Optional[Mapping[str, LoggerDefinition]]=None, name: Option... | 138 | 16 | 11 | 1 | 9 | 2 | 2 | 0.2 | 1 | 27 | 14 | 0 | 77 | 9 | 77 | 78 | 1,022 | 144 | 737 | 266 | 512 | 145 | 348 | 139 | 260 | 14 | 1 | 4 | 133 |
21,343 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/logger_definition.py | dagster._core.definitions.logger_definition.LoggerDefinition | from typing import TYPE_CHECKING, Any, Callable, Optional, Union, cast, overload
from dagster._core.decorator_utils import get_function_params
from dagster._core.errors import DagsterInvalidInvocationError
from dagster._core.definitions.definition_config_schema import CoercableToConfigSchema, convert_user_facing_defini... | @public
class LoggerDefinition(AnonymousConfigurableDefinition):
'''Core class for defining loggers.
Loggers are job-scoped logging handlers, which will be automatically invoked whenever
dagster messages are logged from within a job.
Args:
logger_fn (Callable[[InitLoggerContext], logging.Logger]... | 14 | 4 | 11 | 1 | 10 | 1 | 2 | 0.24 | 1 | 3 | 1 | 0 | 6 | 3 | 6 | 33 | 94 | 12 | 66 | 26 | 42 | 16 | 28 | 14 | 19 | 5 | 6 | 2 | 10 |
21,344 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/__init__.py | dagster._core.definitions.metadata.MetadataEntry | from dagster._serdes import whitelist_for_serdes
from dagster._annotations import PublicAttr, deprecated, deprecated_param, public
from dagster._utils.warnings import deprecation_warning, normalize_renamed_param
import dagster._check as check
from dagster._core.definitions.metadata.metadata_value import BoolMetadataVal... | @deprecated(breaking_version='2.0', additional_warn_text='Please use a dict with `MetadataValue` values instead.')
@deprecated_param(param='entry_data', breaking_version='2.0', additional_warn_text='Use `value` instead.')
@whitelist_for_serdes(storage_name='EventMetadataEntry')
@public
class MetadataEntry(NamedTuple('_... | 8 | 2 | 14 | 1 | 13 | 1 | 1 | 0.38 | 2 | 2 | 0 | 0 | 2 | 0 | 2 | 4 | 58 | 7 | 37 | 20 | 17 | 14 | 7 | 3 | 4 | 1 | 1 | 0 | 2 |
21,345 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/__init__.py | dagster._core.definitions.metadata.MetadataFieldSerializer | from dagster._core.definitions.metadata.metadata_value import BoolMetadataValue as BoolMetadataValue, DagsterAssetMetadataValue as DagsterAssetMetadataValue, DagsterJobMetadataValue as DagsterJobMetadataValue, DagsterRunMetadataValue as DagsterRunMetadataValue, FloatMetadataValue as FloatMetadataValue, IntMetadataValue... |
class MetadataFieldSerializer(FieldSerializer):
'''Converts between metadata dict (new) and metadata entries list (old).'''
def pack(self, metadata_dict: Mapping[str, MetadataValue], whitelist_map: WhitelistMap, descent_path: str) -> Sequence[Mapping[str, Any]]:
pass
def unpack(self, metadata_ent... | 3 | 1 | 12 | 0 | 11 | 2 | 1 | 0.16 | 1 | 7 | 2 | 0 | 2 | 0 | 2 | 25 | 31 | 3 | 25 | 15 | 12 | 4 | 7 | 5 | 4 | 1 | 6 | 0 | 2 |
21,346 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_set.py | dagster._core.definitions.metadata.metadata_set.NamespacedKVSet | from dagster_shared.dagster_model.pydantic_compat_layer import model_fields
from dagster_shared.dagster_model import DagsterModel
from collections.abc import Iterable, Mapping
from typing import AbstractSet, Any, Optional
from abc import ABC, abstractmethod
class NamespacedKVSet(ABC, DagsterModel):
"""Base class f... |
class NamespacedKVSet(ABC, DagsterModel):
'''Base class for defining a set of key-value pairs in the same namespace.
Includes shared behavior between NamespacedMetadataSet and NamespacedTagSet.
'''
@classmethod
@abstractmethod
def namespace(cls) -> str:
pass
@classmethod
def _na... | 17 | 4 | 7 | 1 | 4 | 2 | 2 | 0.5 | 2 | 5 | 0 | 2 | 2 | 0 | 8 | 94 | 80 | 17 | 42 | 20 | 25 | 21 | 27 | 14 | 18 | 6 | 6 | 4 | 13 |
21,347 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_set.py | dagster._core.definitions.metadata.metadata_set.NamespacedMetadataSet | from dagster._core.definitions.metadata.metadata_value import MetadataValue, TableColumn as TableColumn, TableColumnConstraints as TableColumnConstraints, TableColumnLineage, TableSchema
from dagster import _check as check
from typing import AbstractSet, Any, Optional
from functools import cache
from dagster._utils.typ... |
class NamespacedMetadataSet(NamespacedKVSet):
'''Extend this class to define a set of metadata fields in the same namespace.
Supports splatting to a dictionary that can be placed inside a metadata argument along with
other dictionary-structured metadata.
.. code-block:: python
my_metadata: Name... | 7 | 2 | 11 | 1 | 9 | 1 | 2 | 0.39 | 1 | 4 | 1 | 11 | 1 | 0 | 3 | 97 | 50 | 8 | 31 | 12 | 24 | 12 | 19 | 10 | 15 | 3 | 7 | 2 | 7 |
21,348 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_set.py | dagster._core.definitions.metadata.metadata_set.TableMetadataSet | from collections.abc import Iterable, Mapping
from typing import AbstractSet, Any, Optional
from dagster._core.definitions.metadata.metadata_value import MetadataValue, TableColumn as TableColumn, TableColumnConstraints as TableColumnConstraints, TableColumnLineage, TableSchema
class TableMetadataSet(NamespacedMetadat... |
class TableMetadataSet(NamespacedMetadataSet):
'''Metadata entries that apply to definitions, observations, or materializations of assets that
are tables.
Args:
column_schema (Optional[TableSchema]): The schema of the columns in the table.
column_lineage (Optional[TableColumnLineage]): The ... | 5 | 1 | 2 | 0 | 2 | 0 | 1 | 0.92 | 1 | 2 | 0 | 0 | 0 | 0 | 2 | 99 | 27 | 4 | 12 | 10 | 7 | 11 | 10 | 8 | 7 | 1 | 8 | 0 | 2 |
21,349 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_set.py | dagster._core.definitions.metadata.metadata_set.UriMetadataSet | from typing import AbstractSet, Any, Optional
class UriMetadataSet(NamespacedMetadataSet):
"""Metadata entry which supplies a URI address for an asset.
For example, the S3 address of a file or bucket.
Args:
uri (Optional[str]): The URI address for the asset.
"""
uri: Optional[str] = None
... |
class UriMetadataSet(NamespacedMetadataSet):
'''Metadata entry which supplies a URI address for an asset.
For example, the S3 address of a file or bucket.
Args:
uri (Optional[str]): The URI address for the asset.
'''
@classmethod
def namespace(cls) -> str:
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 98 | 13 | 3 | 5 | 4 | 2 | 5 | 4 | 3 | 2 | 1 | 8 | 0 | 1 |
21,350 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.CodeLocationReconstructionMetadataValue | from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
from dagster._annotations import PublicAttr, public
@whitelist_for_serde... | @whitelist_for_serdes
@record(kw_only=False)
class CodeLocationReconstructionMetadataValue(MetadataValue[str]):
'''Representation of some state data used to define the Definitions in a code location. Users
are expected to serialize data before passing it to this class.
Args:
data (str): A string rep... | 6 | 2 | 3 | 0 | 2 | 1 | 1 | 0.7 | 2 | 2 | 0 | 0 | 2 | 0 | 2 | 44 | 20 | 3 | 10 | 7 | 2 | 7 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,351 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.DagsterAssetMetadataValue | from dagster._core.definitions.asset_key import AssetKey
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
from dagster._an... | @whitelist_for_serdes(storage_name='DagsterAssetMetadataEntryData')
@record(kw_only=False)
@public
class DagsterAssetMetadataValue(MetadataValue[AssetKey]):
'''Representation of a dagster asset.
Args:
asset_key (AssetKey): The dagster asset key
'''
@public
@property
def value(self) -> As... | 7 | 2 | 4 | 1 | 3 | 1 | 1 | 0.45 | 2 | 1 | 0 | 0 | 2 | 0 | 2 | 44 | 20 | 4 | 11 | 8 | 2 | 5 | 6 | 4 | 2 | 1 | 5 | 0 | 2 |
21,352 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.DagsterJobMetadataValue | from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
from typing import Any, Callable, Generic, Optional, Union
from typing_extensions import Self, TypeVar
from dagster._annotations import PublicAttr, public
from da... | @whitelist_for_serdes
@record(kw_only=False)
class DagsterJobMetadataValue(MetadataValue['DagsterJobMetadataValue']):
'''Representation of a dagster run.
Args:
job_name (str): The job's name
location_name (str): The job's code location name
repository_name (Optional[str]): The job's repo... | 6 | 1 | 7 | 0 | 7 | 0 | 1 | 0.26 | 2 | 2 | 0 | 0 | 2 | 0 | 2 | 44 | 37 | 3 | 27 | 19 | 7 | 7 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,353 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.DagsterRunMetadataValue | from dagster._annotations import PublicAttr, public
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
@whitelist_for_serde... | @whitelist_for_serdes(storage_name='DagsterPipelineRunMetadataEntryData')
@public
@record(kw_only=False)
class DagsterRunMetadataValue(MetadataValue[str]):
'''Representation of a dagster run.
Args:
run_id (str): The run id
'''
@public
@property
def value(self) -> str:
'''str: The... | 7 | 2 | 3 | 0 | 2 | 1 | 1 | 0.33 | 2 | 2 | 0 | 0 | 2 | 0 | 2 | 44 | 23 | 3 | 15 | 12 | 2 | 5 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,354 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.JsonDataFieldSerializer | from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
class JsonDataFieldSerializer(FieldSerializer):
def pack(self, mapping: JsonSerializableValue, whitelist_map: WhitelistMap, descent_path: str) -> JsonSerial... |
class JsonDataFieldSerializer(FieldSerializer):
def pack(self, mapping: JsonSerializableValue, whitelist_map: WhitelistMap, descent_path: str) -> JsonSerializableValue:
pass
def unpack(self, unpacked_value: JsonSerializableValue, whitelist_map: WhitelistMap, context: UnpackContext) -> PackableValue:
... | 3 | 0 | 9 | 0 | 7 | 2 | 1 | 0.2 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 25 | 19 | 1 | 15 | 13 | 2 | 3 | 5 | 3 | 2 | 1 | 6 | 0 | 2 |
21,355 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.JsonMetadataValue | from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
from dagster._core.errors import DagsterInvalidMetadata
import dagster_sh... | @whitelist_for_serdes(storage_name='JsonMetadataEntryData', field_serializers={'data': JsonDataFieldSerializer})
@record_custom
@public
class JsonMetadataValue(IHaveNew, MetadataValue[Optional[Union[Sequence[Any], Mapping[str, Any]]]]):
'''Container class for JSON metadata entry data.
Args:
data (Union[... | 8 | 2 | 6 | 0 | 5 | 1 | 2 | 0.3 | 2 | 6 | 0 | 0 | 2 | 0 | 2 | 44 | 29 | 3 | 20 | 12 | 7 | 6 | 10 | 3 | 7 | 2 | 5 | 1 | 3 |
21,356 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.MarkdownMetadataValue | from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
from dagster._annotations import PublicAttr, public
from typing import An... | @whitelist_for_serdes(storage_name='MarkdownMetadataEntryData')
@record(kw_only=False)
@public
class MarkdownMetadataValue(MetadataValue[str]):
'''Container class for markdown metadata entry data.
Args:
md_str (Optional[str]): The markdown as a string.
'''
@public
@property
def value(sel... | 7 | 2 | 3 | 0 | 2 | 1 | 1 | 0.33 | 2 | 2 | 0 | 0 | 2 | 0 | 2 | 44 | 23 | 3 | 15 | 12 | 2 | 5 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,357 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.MetadataValue | from datetime import datetime
from os import PathLike
from collections.abc import Mapping, Sequence
from abc import ABC, abstractmethod
from typing import Any, Callable, Generic, Optional, Union
import dagster._check as check
from dagster._core.definitions.metadata.table import TableColumn as TableColumn, TableColumnCo... | @public
class MetadataValue(ABC, Generic[T_Packable]):
'''Utility class to wrap metadata values passed into Dagster events so that they can be
displayed in the Dagster UI and other tooling.
.. code-block:: python
@op
def emit_metadata(context, df):
yield AssetMaterialization(
... | 65 | 22 | 19 | 3 | 3 | 13 | 1 | 2.55 | 2 | 29 | 19 | 20 | 1 | 0 | 20 | 42 | 463 | 72 | 110 | 53 | 36 | 281 | 49 | 22 | 27 | 4 | 4 | 2 | 23 |
21,358 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.NotebookMetadataValue | import dagster._check as check
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
from dagster._annotations import PublicAttr, public
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, reco... | @public
@whitelist_for_serdes(storage_name='NotebookMetadataEntryData')
@record_custom(field_to_new_mapping={'fspath': 'path'})
class NotebookMetadataValue(MetadataValue[str], IHaveNew):
'''Container class for notebook metadata entry data.
Args:
path (Optional[str]): The path to the notebook as a string... | 11 | 2 | 3 | 0 | 2 | 1 | 1 | 0.56 | 2 | 3 | 0 | 0 | 2 | 0 | 2 | 44 | 17 | 3 | 9 | 6 | 2 | 5 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,359 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.NullMetadataValue | from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
from dagster._annotations import PublicAttr, public
@whitelist_for_serde... | @whitelist_for_serdes(storage_name='NullMetadataEntryData')
@record(kw_only=False)
class NullMetadataValue(MetadataValue[None]):
'''Representation of null.'''
@public
@property
def value(self) -> None:
'''None: The wrapped null value.'''
pass | 6 | 2 | 3 | 0 | 2 | 1 | 1 | 0.4 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 43 | 8 | 1 | 5 | 3 | 1 | 2 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
21,360 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.PathMetadataValue | from dagster._annotations import PublicAttr, public
from os import PathLike
from typing import Any, Callable, Generic, Optional, Union
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
import dagster._check as ch... | @public
@whitelist_for_serdes(storage_name='PathMetadataEntryData')
@record_custom(field_to_new_mapping={'fspath': 'path'})
class PathMetadataValue(MetadataValue[str], IHaveNew):
'''Container class for path metadata entry data.
Args:
path (str): The path as a string or conforming to os.PathLike.
'''... | 11 | 2 | 3 | 0 | 2 | 1 | 1 | 0.56 | 2 | 3 | 0 | 0 | 2 | 0 | 2 | 44 | 17 | 3 | 9 | 6 | 2 | 5 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,361 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.PythonArtifactMetadataValue | from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
from typing_extensions import Self, TypeVar
from dagster._annotations import PublicAttr, public
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value... | @public
@whitelist_for_serdes(storage_name='PythonArtifactMetadataEntryData')
@record(kw_only=False)
class PythonArtifactMetadataValue(LegacyNamedTupleMixin, MetadataValue['PythonArtifactMetadataValue']):
'''Container class for python artifact metadata entry data.
Args:
module (str): The module where th... | 7 | 2 | 4 | 0 | 3 | 1 | 1 | 0.33 | 2 | 2 | 0 | 0 | 2 | 0 | 2 | 44 | 27 | 3 | 18 | 13 | 4 | 6 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,362 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.TableColumnLineageMetadataValue | from dagster._annotations import PublicAttr, public
from dagster._core.definitions.metadata.table import TableColumn as TableColumn, TableColumnConstraints as TableColumnConstraints, TableColumnDep as TableColumnDep, TableColumnLineage as TableColumnLineage, TableConstraints as TableConstraints, TableRecord as TableRec... | @public
@whitelist_for_serdes
@record_custom(field_to_new_mapping={'lineage': 'column_lineage'})
class TableColumnLineageMetadataValue(MetadataValue[TableColumnLineage], IHaveNew):
'''Representation of the lineage of column inputs to column outputs of arbitrary tabular data.
Args:
column_lineage (TableC... | 11 | 2 | 4 | 0 | 3 | 1 | 1 | 0.43 | 2 | 1 | 0 | 0 | 2 | 0 | 2 | 44 | 23 | 3 | 14 | 9 | 4 | 6 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,363 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.TableMetadataValue | from dagster._annotations import PublicAttr, public
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
from typing import Any, Callable, Generic, Optional, Union
from typing_extensions import Self, TypeVar
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableVa... | @public
@whitelist_for_serdes(storage_name='TableMetadataEntryData')
@record_custom
class TableMetadataValue(MetadataValue['TableMetadataValue'], LegacyNamedTupleMixin, IHaveNew):
'''Container class for table metadata entry data.
Args:
records (TableRecord): The data as a list of records (i.e. rows).
... | 11 | 3 | 12 | 1 | 11 | 1 | 3 | 0.36 | 2 | 7 | 0 | 0 | 2 | 0 | 3 | 45 | 73 | 9 | 47 | 17 | 30 | 17 | 19 | 6 | 15 | 4 | 5 | 2 | 8 |
21,364 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.TableSchemaMetadataValue | from dagster._annotations import PublicAttr, public
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
from dagster._core.de... | @public
@whitelist_for_serdes(storage_name='TableSchemaMetadataEntryData')
@record(kw_only=False)
class TableSchemaMetadataValue(MetadataValue[TableSchema]):
'''Representation of a schema for arbitrary tabular data.
Args:
schema (TableSchema): The dictionary containing the schema representation.
'''... | 7 | 2 | 3 | 0 | 2 | 1 | 1 | 0.5 | 2 | 1 | 0 | 0 | 2 | 0 | 2 | 44 | 18 | 3 | 10 | 7 | 2 | 5 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,365 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.TextMetadataValue | from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
from dagster._annotations import PublicAttr, public
from typing import Any, Callable, Generic, Optional, Union
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, Whitelist... | @public
@whitelist_for_serdes(storage_name='TextMetadataEntryData')
@record(kw_only=False)
class TextMetadataValue(MetadataValue[str]):
'''Container class for text metadata entry data.
Args:
text (Optional[str]): The text data.
'''
@public
@property
def value(self) -> str:
'''Opt... | 7 | 2 | 3 | 0 | 2 | 1 | 1 | 0.33 | 2 | 2 | 0 | 0 | 2 | 0 | 2 | 44 | 23 | 3 | 15 | 12 | 2 | 5 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,366 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/metadata_value.py | dagster._core.definitions.metadata.metadata_value.UrlMetadataValue | from dagster_shared.record import IHaveNew, LegacyNamedTupleMixin, record, record_custom
from dagster_shared.serdes.serdes import FieldSerializer, JsonSerializableValue, PackableValue, UnpackContext, WhitelistMap, pack_value, whitelist_for_serdes
from typing import Any, Callable, Generic, Optional, Union
from dagster._... | @public
@whitelist_for_serdes(storage_name='UrlMetadataEntryData')
@record(kw_only=False)
class UrlMetadataValue(MetadataValue[str]):
'''Container class for URL metadata entry data.
Args:
url (Optional[str]): The URL as a string.
'''
@public
@property
def value(self) -> str:
'''O... | 7 | 2 | 3 | 0 | 2 | 1 | 1 | 0.33 | 2 | 2 | 0 | 0 | 2 | 0 | 2 | 44 | 23 | 3 | 15 | 12 | 2 | 5 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
21,367 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py | dagster._core.definitions.metadata.source_code.AnchorBasedFilePathMapping | from pathlib import Path
import os
from dataclasses import dataclass
from dagster._annotations import beta, public
@public
@beta
@dataclass
class AnchorBasedFilePathMapping(FilePathMapping):
"""Specifies the mapping between local file paths and their corresponding paths in a source control repository,
using a ... | @public
@beta
@dataclass
class AnchorBasedFilePathMapping(FilePathMapping):
'''Specifies the mapping between local file paths and their corresponding paths in a source control repository,
using a specific file "anchor" as a reference point. All other paths are calculated relative to this anchor file.
For ex... | 6 | 2 | 20 | 2 | 11 | 7 | 1 | 1.6 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 22 | 47 | 8 | 15 | 4 | 12 | 24 | 6 | 3 | 4 | 1 | 5 | 0 | 1 |
21,368 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py | dagster._core.definitions.metadata.source_code.CodeReferencesMetadataSet | from typing import TYPE_CHECKING, Any, Callable, Optional, Union
from dagster._core.definitions.metadata.metadata_set import NamespacedMetadataSet as NamespacedMetadataSet, TableMetadataSet as TableMetadataSet
class CodeReferencesMetadataSet(NamespacedMetadataSet):
"""Metadata entries that apply to asset definitio... |
class CodeReferencesMetadataSet(NamespacedMetadataSet):
'''Metadata entries that apply to asset definitions and which specify the location where
source code for the asset can be found.
'''
@classmethod
def namespace(cls) -> str:
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.6 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 98 | 10 | 2 | 5 | 4 | 2 | 3 | 4 | 3 | 2 | 1 | 8 | 0 | 1 |
21,369 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py | dagster._core.definitions.metadata.source_code.CodeReferencesMetadataValue | from dagster_shared.dagster_model import DagsterModel
from dagster._core.definitions.metadata.metadata_value import MetadataValue
from dagster._serdes import whitelist_for_serdes
from dagster._annotations import beta, public
@public
@beta
@whitelist_for_serdes
class CodeReferencesMetadataValue(DagsterModel, MetadataVa... | @public
@beta
@whitelist_for_serdes
class CodeReferencesMetadataValue(DagsterModel, MetadataValue['CodeReferencesMetadataValue']):
'''Metadata value type which represents source locations (locally or otherwise)
of the asset in question. For example, the file path and line number where the
asset is defined.
... | 6 | 1 | 2 | 0 | 2 | 0 | 1 | 1.6 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 109 | 16 | 3 | 5 | 3 | 2 | 8 | 4 | 2 | 2 | 1 | 6 | 0 | 1 |
21,370 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py | dagster._core.definitions.metadata.source_code.FilePathMapping | from dagster._annotations import beta, public
from abc import ABC, abstractmethod
from pathlib import Path
@beta
@public
class FilePathMapping(ABC):
"""Base class which defines a file path mapping function. These functions are used to map local file paths
to their corresponding paths in a source control reposi... | @beta
@public
class FilePathMapping(ABC):
'''Base class which defines a file path mapping function. These functions are used to map local file paths
to their corresponding paths in a source control repository.
In many cases where a source control repository is reproduced exactly on a local machine, the incl... | 6 | 2 | 9 | 2 | 1 | 6 | 1 | 3.25 | 1 | 2 | 0 | 2 | 1 | 0 | 1 | 21 | 21 | 4 | 4 | 3 | 0 | 13 | 2 | 2 | 0 | 1 | 4 | 0 | 1 |
21,371 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py | dagster._core.definitions.metadata.source_code.LocalFileCodeReference | from typing import TYPE_CHECKING, Any, Callable, Optional, Union
from dagster_shared.dagster_model import DagsterModel
from dagster._serdes import whitelist_for_serdes
from dagster._annotations import beta, public
@beta
@whitelist_for_serdes
class LocalFileCodeReference(DagsterModel):
"""Represents a local file so... | @beta
@whitelist_for_serdes
class LocalFileCodeReference(DagsterModel):
'''Represents a local file source location.'''
@property
def source(self) -> str:
pass | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 86 | 6 | 1 | 4 | 3 | 3 | 1 | 4 | 3 | 3 | 0 | 6 | 0 | 0 |
21,372 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/source_code.py | dagster._core.definitions.metadata.source_code.UrlCodeReference | from dagster._annotations import beta, public
from typing import TYPE_CHECKING, Any, Callable, Optional, Union
from dagster._serdes import whitelist_for_serdes
from dagster_shared.dagster_model import DagsterModel
@beta
@whitelist_for_serdes
class UrlCodeReference(DagsterModel):
"""Represents a source location whi... | @beta
@whitelist_for_serdes
class UrlCodeReference(DagsterModel):
'''Represents a source location which points at a URL, for example
in source control.
'''
@property
def source(self) -> str:
pass | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 86 | 7 | 1 | 3 | 2 | 2 | 3 | 3 | 2 | 2 | 0 | 6 | 0 | 0 |
21,373 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/table.py | dagster._core.definitions.metadata.table.TableColumn | from dagster_shared.serdes import whitelist_for_serdes
from dagster_shared.record import IHaveNew, record, record_custom
from dagster._annotations import PublicAttr, public
from typing import Optional, Union
from collections.abc import Mapping, Sequence
@public
@whitelist_for_serdes(skip_when_empty_fields={'tags'})
@r... | @public
@whitelist_for_serdes(skip_when_empty_fields={'tags'})
@record_custom
class TableColumn(IHaveNew):
def __new__(cls, name: str, type: str='string', description: Optional[str]=None, constraints: Optional[TableColumnConstraints]=None, tags: Optional[Mapping[str, str]]=None):
pass | 5 | 0 | 21 | 0 | 21 | 1 | 1 | 0.42 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 48 | 2 | 33 | 20 | 13 | 14 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,374 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/table.py | dagster._core.definitions.metadata.table.TableColumnConstraints | from collections.abc import Mapping, Sequence
from dagster._annotations import PublicAttr, public
from dagster_shared.record import IHaveNew, record, record_custom
from dagster_shared.serdes import whitelist_for_serdes
from typing import Optional, Union
@public
@whitelist_for_serdes
@record_custom
class TableColumnCon... | @public
@whitelist_for_serdes
@record_custom
class TableColumnConstraints(IHaveNew):
def __new__(cls, nullable: bool=True, unique: bool=False, other: Optional[Sequence[str]]=None):
pass | 5 | 0 | 12 | 0 | 12 | 0 | 1 | 0.41 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 1 | 33 | 2 | 22 | 16 | 6 | 9 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,375 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/table.py | dagster._core.definitions.metadata.table.TableColumnDep | from dagster._annotations import PublicAttr, public
from dagster_shared.record import IHaveNew, record, record_custom
from dagster._core.definitions.asset_key import AssetKey, CoercibleToAssetKey
from dagster_shared.serdes import whitelist_for_serdes
@public
@whitelist_for_serdes
@record_custom(checked=False)
class Ta... | @public
@whitelist_for_serdes
@record_custom(checked=False)
class TableColumnDep(IHaveNew):
def __new__(cls, asset_key: CoercibleToAssetKey, column_name: str):
pass | 5 | 0 | 10 | 0 | 10 | 0 | 1 | 0.05 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 21 | 1 | 19 | 14 | 5 | 1 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,376 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/table.py | dagster._core.definitions.metadata.table.TableColumnLineage | from dagster_shared.serdes import whitelist_for_serdes
from collections.abc import Mapping, Sequence
from dagster._annotations import PublicAttr, public
import dagster._check as check
from dagster_shared.record import IHaveNew, record, record_custom
@public
@whitelist_for_serdes
@record_custom
class TableColumnLineage... | @public
@whitelist_for_serdes
@record_custom
class TableColumnLineage(IHaveNew):
def __new__(cls, deps_by_column: Mapping[str, Sequence[TableColumnDep]]):
pass | 5 | 0 | 17 | 3 | 14 | 0 | 2 | 2 | 1 | 7 | 1 | 0 | 1 | 0 | 1 | 1 | 76 | 10 | 22 | 11 | 13 | 44 | 8 | 4 | 6 | 2 | 1 | 1 | 2 |
21,377 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/table.py | dagster._core.definitions.metadata.table.TableConstraints | from collections.abc import Mapping, Sequence
from dagster_shared.serdes import whitelist_for_serdes
from dagster_shared.record import IHaveNew, record, record_custom
from dagster._annotations import PublicAttr, public
@public
@whitelist_for_serdes
@record(kw_only=False)
class TableConstraints:
other: PublicAttr[S... | @public
@whitelist_for_serdes
@record(kw_only=False)
class TableConstraints:
pass | 4 | 0 | 8 | 0 | 8 | 0 | 1 | 0.44 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 25 | 2 | 16 | 12 | 4 | 7 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,378 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/table.py | dagster._core.definitions.metadata.table.TableRecord | from collections.abc import Mapping, Sequence
from dagster_shared.serdes import whitelist_for_serdes
from dagster._annotations import PublicAttr, public
from typing import Optional, Union
from dagster_shared.record import IHaveNew, record, record_custom
@public
@whitelist_for_serdes
@record(kw_only=False)
class TableR... | @public
@whitelist_for_serdes
@record(kw_only=False)
class TableRecord:
pass | 4 | 0 | 8 | 0 | 8 | 0 | 1 | 0.23 | 1 | 7 | 0 | 0 | 1 | 0 | 1 | 1 | 17 | 1 | 13 | 6 | 7 | 3 | 4 | 2 | 2 | 1 | 1 | 0 | 1 |
21,379 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/metadata/table.py | dagster._core.definitions.metadata.table.TableSchema | from typing import Optional, Union
from collections.abc import Mapping, Sequence
from dagster_shared.record import IHaveNew, record, record_custom
from dagster_shared.serdes import whitelist_for_serdes
from dagster._annotations import PublicAttr, public
@public
@whitelist_for_serdes
@record_custom
class TableSchema(IH... | @public
@whitelist_for_serdes
@record_custom
class TableSchema(IHaveNew):
def __new__(cls, columns: Sequence[TableColumn], constraints: Optional[TableConstraints]=None):
pass
@public
@staticmethod
def from_name_type_dict(name_type_dict: Mapping[str, str]):
'''Constructs a TableSchema fr... | 8 | 1 | 11 | 0 | 9 | 2 | 1 | 1.83 | 1 | 6 | 2 | 0 | 1 | 0 | 2 | 2 | 89 | 7 | 29 | 16 | 12 | 53 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
21,380 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/module_loaders/object_list.py | dagster._core.definitions.module_loaders.object_list.DagsterObjectsList | from dagster._core.definitions.assets.definition.cacheable_assets_definition import CacheableAssetsDefinition
from collections.abc import Iterable, Mapping, Sequence
from dagster._core.definitions.asset_checks.asset_checks_definition import AssetChecksDefinition, has_only_asset_checks
from typing import Any, Callable, ... |
class DagsterObjectsList:
def __init__(self, loaded_objects: Sequence[LoadableDagsterDef]):
pass
@cached_property
def assets_defs_and_specs(self) -> Sequence[Union[AssetsDefinition, AssetSpec]]:
pass
@cached_property
def assets_defs_and_specs(self) -> Sequence[Union[AssetsDefinitio... | 27 | 0 | 11 | 0 | 10 | 0 | 2 | 0.03 | 0 | 12 | 7 | 0 | 16 | 1 | 16 | 16 | 194 | 16 | 173 | 63 | 123 | 5 | 58 | 29 | 41 | 10 | 0 | 2 | 30 |
21,381 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/module_loaders/object_list.py | dagster._core.definitions.module_loaders.object_list.ModuleScopedDagsterDefs | from functools import cached_property, reduce
from dagster._core.definitions.assets.definition.asset_spec import AssetSpec
from dagster._core.errors import DagsterInvalidDefinitionError
from collections import defaultdict
from dagster._core.definitions.schedule_definition import ScheduleDefinition
from dagster._core.de... |
class ModuleScopedDagsterDefs:
def __init__(self, objects_per_module: Mapping[str, Sequence[LoadableDagsterDef]]):
pass
@classmethod
def from_modules(cls, modules: Iterable[ModuleType], types_to_load: Optional[tuple[type]]=None) -> 'ModuleScopedDagsterDefs':
pass
@cached_property
d... | 26 | 0 | 9 | 0 | 8 | 1 | 2 | 0.05 | 0 | 15 | 5 | 0 | 13 | 1 | 14 | 14 | 152 | 15 | 130 | 56 | 96 | 7 | 65 | 35 | 50 | 12 | 0 | 3 | 31 |
21,382 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/multi_asset_sensor_definition.py | dagster._core.definitions.multi_asset_sensor_definition.MultiAssetSensorAssetCursorComponent | from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Union, cast
import dagster._check as check
class MultiAssetSensorAssetCursorComponent(NamedTuple('_MultiAssetSensorAssetCursorComponent', [('latest_consumed_event_partition', Optional[str]), ('latest_consumed_event_id', Optional[int]), ('trailing_uncons... |
class MultiAssetSensorAssetCursorComponent(NamedTuple('_MultiAssetSensorAssetCursorComponent', [('latest_consumed_event_partition', Optional[str]), ('latest_consumed_event_id', Optional[int]), ('trailing_unconsumed_partitioned_event_ids', dict[str, int])])):
'''A cursor component that is used to track the cursor f... | 2 | 1 | 21 | 0 | 21 | 0 | 1 | 0.77 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 62 | 7 | 31 | 16 | 15 | 24 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,383 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/multi_asset_sensor_definition.py | dagster._core.definitions.multi_asset_sensor_definition.MultiAssetSensorContextCursor | import dagster._check as check
import json
from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Union, cast
from dagster._core.definitions.events import AssetKey
class MultiAssetSensorContextCursor:
def __init__(self, cursor: Optional[str], context: 'MultiAssetSensorEvaluationContext'):
loade... |
class MultiAssetSensorContextCursor:
def __init__(self, cursor: Optional[str], context: 'MultiAssetSensorEvaluationContext'):
pass
def get_cursor_for_asset(self, asset_key: AssetKey) -> MultiAssetSensorAssetCursorComponent:
pass
def get_stringified_cursor(self) -> str:
pass | 4 | 0 | 11 | 1 | 9 | 1 | 2 | 0.22 | 0 | 4 | 1 | 0 | 3 | 3 | 3 | 3 | 39 | 6 | 27 | 10 | 23 | 6 | 18 | 10 | 14 | 5 | 0 | 2 | 7 |
21,384 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/multi_asset_sensor_definition.py | dagster._core.definitions.multi_asset_sensor_definition.MultiAssetSensorCursorAdvances | from collections import OrderedDict, defaultdict
from collections.abc import Iterable, Iterator, Mapping, Sequence
import json
from dagster._core.definitions.events import AssetKey
from dagster._core.errors import DagsterInvalidDefinitionError, DagsterInvalidInvocationError, DagsterInvariantViolationError
from typing i... |
class MultiAssetSensorCursorAdvances:
def __init__(self):
pass
def add_advanced_records(self, materialization_records_by_key: Mapping[AssetKey, Optional['EventLogRecord']]):
pass
def get_cursor_with_advances(self, context: MultiAssetSensorEvaluationContext, initial_cursor: MultiAssetSens... | 5 | 1 | 34 | 4 | 28 | 3 | 5 | 0.09 | 0 | 10 | 4 | 0 | 4 | 0 | 4 | 4 | 142 | 18 | 115 | 31 | 98 | 10 | 51 | 20 | 45 | 13 | 0 | 4 | 19 |
21,385 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/multi_asset_sensor_definition.py | dagster._core.definitions.multi_asset_sensor_definition.MultiAssetSensorDefinition | from dagster._core.definitions.run_request import RunRequest, SensorResult, SkipReason
from dagster._annotations import deprecated_param, public, superseded
from dagster._core.errors import DagsterInvalidDefinitionError, DagsterInvalidInvocationError, DagsterInvariantViolationError
from typing import TYPE_CHECKING, Cal... | @superseded(additional_warn_text='For most use cases, Declarative Automation should be used instead of multi_asset_sensors to monitor the status of upstream assets and launch runs in response. In cases where side effects are required, or a specific job must be targeted for execution, multi_asset_sensors may be used.')
... | 10 | 1 | 52 | 4 | 45 | 4 | 4 | 0.27 | 1 | 15 | 7 | 0 | 3 | 1 | 3 | 28 | 185 | 20 | 131 | 38 | 108 | 36 | 49 | 21 | 42 | 12 | 2 | 3 | 21 |
21,386 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/multi_asset_sensor_definition.py | dagster._core.definitions.multi_asset_sensor_definition.MultiAssetSensorEvaluationContext | from dagster._core.definitions.assets.definition.assets_definition import AssetsDefinition
from dagster._core.definitions.events import AssetKey
from collections.abc import Iterable, Iterator, Mapping, Sequence
from dagster._core.definitions.resource_definition import ResourceDefinition
from typing import TYPE_CHECKING... | @deprecated_param(param='last_completion_time', breaking_version='2.0', additional_warn_text='Use `last_tick_completion_time` instead.')
class MultiAssetSensorEvaluationContext(SensorEvaluationContext):
'''The context object available as the argument to the evaluation function of a
:py:class:`dagster.MultiAsset... | 35 | 15 | 30 | 4 | 19 | 7 | 3 | 0.48 | 1 | 19 | 7 | 0 | 19 | 10 | 19 | 43 | 658 | 103 | 376 | 133 | 299 | 179 | 189 | 85 | 162 | 11 | 1 | 3 | 64 |
21,387 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/node_definition.py | dagster._core.definitions.node_definition.NodeDefinition | from dagster._core.definitions.policy import RetryPolicy
from dagster._core.errors import DagsterInvariantViolationError
from collections.abc import Iterable, Iterator, Mapping, Sequence, Set
from dagster._utils.tags import normalize_tags
from dagster._core.definitions.hook_definition import HookDefinition
from typing ... |
class NodeDefinition(NamedConfigurableDefinition):
def __init__(self, name: str, input_defs: Sequence['InputDefinition'], output_defs: Sequence['OutputDefinition'], description: Optional[str]=None, tags: Optional[Mapping[str, str]]=None, positional_inputs: Optional[Sequence[str]]=None):
pass
@property... | 66 | 1 | 4 | 0 | 3 | 0 | 1 | 0.02 | 1 | 12 | 2 | 2 | 38 | 0 | 38 | 65 | 214 | 42 | 168 | 93 | 90 | 4 | 113 | 43 | 73 | 3 | 6 | 2 | 45 |
21,388 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/op_definition.py | dagster._core.definitions.op_definition.OpDefinition | import dagster._check as check
from dagster._core.definitions.definition_config_schema import IDefinitionConfigSchema, convert_user_facing_definition_config_schema
from dagster._core.definitions.output import Out, OutputDefinition
from dagster._core.definitions.policy import RetryPolicy
from dagster._core.definitions.n... | @public
@deprecated_param(param='version', breaking_version='2.0', additional_warn_text='Use `code_version` instead.')
class OpDefinition(NodeDefinition, IHasInternalInit):
'''Defines an op, the functional unit of user-defined computation.
End users should prefer the :func:`@op <op>` decorator. OpDefinition is ... | 67 | 15 | 8 | 0 | 7 | 1 | 1 | 0.2 | 2 | 17 | 5 | 0 | 38 | 1 | 38 | 104 | 422 | 57 | 306 | 128 | 183 | 61 | 128 | 55 | 86 | 8 | 7 | 3 | 55 |
21,389 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/op_invocation.py | dagster._core.definitions.op_invocation.SeparatedArgsKwargs | from typing import TYPE_CHECKING, Any, NamedTuple, TypeVar, Union, cast
class SeparatedArgsKwargs(NamedTuple):
input_args: tuple[Any, ...]
input_kwargs: dict[str, Any]
resources_by_param_name: dict[str, Any]
config_arg: Any |
class SeparatedArgsKwargs(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
21,390 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/op_selection.py | dagster._core.definitions.op_selection.OpSelection | from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional, Union, cast
from collections.abc import Iterable, Mapping, Sequence
from dagster._core.definitions.graph_definition import GraphDefinition, SubselectedGraphDefinition
from dagster._core.selector.subset_selector import parse_op_queries
class OpSelecti... |
class OpSelection:
def __init__(self, query: Iterable[str]):
pass
def resolve(self, graph_def: GraphDefinition) -> AbstractSet[str]:
pass | 3 | 0 | 5 | 0 | 5 | 1 | 2 | 0.1 | 0 | 5 | 1 | 0 | 2 | 1 | 2 | 2 | 12 | 1 | 10 | 5 | 7 | 1 | 9 | 5 | 6 | 2 | 0 | 1 | 3 |
21,391 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/op_selection.py | dagster._core.definitions.op_selection.OpSelectionNode | from typing import TYPE_CHECKING, AbstractSet, NamedTuple, Optional, Union, cast
class OpSelectionNode(NamedTuple):
name: str
children: list['OpSelectionNode']
@property
def is_leaf(self) -> bool:
return not self.children
def has_child(self, name: str) -> bool:
return any((child.n... |
class OpSelectionNode(NamedTuple):
@property
def is_leaf(self) -> bool:
pass
def has_child(self, name: str) -> bool:
pass
def get_child(self, name: str) -> 'OpSelectionNode':
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 3 | 0 | 3 | 3 | 13 | 3 | 10 | 5 | 5 | 0 | 9 | 4 | 5 | 1 | 1 | 0 | 3 |
21,392 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/output.py | dagster._core.definitions.output.DynamicOut | from dagster._annotations import PublicAttr, deprecated_param, public
from dagster._core.definitions.input import NoValueSentinel
from typing import Any, NamedTuple, Optional, TypeVar, Union
@public
class DynamicOut(Out):
"""Variant of :py:class:`Out <dagster.Out>` for an output that will dynamically alter the gra... | @public
class DynamicOut(Out):
'''Variant of :py:class:`Out <dagster.Out>` for an output that will dynamically alter the graph at
runtime.
When using in a composition function such as :py:func:`@graph <dagster.graph>`,
dynamic outputs must be used with either
* ``map`` - clone downstream ops for eac... | 5 | 1 | 12 | 1 | 12 | 0 | 2 | 1.08 | 1 | 4 | 1 | 0 | 2 | 3 | 2 | 6 | 63 | 11 | 25 | 14 | 15 | 27 | 6 | 4 | 3 | 2 | 2 | 0 | 3 |
21,393 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/output.py | dagster._core.definitions.output.DynamicOutputDefinition | from dagster._annotations import PublicAttr, deprecated_param, public
@public
class DynamicOutputDefinition(OutputDefinition):
"""Variant of :py:class:`OutputDefinition <dagster.OutputDefinition>` for an
output that will dynamically alter the graph at runtime.
When using in a composition function such as ... | @public
class DynamicOutputDefinition(OutputDefinition):
'''Variant of :py:class:`OutputDefinition <dagster.OutputDefinition>` for an
output that will dynamically alter the graph at runtime.
When using in a composition function such as :py:func:`@job <dagster.job>`,
dynamic outputs must be used with eit... | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 6.75 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 14 | 40 | 9 | 4 | 3 | 1 | 27 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,394 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/output.py | dagster._core.definitions.output.GraphOut | from typing import Any, NamedTuple, Optional, TypeVar, Union
from dagster._annotations import PublicAttr, deprecated_param, public
@public
class GraphOut(NamedTuple('_GraphOut', [('description', PublicAttr[Optional[str]])])):
"""Represents information about the outputs that a graph maps.
Args:
descrip... | @public
class GraphOut(NamedTuple('_GraphOut', [('description', PublicAttr[Optional[str]])])):
'''Represents information about the outputs that a graph maps.
Args:
description (Optional[str]): Human-readable description of the output.
'''
def __new__(cls, description: Optional[str]=None):
... | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.8 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 2 | 12 | 3 | 5 | 3 | 2 | 4 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
21,395 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/output.py | dagster._core.definitions.output.Out | from dagster._core.definitions.utils import DEFAULT_IO_MANAGER_KEY, DEFAULT_OUTPUT, check_valid_name
from dagster._core.definitions.input import NoValueSentinel
from dagster._core.types.dagster_type import DagsterType, is_dynamic_output_annotation, resolve_dagster_type
from typing import Any, NamedTuple, Optional, Type... | @public
class Out(NamedTuple('_Out', [('dagster_type', PublicAttr[Union[DagsterType, type[NoValueSentinel]]]), ('description', PublicAttr[Optional[str]]), ('is_required', PublicAttr[bool]), ('io_manager_key', PublicAttr[str]), ('metadata', PublicAttr[Optional[RawMetadataMapping]]), ('code_version', PublicAttr[Optional[... | 8 | 1 | 15 | 1 | 15 | 0 | 2 | 0.3 | 1 | 7 | 3 | 1 | 3 | 3 | 4 | 4 | 105 | 10 | 73 | 39 | 40 | 22 | 12 | 8 | 7 | 3 | 1 | 0 | 8 |
21,396 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/output.py | dagster._core.definitions.output.OutputDefinition | import dagster._check as check
from dagster._core.definitions.utils import DEFAULT_IO_MANAGER_KEY, DEFAULT_OUTPUT, check_valid_name
from typing import Any, NamedTuple, Optional, TypeVar, Union
from dagster._core.definitions.metadata import ArbitraryMetadataMapping, RawMetadataMapping, normalize_metadata
from dagster._c... |
class OutputDefinition:
'''Defines an output from an op's compute function.
Ops can have multiple outputs, in which case outputs cannot be anonymous.
Many ops have only one output, in which case the user can provide a single output definition
that will be given the default name, "result".
Output de... | 24 | 2 | 8 | 0 | 7 | 1 | 1 | 0.35 | 0 | 5 | 3 | 1 | 12 | 9 | 13 | 13 | 155 | 23 | 98 | 50 | 59 | 34 | 45 | 25 | 31 | 3 | 0 | 1 | 17 |
21,397 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/output.py | dagster._core.definitions.output.OutputMapping | from dagster._annotations import PublicAttr, deprecated_param, public
import dagster._check as check
from typing import Any, NamedTuple, Optional, TypeVar, Union
from dagster._core.types.dagster_type import DagsterType, is_dynamic_output_annotation, resolve_dagster_type
@public
@deprecated_param(param='dagster_type', ... | @public
@deprecated_param(param='dagster_type', breaking_version='2.0', additional_warn_text='Any defined `dagster_type` should come from the underlying op `Output`.', emit_runtime_warning=False)
class OutputMapping(NamedTuple):
'''Defines an output mapping for a graph.
Args:
graph_output_name (str): Na... | 6 | 1 | 6 | 0 | 6 | 0 | 2 | 1.58 | 1 | 4 | 3 | 0 | 2 | 0 | 2 | 2 | 58 | 9 | 19 | 8 | 15 | 30 | 14 | 7 | 11 | 2 | 1 | 0 | 3 |
21,398 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/output.py | dagster._core.definitions.output.OutputPointer | from dagster._core.definitions.utils import DEFAULT_IO_MANAGER_KEY, DEFAULT_OUTPUT, check_valid_name
from typing import Any, NamedTuple, Optional, TypeVar, Union
import dagster._check as check
class OutputPointer(NamedTuple('_OutputPointer', [('node_name', str), ('output_name', str)])):
def __new__(cls, node_name... |
class OutputPointer(NamedTuple('_OutputPointer', [('node_name', str), ('output_name', str)])):
def __new__(cls, node_name: str, output_name: Optional[str]=None):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 7 | 0 | 7 | 2 | 5 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,399 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/policy.py | dagster._core.definitions.policy.Backoff | from dagster._annotations import PublicAttr, public
from enum import Enum
@public
class Backoff(Enum):
"""A modifier for delay as a function of attempt number.
LINEAR: `attempt_num * delay`
EXPONENTIAL: `((2 ^ attempt_num) - 1) * delay`
"""
LINEAR = 'LINEAR'
EXPONENTIAL = 'EXPONENTIAL' | @public
class Backoff(Enum):
'''A modifier for delay as a function of attempt number.
LINEAR: `attempt_num * delay`
EXPONENTIAL: `((2 ^ attempt_num) - 1) * delay`
'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 9 | 2 | 3 | 3 | 2 | 4 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.