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,400 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/policy.py | dagster._core.definitions.policy.Jitter | from dagster._annotations import PublicAttr, public
from enum import Enum
@public
class Jitter(Enum):
"""A randomizing modifier for delay, applied after backoff calculation.
FULL: between 0 and the calculated delay based on backoff: `random() * backoff_delay`
PLUS_MINUS: +/- the delay: `backoff_delay + ((... | @public
class Jitter(Enum):
'''A randomizing modifier for delay, applied after backoff calculation.
FULL: between 0 and the calculated delay based on backoff: `random() * backoff_delay`
PLUS_MINUS: +/- the delay: `backoff_delay + ((2 * (random() * delay)) - 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 |
21,401 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/policy.py | dagster._core.definitions.policy.RetryPolicy | import dagster._check as check
from dagster._core.errors import DagsterInvalidDefinitionError
from typing import NamedTuple, Optional
from dagster._annotations import PublicAttr, public
@public
class RetryPolicy(NamedTuple('_RetryPolicy', [('max_retries', PublicAttr[int]), ('delay', PublicAttr[Optional[check.Numeric]]... | @public
class RetryPolicy(NamedTuple('_RetryPolicy', [('max_retries', PublicAttr[int]), ('delay', PublicAttr[Optional[check.Numeric]]), ('backoff', PublicAttr[Optional[Backoff]]), ('jitter', PublicAttr[Optional[Jitter]])])):
'''A declarative policy for when to request retries when an exception occurs during op exec... | 4 | 1 | 16 | 1 | 15 | 0 | 2 | 0.35 | 1 | 4 | 2 | 0 | 2 | 2 | 2 | 2 | 59 | 5 | 40 | 21 | 21 | 14 | 9 | 3 | 6 | 3 | 1 | 1 | 4 |
21,402 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/reconstruct.py | dagster._core.definitions.reconstruct.ReconstructableJob | from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
import dagster._check as check
from dagster._serdes import pack_value, unpack_value, whitelist_for_serdes
from dagster._core.definitions.job_base import IJob
from functools import lru_cache
import os
from dagster._core.code_pointer import... | @whitelist_for_serdes(serializer=ReconstructableJobSerializer, storage_name='ReconstructablePipeline', storage_field_names={'job_name': 'pipeline_name'})
class ReconstructableJob(NamedTuple('_ReconstructableJob', [('repository', ReconstructableRepository), ('job_name', str), ('op_selection', Optional[AbstractSet[str]])... | 22 | 2 | 6 | 0 | 6 | 0 | 1 | 0.16 | 2 | 13 | 4 | 2 | 12 | 3 | 15 | 15 | 136 | 18 | 103 | 53 | 55 | 16 | 43 | 19 | 27 | 3 | 1 | 1 | 20 |
21,403 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/reconstruct.py | dagster._core.definitions.reconstruct.ReconstructableJobSerializer | from typing import TYPE_CHECKING, AbstractSet, Any, Callable, NamedTuple, Optional, TypeVar, Union, overload
import json
from dagster_shared.serdes import NamedTupleSerializer
class ReconstructableJobSerializer(NamedTupleSerializer):
def before_unpack(self, _, unpacked_dict: dict[str, Any]) -> dict[str, Any]:
... |
class ReconstructableJobSerializer(NamedTupleSerializer):
def before_unpack(self, _, unpacked_dict: dict[str, Any]) -> dict[str, Any]:
pass
def pack_items(self, *args, **kwargs):
pass | 3 | 0 | 8 | 0 | 8 | 1 | 4 | 0.06 | 1 | 4 | 0 | 0 | 2 | 0 | 2 | 35 | 17 | 1 | 16 | 7 | 13 | 1 | 14 | 7 | 11 | 4 | 7 | 2 | 7 |
21,404 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/reconstruct.py | dagster._core.definitions.reconstruct.ReconstructableRepository | from typing import TYPE_CHECKING, AbstractSet, Any, Callable, NamedTuple, Optional, TypeVar, Union, overload
from dagster._serdes import pack_value, unpack_value, whitelist_for_serdes
import os
from dagster._core.code_pointer import CodePointer, CustomPointer, FileCodePointer, ModuleCodePointer, get_python_file_from_ta... | @whitelist_for_serdes
class ReconstructableRepository(NamedTuple('_ReconstructableRepository', [('pointer', CodePointer), ('container_image', Optional[str]), ('executable_path', Optional[str]), ('entry_point', Sequence[str]), ('container_context', Optional[Mapping[str, Any]]), ('repository_load_data', Optional['Reposit... | 13 | 0 | 9 | 0 | 9 | 0 | 2 | 0.04 | 1 | 11 | 5 | 0 | 7 | 4 | 9 | 9 | 107 | 9 | 94 | 53 | 45 | 4 | 24 | 12 | 13 | 3 | 1 | 1 | 14 |
21,405 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/repository_definition/caching_index.py | dagster._core.definitions.repository_definition.caching_index.CacheingDefinitionIndex | from dagster._core.errors import DagsterInvariantViolationError
from typing import Callable, Generic, Optional, Union, cast
from dagster._core.definitions.repository_definition.valid_definitions import T_RepositoryLevelDefinition
from collections.abc import Mapping, Sequence
import dagster._check as check
class Cachei... |
class CacheingDefinitionIndex(Generic[T_RepositoryLevelDefinition]):
def __init__(self, definition_class: type[T_RepositoryLevelDefinition], definition_class_name: str, definition_kind: str, definitions: Mapping[str, Union[T_RepositoryLevelDefinition, Callable[[], T_RepositoryLevelDefinition]]], validation_fn: Ca... | 8 | 1 | 18 | 2 | 15 | 1 | 2 | 0.06 | 1 | 8 | 0 | 0 | 7 | 10 | 7 | 9 | 131 | 20 | 105 | 37 | 85 | 6 | 56 | 25 | 48 | 4 | 1 | 2 | 17 |
21,406 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/repository_definition/repository_data.py | dagster._core.definitions.repository_definition.repository_data.CachingRepositoryData | from dagster._core.definitions.resource_definition import ResourceDefinition
from dagster._core.definitions.job_definition import JobDefinition
from dagster._core.definitions.source_asset import SourceAsset
from collections.abc import Mapping, Sequence
from dagster._core.definitions.events import AssetKey
from dagster.... |
class CachingRepositoryData(RepositoryData):
'''Default implementation of RepositoryData used by the :py:func:`@repository <repository>` decorator.'''
def __init__(self, jobs: Mapping[str, Union[JobDefinition, Resolvable[JobDefinition]]], schedules: Mapping[str, Union[ScheduleDefinition, Resolvable[ScheduleDe... | 30 | 11 | 13 | 2 | 8 | 3 | 1 | 0.43 | 1 | 12 | 6 | 0 | 23 | 8 | 25 | 63 | 358 | 67 | 203 | 75 | 145 | 88 | 107 | 48 | 76 | 6 | 5 | 3 | 37 |
21,407 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/repository_definition/repository_data.py | dagster._core.definitions.repository_definition.repository_data.RepositoryData | from dagster._core.definitions.job_definition import JobDefinition
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Optional, TypeVar, Union
from dagster._core.definitions.source_asset import SourceAsset
from dagster._core.definitions.sensor_definition import SensorDefin... | @public
class RepositoryData(ABC):
'''Users should usually rely on the :py:func:`@repository <repository>` decorator to create new
repositories, which will in turn call the static constructors on this class. However, users may
subclass :py:class:`RepositoryData` for fine-grained control over access to and l... | 39 | 17 | 7 | 1 | 3 | 3 | 1 | 0.79 | 1 | 7 | 3 | 2 | 18 | 0 | 18 | 38 | 162 | 31 | 73 | 39 | 36 | 58 | 47 | 22 | 28 | 2 | 4 | 1 | 21 |
21,408 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/repository_definition/repository_definition.py | dagster._core.definitions.repository_definition.repository_definition.RepositoryDefinition | from dagster._core.errors import DagsterInvariantViolationError
from dagster._core.definitions.assets.job.asset_job import IMPLICIT_ASSET_JOB_NAME
from dagster._core.definitions.utils import check_valid_name
from dagster._annotations import public
from dagster._core.definitions.sensor_definition import SensorDefinition... | @public
class RepositoryDefinition:
'''Define a repository that contains a group of definitions.
Users should typically not create objects of this class directly. Instead, use the
:py:func:`@repository` decorator.
Args:
name (str): The name of the repository.
repository_data (RepositoryD... | 65 | 20 | 8 | 1 | 5 | 2 | 1 | 0.54 | 0 | 16 | 5 | 0 | 31 | 5 | 31 | 31 | 331 | 57 | 178 | 94 | 85 | 96 | 80 | 44 | 46 | 5 | 0 | 2 | 35 |
21,409 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/repository_definition/repository_definition.py | dagster._core.definitions.repository_definition.repository_definition.RepositoryLoadData | from dagster_shared.utils.hash import hash_collection
from dagster._core.definitions.metadata.metadata_value import CodeLocationReconstructionMetadataValue
from dagster._serdes import whitelist_for_serdes
from dagster_shared.serdes.objects.models.defs_state_info import DefsStateInfo
from collections.abc import Iterable... | @whitelist_for_serdes(storage_field_names={'cacheable_asset_data': 'cached_data_by_key'})
class RepositoryLoadData(NamedTuple('_RepositoryLoadData', [('cacheable_asset_data', Mapping[str, Sequence[AssetsDefinitionCacheableData]]), ('reconstruction_metadata', Mapping[str, Any]), ('defs_state_info', Optional[DefsStateInf... | 4 | 0 | 11 | 0 | 11 | 0 | 1 | 0.12 | 1 | 8 | 1 | 0 | 3 | 2 | 3 | 3 | 50 | 2 | 43 | 24 | 21 | 5 | 9 | 5 | 5 | 2 | 1 | 1 | 4 |
21,410 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resolved_asset_deps.py | dagster._core.definitions.resolved_asset_deps.ResolvedAssetDependencies | from typing import AbstractSet, cast
from collections.abc import Iterable, Mapping, Sequence
from dagster._core.definitions.events import AssetKey
from dagster._core.definitions.source_asset import SourceAsset
from dagster._core.definitions.assets.definition.assets_definition import AssetsDefinition
class ResolvedAsse... |
class ResolvedAssetDependencies:
'''An asset can depend on another asset without specifying the full asset key for the upstream
asset, if the name and groups match.
ResolvedAssetDependencies maps these flexible dependencies to precise key-based dependencies.
'''
def __init__(self, assets_defs: Ite... | 4 | 1 | 6 | 0 | 6 | 0 | 1 | 0.2 | 0 | 3 | 1 | 0 | 3 | 1 | 3 | 3 | 28 | 4 | 20 | 13 | 10 | 4 | 9 | 7 | 5 | 1 | 0 | 0 | 3 |
21,411 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_annotation.py | dagster._core.definitions.resource_annotation.TreatAsResourceParam | from abc import ABC
class TreatAsResourceParam(ABC):
"""Marker class for types that can be used as a parameter on an annotated
function like `@asset`. Any type marked with this class does not require
a ResourceParam when used on an asset.
Example:
class YourClass(TreatAsResourceParam):
... |
class TreatAsResourceParam(ABC):
'''Marker class for types that can be used as a parameter on an annotated
function like `@asset`. Any type marked with this class does not require
a ResourceParam when used on an asset.
Example:
class YourClass(TreatAsResourceParam):
...
@ass... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 10 | 1 | 0 | 0 | 12 | 0 | 0 | 0 | 20 | 13 | 2 | 1 | 1 | 0 | 10 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,412 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_definition.py | dagster._core.definitions.resource_definition.ResourceDefinition | from dagster._core.errors import DagsterInvalidDefinitionError, DagsterInvalidInvocationError
from dagster._core.definitions.configurable import AnonymousConfigurableDefinition
from dagster._annotations import beta_param, public
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Optional, Union, cast, overlo... | @public
@beta_param(param='version')
class ResourceDefinition(AnonymousConfigurableDefinition, IHasInternalInit):
'''Core class for defining resources.
Resources are scoped ways to make external resources (like database connections) available to
ops and assets during job execution and to clean up after exec... | 36 | 8 | 11 | 1 | 8 | 2 | 2 | 0.43 | 2 | 9 | 2 | 1 | 11 | 7 | 16 | 44 | 242 | 37 | 145 | 63 | 86 | 63 | 62 | 30 | 43 | 7 | 6 | 3 | 24 |
21,413 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_definition.py | dagster._core.definitions.resource_definition._ResourceDecoratorCallable | from dagster._core.decorator_utils import format_docstring_for_description, get_function_params, has_at_least_one_parameter, is_required_param, positional_arg_name_list, validate_expected_params
from functools import update_wrapper
from dagster._core.errors import DagsterInvalidDefinitionError, DagsterInvalidInvocation... |
class _ResourceDecoratorCallable:
def __init__(self, config_schema: Optional[Mapping[str, Any]]=None, description: Optional[str]=None, required_resource_keys: Optional[AbstractSet[str]]=None, version: Optional[str]=None):
pass
def __call__(self, resource_fn: ResourceFunction) -> ResourceDefinition:
... | 3 | 0 | 25 | 4 | 20 | 2 | 3 | 0.07 | 0 | 6 | 1 | 0 | 2 | 4 | 2 | 2 | 51 | 9 | 41 | 19 | 32 | 3 | 20 | 13 | 17 | 4 | 0 | 1 | 5 |
21,414 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.ExternalAssetIOManagerRequirement | from dagster._record import record
from typing import TYPE_CHECKING, AbstractSet, Optional
@record
class ExternalAssetIOManagerRequirement(ResourceKeyRequirement):
key: str
asset_key: Optional[str]
@property
def expected_type(self) -> type:
from dagster._core.storage.io_manager import IOManage... | @record
class ExternalAssetIOManagerRequirement(ResourceKeyRequirement):
@property
def expected_type(self) -> type:
pass
def describe_requirement(self) -> str:
pass | 5 | 0 | 5 | 1 | 4 | 0 | 2 | 0 | 1 | 2 | 1 | 0 | 2 | 0 | 2 | 31 | 15 | 3 | 12 | 6 | 7 | 0 | 9 | 5 | 5 | 2 | 6 | 0 | 3 |
21,415 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.HookResourceRequirement | from typing import TYPE_CHECKING, AbstractSet, Optional
from dagster._record import record
@record
class HookResourceRequirement(ResourceKeyRequirement):
key: str
attached_to: Optional[str]
hook_name: str
def describe_requirement(self) -> str:
attached_to_desc = f'attached to {self.attached_to... | @record
class HookResourceRequirement(ResourceKeyRequirement):
def describe_requirement(self) -> str:
pass | 3 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 30 | 10 | 1 | 9 | 3 | 7 | 0 | 7 | 3 | 5 | 2 | 6 | 0 | 2 |
21,416 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.InputManagerRequirement | from dagster._record import record
@record
class InputManagerRequirement(ResourceKeyRequirement):
key: str
node_description: str
input_name: str
root_input: bool
@property
def expected_type(self) -> type:
from dagster._core.storage.io_manager import IInputManagerDefinition
retu... | @record
class InputManagerRequirement(ResourceKeyRequirement):
@property
def expected_type(self) -> type:
pass
def describe_requirement(self) -> str:
pass | 5 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 2 | 0 | 2 | 31 | 17 | 3 | 14 | 5 | 9 | 0 | 10 | 4 | 6 | 1 | 6 | 0 | 2 |
21,417 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.OpDefinitionResourceRequirement | from dagster._record import record
@record
class OpDefinitionResourceRequirement(ResourceKeyRequirement):
key: str
node_description: str
def describe_requirement(self) -> str:
return f"resource with key '{self.key}' required by {self.node_description}" | @record
class OpDefinitionResourceRequirement(ResourceKeyRequirement):
def describe_requirement(self) -> str:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 30 | 6 | 1 | 5 | 2 | 3 | 0 | 5 | 2 | 3 | 1 | 6 | 0 | 1 |
21,418 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.OutputManagerRequirement | from dagster._record import record
@record
class OutputManagerRequirement(ResourceKeyRequirement):
key: str
node_description: str
output_name: str
@property
def expected_type(self) -> type:
from dagster._core.storage.io_manager import IOManagerDefinition
return IOManagerDefinition
... | @record
class OutputManagerRequirement(ResourceKeyRequirement):
@property
def expected_type(self) -> type:
pass
def describe_requirement(self) -> str:
pass | 5 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 2 | 0 | 2 | 31 | 16 | 3 | 13 | 5 | 8 | 0 | 9 | 4 | 5 | 1 | 6 | 0 | 2 |
21,419 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.ResourceAddable | from collections.abc import Mapping, Sequence
from abc import ABC, abstractmethod
class ResourceAddable(ABC):
@abstractmethod
def with_resources(self, resource_defs: Mapping[str, 'ResourceDefinition']) -> 'ResourceAddable':
raise NotImplementedError() |
class ResourceAddable(ABC):
@abstractmethod
def with_resources(self, resource_defs: Mapping[str, 'ResourceDefinition']) -> 'ResourceAddable':
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 0 | 1 | 1 | 0 | 1 | 21 | 6 | 0 | 6 | 5 | 1 | 0 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
21,420 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.ResourceDependencyRequirement | from typing import TYPE_CHECKING, AbstractSet, Optional
from dagster._record import record
@record
class ResourceDependencyRequirement(ResourceKeyRequirement):
key: str
source_key: Optional[str]
def describe_requirement(self) -> str:
source_descriptor = f" by resource with key '{self.source_key}'"... | @record
class ResourceDependencyRequirement(ResourceKeyRequirement):
def describe_requirement(self) -> str:
pass | 3 | 0 | 3 | 0 | 3 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 30 | 7 | 1 | 6 | 3 | 4 | 0 | 6 | 3 | 4 | 2 | 6 | 0 | 2 |
21,421 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.ResourceKeyRequirement | from collections.abc import Mapping, Sequence
from dagster._core.errors import DagsterInvalidDefinitionError, DagsterInvalidInvocationError
from abc import ABC, abstractmethod
class ResourceKeyRequirement(ResourceRequirement, ABC):
@property
@abstractmethod
def key(self) -> str:
raise NotImplement... |
class ResourceKeyRequirement(ResourceRequirement, ABC):
@property
@abstractmethod
def key(self) -> str:
pass
@abstractmethod
def describe_requirement(self) -> str:
pass
def is_satisfied(self, resource_defs: Mapping[str, 'ResourceDefinition']) -> bool:
pass
def ens... | 8 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 2 | 4 | 0 | 9 | 4 | 0 | 4 | 29 | 28 | 3 | 25 | 9 | 17 | 0 | 14 | 7 | 9 | 3 | 5 | 1 | 6 |
21,422 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.ResourceRequirement | from abc import ABC, abstractmethod
from collections.abc import Mapping, Sequence
class ResourceRequirement(ABC):
@property
def expected_type(self) -> type:
from dagster._core.definitions.resource_definition import ResourceDefinition
return ResourceDefinition
@property
def is_io_manag... |
class ResourceRequirement(ABC):
@property
def expected_type(self) -> type:
pass
@property
def is_io_manager_requirement(self) -> bool:
pass
def keys_of_expected_type(self, resource_defs: Mapping[str, 'ResourceDefinition']) -> Sequence[str]:
'''Get resource keys that corres... | 10 | 1 | 5 | 1 | 4 | 1 | 1 | 0.13 | 1 | 7 | 3 | 1 | 5 | 0 | 5 | 25 | 34 | 7 | 24 | 15 | 12 | 3 | 13 | 8 | 5 | 1 | 4 | 0 | 5 |
21,423 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.SourceAssetIOManagerRequirement | from typing import TYPE_CHECKING, AbstractSet, Optional
from dagster._record import record
@record
class SourceAssetIOManagerRequirement(ResourceKeyRequirement):
key: str
asset_key: Optional[str]
@property
def expected_type(self) -> type:
from dagster._core.storage.io_manager import IOManagerD... | @record
class SourceAssetIOManagerRequirement(ResourceKeyRequirement):
@property
def expected_type(self) -> type:
pass
def describe_requirement(self) -> str:
pass | 5 | 0 | 5 | 1 | 4 | 0 | 2 | 0 | 1 | 2 | 1 | 0 | 2 | 0 | 2 | 31 | 15 | 3 | 12 | 6 | 7 | 0 | 9 | 5 | 5 | 2 | 6 | 0 | 3 |
21,424 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.TypeLoaderResourceRequirement | from dagster._record import record
@record
class TypeLoaderResourceRequirement(ResourceKeyRequirement):
key: str
type_display_name: str
def describe_requirement(self) -> str:
return f"resource with key '{self.key}' required by the loader on type '{self.type_display_name}'" | @record
class TypeLoaderResourceRequirement(ResourceKeyRequirement):
def describe_requirement(self) -> str:
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 30 | 9 | 1 | 8 | 2 | 6 | 0 | 5 | 2 | 3 | 1 | 6 | 0 | 1 |
21,425 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/resource_requirement.py | dagster._core.definitions.resource_requirement.TypeResourceRequirement | from dagster._record import record
@record
class TypeResourceRequirement(ResourceKeyRequirement):
key: str
type_display_name: str
def describe_requirement(self) -> str:
return f"resource with key '{self.key}' required by type '{self.type_display_name}'" | @record
class TypeResourceRequirement(ResourceKeyRequirement):
def describe_requirement(self) -> str:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 30 | 6 | 1 | 5 | 2 | 3 | 0 | 5 | 2 | 3 | 1 | 6 | 0 | 1 |
21,426 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/result.py | dagster._core.definitions.result.AssetResult | from dagster._core.definitions.events import AssetKey, CoercibleToAssetKey
import dagster._check as check
from collections.abc import Mapping, Sequence
from dagster._annotations import PublicAttr, public
from dagster._core.definitions.asset_checks.asset_check_result import AssetCheckResult
from dagster._core.definition... |
class AssetResult:
'''Base class for MaterializeResult and ObserveResult.'''
def check_result_named(self, check_name: str) -> AssetCheckResult:
pass | 2 | 1 | 17 | 2 | 15 | 1 | 3 | 0.05 | 1 | 4 | 0 | 2 | 2 | 0 | 2 | 2 | 48 | 5 | 42 | 24 | 19 | 2 | 10 | 5 | 6 | 3 | 1 | 2 | 5 |
21,427 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/result.py | dagster._core.definitions.result.MaterializeResult | from dagster._core.definitions.events import AssetKey, CoercibleToAssetKey
from dagster._annotations import PublicAttr, public
from dagster._core.definitions.utils import NoValueSentinel
from typing import Any, Generic, Optional, TypeVar
from dagster._core.definitions.metadata import MetadataValue, RawMetadataMapping, ... | @record_custom(checked=False)
@public
class MaterializeResult(AssetResult, Generic[T], IHaveNew, LegacyNamedTupleMixin):
'''An object representing a successful materialization of an asset. These can be returned from
@asset and @multi_asset decorated functions to pass metadata or specify specific assets were
... | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 12 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 14 | 1 | 1 | 1 | 0 | 12 | 1 | 1 | 0 | 0 | 2 | 0 | 0 |
21,428 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/result.py | dagster._core.definitions.result.ObserveResult | from dagster._annotations import PublicAttr, public
from dagster._core.definitions.metadata import MetadataValue, RawMetadataMapping, TableColumnLineage, TableSchema
from dagster._core.definitions.asset_checks.asset_check_result import AssetCheckResult
from typing import Any, Generic, Optional, TypeVar
from collections... | @public
@record_custom(checked=False)
class ObserveResult(AssetResult, IHaveNew, LegacyNamedTupleMixin):
'''An object representing a successful observation of an asset. These can be returned from an
@observable_source_asset decorated function to pass metadata.
Args:
asset_key (Optional[AssetKey]): T... | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 12 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 14 | 1 | 1 | 1 | 0 | 12 | 1 | 1 | 0 | 0 | 2 | 0 | 0 |
21,429 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_config.py | dagster._core.definitions.run_config.RunConfig | from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, TypeVar, Union, cast
from dagster._utils import check
from dagster._annotations import public
@public
class RunConfig:
"""Container for all the configuration that can be passed to a run. Accepts Pythonic definitions
for op and asset conf... | @public
class RunConfig:
'''Container for all the configuration that can be passed to a run. Accepts Pythonic definitions
for op and asset config and resources and converts them under the hood to the appropriate config dictionaries.
Example usage:
.. code-block:: python
class MyAssetConfig(Confi... | 6 | 2 | 9 | 1 | 7 | 1 | 1 | 0.83 | 0 | 5 | 0 | 0 | 3 | 4 | 3 | 3 | 55 | 11 | 24 | 15 | 13 | 20 | 12 | 8 | 8 | 2 | 0 | 1 | 4 |
21,430 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_config.py | dagster._core.definitions.run_config.RunConfigSchemaCreationData | from dagster._core.definitions.dependency import DependencyStructure, GraphNode, Node, NodeHandle, NodeInput, OpNode
from collections.abc import Iterator, Mapping, Sequence
from dagster._core.definitions.assets.job.asset_layer import AssetLayer
from dagster._core.definitions.resource_definition import ResourceDefinitio... |
class RunConfigSchemaCreationData(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 0 | 12 | 1 | 11 | 0 | 12 | 1 | 11 | 0 | 1 | 0 | 0 |
21,431 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_config_schema.py | dagster._core.definitions.run_config_schema.RunConfigSchema | from collections.abc import Iterable, Mapping
from dagster._config import ConfigType
from dagster._core.definitions.config import ConfigMapping
from typing import NamedTuple, Optional
import dagster._check as check
class RunConfigSchema(NamedTuple):
run_config_schema_type: ConfigType
config_type_dict_by_name: ... |
class RunConfigSchema(NamedTuple):
def has_config_type(self, name: str) -> bool:
pass
def config_type_named(self, name: str) -> ConfigType:
pass
def config_type_keyed(self, key: str) -> ConfigType:
pass
def all_config_types(self) -> Iterable[ConfigType]:
pass
@proper... | 7 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 5 | 0 | 5 | 5 | 30 | 6 | 24 | 8 | 17 | 0 | 23 | 7 | 17 | 3 | 1 | 2 | 7 |
21,432 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_request.py | dagster._core.definitions.run_request.DagsterRunReaction | from dagster_shared.serdes import whitelist_for_serdes
from dagster._utils.error import SerializableErrorInfo
import dagster._check as check
from dagster._core.storage.dagster_run import DagsterRun, DagsterRunStatus
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, Union
@whitelist_for_serdes(storage_name='... | @whitelist_for_serdes(storage_name='PipelineRunReaction', storage_field_names={'dagster_run': 'pipeline_run'})
class DagsterRunReaction(NamedTuple('_DagsterRunReaction', [('dagster_run', Optional[DagsterRun]), ('error', Optional[SerializableErrorInfo]), ('run_status', Optional[DagsterRunStatus])])):
'''Represents a... | 3 | 1 | 12 | 0 | 12 | 0 | 1 | 0.32 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 1 | 31 | 2 | 22 | 16 | 6 | 7 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,433 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_request.py | dagster._core.definitions.run_request.InstigatorType | from enum import Enum
from dagster_shared.serdes import whitelist_for_serdes
@whitelist_for_serdes(old_storage_names={'JobType'})
class InstigatorType(Enum):
SCHEDULE = 'SCHEDULE'
SENSOR = 'SENSOR'
AUTO_MATERIALIZE = 'AUTO_MATERIALIZE' | @whitelist_for_serdes(old_storage_names={'JobType'})
class InstigatorType(Enum):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
21,434 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_request.py | dagster._core.definitions.run_request.RunRequest | from collections.abc import Mapping, Sequence
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
from dagster_shared.serdes import whitelist_for_serdes
from dagster._core.definitions.dynamic_partitions_request import AddDynamicPartitionsRequest, DeleteDynamicPartitionsRequest
from dagster... | @public
@whitelist_for_serdes(kwargs_fields={'asset_graph_subset'})
@record_custom
class RunRequest(IHaveNew, LegacyNamedTupleMixin):
'''Represents all the information required to launch a single run. Must be returned by a
SensorDefinition or ScheduleDefinition's evaluation function for a run to be launched.
... | 15 | 3 | 16 | 1 | 13 | 2 | 2 | 0.38 | 2 | 12 | 5 | 0 | 7 | 0 | 8 | 32 | 179 | 14 | 120 | 40 | 84 | 46 | 40 | 14 | 30 | 4 | 5 | 2 | 16 |
21,435 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_request.py | dagster._core.definitions.run_request.SensorResult | from dagster._core.definitions.dynamic_partitions_request import AddDynamicPartitionsRequest, DeleteDynamicPartitionsRequest
from dagster._core.definitions.declarative_automation.serialized_objects import AutomationConditionEvaluation
from collections.abc import Mapping, Sequence
from dagster._annotations import Public... | @public
class SensorResult(NamedTuple('_SensorResult', [('run_requests', Optional[Sequence[RunRequest]]), ('skip_reason', Optional[SkipReason]), ('cursor', Optional[str]), ('dynamic_partitions_requests', Optional[Sequence[Union[DeleteDynamicPartitionsRequest, AddDynamicPartitionsRequest]]]), ('asset_events', list[Union... | 3 | 1 | 46 | 2 | 44 | 0 | 4 | 0.25 | 1 | 8 | 4 | 0 | 1 | 0 | 1 | 1 | 91 | 6 | 68 | 37 | 31 | 17 | 8 | 2 | 6 | 4 | 1 | 1 | 4 |
21,436 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_request.py | dagster._core.definitions.run_request.SkipReason | from dagster._annotations import PublicAttr, public
from dagster_shared.serdes import whitelist_for_serdes
import dagster._check as check
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, Union
@whitelist_for_serdes
class SkipReason(NamedTuple('_SkipReason', [('skip_message', PublicAttr[Optional[str]])])):
... | @whitelist_for_serdes
class SkipReason(NamedTuple('_SkipReason', [('skip_message', PublicAttr[Optional[str]])])):
'''Represents a skipped evaluation, where no runs are requested. May contain a message to indicate
why no runs were requested.
Args:
skip_message (Optional[str]): A message displayed in ... | 3 | 1 | 5 | 0 | 5 | 0 | 1 | 1 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 14 | 2 | 6 | 2 | 4 | 6 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,437 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_status_sensor_definition.py | dagster._core.definitions.run_status_sensor_definition.RunFailureSensorContext | from dagster._annotations import beta_param, deprecated_param, public
from collections.abc import Iterator, Mapping, Sequence
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, Union, cast, overload
from dagster._core.events import PIPELINE_RUN_STATUS_TO_EVENT_TYPE, DagsterEvent, DagsterEventType
@... | @public
class RunFailureSensorContext(RunStatusSensorContext):
'''The ``context`` object available to a decorated function of ``run_failure_sensor``.
Args:
sensor_name (str): the name of the sensor.
dagster_run (DagsterRun): the failed run.
'''
@public
@property
def failure_event... | 7 | 3 | 12 | 2 | 4 | 7 | 1 | 1.64 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 16 | 35 | 6 | 11 | 6 | 5 | 18 | 6 | 4 | 3 | 1 | 1 | 0 | 2 |
21,438 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_status_sensor_definition.py | dagster._core.definitions.run_status_sensor_definition.RunStatusSensorContext | from dagster._annotations import beta_param, deprecated_param, public
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, Union, cast, overload
from dagster._core.definitions.instigation_logger import InstigationLogger
from dagster._core.errors import DagsterInvalidDefinitionError, DagsterInvariantVi... | @public
class RunStatusSensorContext:
'''The ``context`` object available to a decorated function of ``run_status_sensor``.'''
def __init__(self, sensor_name, dagster_run, dagster_event, instance, context: Optional[SensorEvaluationContext]=None, resource_defs: Optional[Mapping[str, 'ResourceDefinition']]=None,... | 31 | 10 | 10 | 1 | 7 | 2 | 1 | 0.23 | 0 | 14 | 8 | 1 | 14 | 11 | 14 | 14 | 170 | 28 | 116 | 55 | 68 | 27 | 54 | 31 | 36 | 4 | 0 | 2 | 19 |
21,439 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_status_sensor_definition.py | dagster._core.definitions.run_status_sensor_definition.RunStatusSensorCursor | import dagster._check as check
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, Union, cast, overload
from dagster_shared.serdes.errors import DeserializationError
from dagster_shared.serdes import deserialize_value
from dagster._serdes import serialize_value, whitelist_for_serdes
from dagster_sha... | @whitelist_for_serdes(old_storage_names={'PipelineSensorCursor'})
class RunStatusSensorCursor(NamedTuple('_RunStatusSensorCursor', [('record_id', int), ('update_timestamp', Optional[str]), ('record_timestamp', Optional[str])])):
def __new__(cls, record_id, update_timestamp=None, record_timestamp=None):
pas... | 8 | 0 | 4 | 0 | 4 | 0 | 1 | 0.17 | 1 | 4 | 1 | 0 | 2 | 0 | 4 | 4 | 37 | 3 | 29 | 17 | 13 | 5 | 13 | 6 | 8 | 2 | 1 | 1 | 5 |
21,440 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/run_status_sensor_definition.py | dagster._core.definitions.run_status_sensor_definition.RunStatusSensorDefinition | from dagster._core.definitions.scoped_resources_builder import Resources, ScopedResourcesBuilder
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, Union, cast, overload
from dagster._core.events import PIPELINE_RUN_STATUS_TO_EVENT_TYPE, DagsterEvent, DagsterEventType
from dagster._annotations impor... | @public
class RunStatusSensorDefinition(SensorDefinition):
'''Define a sensor that reacts to a given status of job execution, where the decorated
function will be evaluated when a run is at the given status.
Args:
name (str): The name of the sensor. Defaults to the name of the decorated function.
... | 7 | 1 | 176 | 16 | 142 | 19 | 9 | 0.19 | 1 | 31 | 19 | 0 | 3 | 1 | 3 | 28 | 447 | 41 | 340 | 80 | 301 | 66 | 102 | 45 | 96 | 27 | 2 | 6 | 36 |
21,441 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/schedule_definition.py | dagster._core.definitions.schedule_definition.DecoratedScheduleFunction | from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, TypeVar, Union, cast
class DecoratedScheduleFunction(NamedTuple):
"""Wrapper around the decorated schedule function. Keeps track of both to better support the
optimal return value for direct invocation of the evaluation function.
"""
... |
class DecoratedScheduleFunction(NamedTuple):
'''Wrapper around the decorated schedule function. Keeps track of both to better support the
optimal return value for direct invocation of the evaluation function.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 1 | 4 | 1 | 3 | 3 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
21,442 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/schedule_definition.py | dagster._core.definitions.schedule_definition.DefaultScheduleStatus | from dagster._serdes import whitelist_for_serdes
from enum import Enum
@whitelist_for_serdes
class DefaultScheduleStatus(Enum):
RUNNING = 'RUNNING'
STOPPED = 'STOPPED' | @whitelist_for_serdes
class DefaultScheduleStatus(Enum):
pass | 2 | 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,443 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/schedule_definition.py | dagster._core.definitions.schedule_definition.ScheduleDefinition | from dagster._core.decorator_utils import has_at_least_one_parameter
from dagster._core.definitions.target import ANONYMOUS_ASSET_JOB_PREFIX, AutomationTarget, ExecutableDefinition
from dagster._annotations import deprecated, deprecated_param, public
from dagster._core.definitions.job_definition import JobDefinition
fr... | @public
@deprecated_param(param='environment_vars', breaking_version='2.0', additional_warn_text='It is no longer necessary. Schedules will have access to all environment variables set in the containing environment, and can safely be deleted.')
class ScheduleDefinition(IHasInternalInit):
'''Defines a schedule that ... | 53 | 15 | 25 | 2 | 21 | 2 | 3 | 0.22 | 1 | 20 | 10 | 0 | 17 | 15 | 18 | 19 | 547 | 60 | 403 | 128 | 294 | 90 | 148 | 54 | 123 | 20 | 1 | 3 | 55 |
21,444 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/schedule_definition.py | dagster._core.definitions.schedule_definition.ScheduleEvaluationContext | from collections.abc import Iterator, Mapping, Sequence
from dagster._core.instance.ref import InstanceRef
from datetime import datetime
from dagster._annotations import deprecated, deprecated_param, public
from dagster._core.definitions.scoped_resources_builder import Resources, ScopedResourcesBuilder
import logging
f... | @public
class ScheduleEvaluationContext:
'''The context object available as the first argument to various functions defined on a :py:class:`dagster.ScheduleDefinition`.
A ``ScheduleEvaluationContext`` object is passed as the first argument to ``run_config_fn``, ``tags_fn``,
and ``should_execute``.
**Use... | 26 | 6 | 13 | 1 | 10 | 2 | 2 | 0.25 | 0 | 11 | 4 | 0 | 13 | 12 | 13 | 13 | 223 | 35 | 151 | 50 | 113 | 37 | 70 | 33 | 52 | 5 | 0 | 2 | 24 |
21,445 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/schedule_definition.py | dagster._core.definitions.schedule_definition.ScheduleExecutionData | from collections.abc import Iterator, Mapping, Sequence
import dagster._check as check
from dagster._serdes import whitelist_for_serdes
from typing import TYPE_CHECKING, Any, Callable, NamedTuple, Optional, TypeVar, Union, cast
from dagster._core.definitions.run_request import RunRequest, SkipReason
@whitelist_for_ser... | @whitelist_for_serdes(storage_field_names={'log_key': 'captured_log_key'})
class ScheduleExecutionData(NamedTuple('_ScheduleExecutionData', [('run_requests', Optional[Sequence[RunRequest]]), ('skip_message', Optional[str]), ('log_key', Optional[Sequence[str]])])):
def __new__(cls, run_requests: Optional[Sequence[R... | 3 | 0 | 18 | 0 | 18 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 28 | 0 | 28 | 16 | 12 | 0 | 7 | 2 | 5 | 1 | 1 | 0 | 1 |
21,446 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/scoped_resources_builder.py | dagster._core.definitions.scoped_resources_builder.IContainsGenerator | class IContainsGenerator:
"""This class adds an additional tag to indicate that the resources object has at least one
resource that has been yielded from a generator, and thus may require teardown.
""" | class IContainsGenerator:
'''This class adds an additional tag to indicate that the resources object has at least one
resource that has been yielded from a generator, and thus may require teardown.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
21,447 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/scoped_resources_builder.py | dagster._core.definitions.scoped_resources_builder.Resources | from collections.abc import Mapping
from dagster._core.errors import DagsterUnknownResourceError
from typing import AbstractSet, Any, NamedTuple, Optional
class Resources:
"""This class functions as a "tag" that we can use to type the namedtuple returned by
ScopedResourcesBuilder.build(). The way that we creat... |
class Resources:
'''This class functions as a "tag" that we can use to type the namedtuple returned by
ScopedResourcesBuilder.build(). The way that we create the namedtuple returned by build() is
incompatible with type annotations on its own due to its dynamic attributes, so this tag class
provides a w... | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.83 | 0 | 5 | 0 | 2 | 2 | 0 | 2 | 2 | 13 | 2 | 6 | 4 | 2 | 5 | 5 | 3 | 2 | 1 | 0 | 0 | 2 |
21,448 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/scoped_resources_builder.py | dagster._core.definitions.scoped_resources_builder.ScopedResourcesBuilder | from collections import namedtuple
import dagster._check as check
from typing import AbstractSet, Any, NamedTuple, Optional
from collections.abc import Mapping
class ScopedResourcesBuilder(NamedTuple('_ScopedResourcesBuilder', [('resource_instance_dict', Mapping[str, object]), ('contains_generator', bool)])):
"""T... |
class ScopedResourcesBuilder(NamedTuple('_ScopedResourcesBuilder', [('resource_instance_dict', Mapping[str, object]), ('contains_generator', bool)])):
'''There are concepts in the codebase (e.g. ops, system storage) that receive
only the resources that they have specified in required_resource_keys.
ScopedR... | 11 | 2 | 17 | 2 | 12 | 3 | 1 | 0.31 | 1 | 8 | 3 | 0 | 2 | 0 | 3 | 3 | 94 | 14 | 61 | 33 | 30 | 19 | 19 | 11 | 10 | 3 | 1 | 1 | 7 |
21,449 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.AssetGroupSelector | from dagster._record import IHaveNew, record, record_custom
@record
class AssetGroupSelector:
group_name: str
location_name: str
repository_name: str
@staticmethod
def from_graphql_input(graphql_data):
return AssetGroupSelector(group_name=graphql_data['groupName'], location_name=graphql_da... | @record
class AssetGroupSelector:
@staticmethod
def from_graphql_input(graphql_data):
pass | 4 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 12 | 1 | 11 | 3 | 8 | 0 | 6 | 2 | 4 | 1 | 0 | 0 | 1 |
21,450 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.CodeLocationSelector | from dagster._core.definitions.repository_definition import SINGLETON_REPOSITORY_NAME
from dagster._record import IHaveNew, record, record_custom
@record(kw_only=False)
class CodeLocationSelector:
location_name: str
def to_repository_selector(self) -> RepositorySelector:
return RepositorySelector(loca... | @record(kw_only=False)
class CodeLocationSelector:
def to_repository_selector(self) -> RepositorySelector:
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 8 | 1 | 7 | 2 | 5 | 0 | 4 | 2 | 2 | 1 | 0 | 0 | 1 |
21,451 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.GraphSelector | from dagster._record import IHaveNew, record, record_custom
@record
class GraphSelector:
"""The information needed to resolve a graph within a host process."""
location_name: str
repository_name: str
graph_name: str
def to_graphql_input(self):
return {'repositoryLocationName': self.locatio... | @record
class GraphSelector:
'''The information needed to resolve a graph within a host process.'''
def to_graphql_input(self):
pass | 3 | 1 | 6 | 0 | 6 | 0 | 1 | 0.1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 13 | 2 | 10 | 2 | 8 | 1 | 6 | 2 | 4 | 1 | 0 | 0 | 1 |
21,452 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.InstigatorSelector | from dagster._serdes import create_snapshot_id, whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes
@record
class InstigatorSelector:
location_name: str
repository_name: str
name: str
def to_graphql_input(self):
return {'repositoryLocationName... | @whitelist_for_serdes
@record
class InstigatorSelector:
def to_graphql_input(self):
pass
@staticmethod
def from_graphql_input(graphql_data):
pass
def get_id(self) -> str:
pass | 7 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 3 | 3 | 22 | 3 | 19 | 5 | 14 | 0 | 10 | 4 | 6 | 1 | 0 | 0 | 3 |
21,453 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.JobSelector | from dagster._annotations import public
from dagster._core.definitions.repository_definition import SINGLETON_REPOSITORY_NAME
from dagster._serdes import create_snapshot_id, whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
import dagster._check as check
from typing import AbstractSet, An... | @whitelist_for_serdes
@record_custom
@public
class JobSelector(IHaveNew):
def __new__(cls, location_name: str, repository_name: Optional[str]=None, job_name: Optional[str]=None):
pass
def to_graphql_input(self):
pass
@property
def selector_id(self):
pass
@staticmethod
d... | 12 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 4 | 0 | 5 | 7 | 51 | 6 | 45 | 14 | 31 | 0 | 15 | 6 | 9 | 1 | 1 | 0 | 5 |
21,454 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.JobSubsetSelector | from dagster_shared.utils.hash import make_hashable
from collections.abc import Iterable, Mapping, Sequence
from dagster._core.definitions.asset_checks.asset_check_spec import AssetCheckKey
import dagster._check as check
from dagster._record import IHaveNew, record, record_custom
from typing import AbstractSet, Any, Op... | @record_custom
class JobSubsetSelector(IHaveNew):
'''The information needed to resolve a job within a host process.'''
def __new__(cls, location_name: str, repository_name: str, job_name: str, op_selection: Optional[Sequence[str]], asset_selection: Optional[Iterable[AssetKey]]=None, asset_check_selection: Opti... | 10 | 1 | 9 | 0 | 9 | 0 | 1 | 0.04 | 1 | 7 | 1 | 0 | 5 | 0 | 5 | 7 | 62 | 6 | 54 | 16 | 38 | 2 | 20 | 6 | 14 | 3 | 1 | 0 | 7 |
21,455 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.PartitionRangeSelector | from dagster._record import IHaveNew, record, record_custom
@record(kw_only=False)
class PartitionRangeSelector:
"""The information needed to resolve a partition range."""
start: str
end: str
def to_graphql_input(self):
return {'start': self.start, 'end': self.end}
@staticmethod
def f... | @record(kw_only=False)
class PartitionRangeSelector:
'''The information needed to resolve a partition range.'''
def to_graphql_input(self):
pass
@staticmethod
def from_graphql_input(graphql_data):
pass | 5 | 1 | 5 | 0 | 5 | 0 | 1 | 0.07 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 2 | 18 | 3 | 14 | 4 | 10 | 1 | 7 | 3 | 4 | 1 | 0 | 0 | 2 |
21,456 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.PartitionSetSelector | from dagster._serdes import create_snapshot_id, whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
@whitelist_for_serdes
@record
class PartitionSetSelector:
"""The information needed to resolve a partition set within a host process."""
location_name: str
repository_name: str
... | @whitelist_for_serdes
@record
class PartitionSetSelector:
'''The information needed to resolve a partition set within a host process.'''
def to_graphql_input(self):
pass | 4 | 1 | 6 | 0 | 6 | 0 | 1 | 0.1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 13 | 2 | 10 | 2 | 8 | 1 | 6 | 2 | 4 | 1 | 0 | 0 | 1 |
21,457 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.PartitionsByAssetSelector | from dagster._record import IHaveNew, record, record_custom
from dagster._core.definitions.events import AssetKey
from typing import AbstractSet, Any, Optional
@record
class PartitionsByAssetSelector:
"""The information needed to define partitions selection for a given asset key."""
asset_key: AssetKey
par... | @record
class PartitionsByAssetSelector:
'''The information needed to define partitions selection for a given asset key.'''
def to_graphql_input(self):
pass
@staticmethod
def from_graphql_input(graphql_data) -> 'PartitionsByAssetSelector':
pass | 5 | 1 | 6 | 0 | 6 | 0 | 2 | 0.06 | 0 | 1 | 1 | 0 | 1 | 0 | 2 | 2 | 20 | 3 | 16 | 7 | 12 | 1 | 9 | 6 | 6 | 2 | 0 | 0 | 4 |
21,458 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.PartitionsSelector | import dagster._check as check
from collections.abc import Iterable, Mapping, Sequence
from dagster._record import IHaveNew, record, record_custom
from typing import AbstractSet, Any, Optional
@record(kw_only=False)
class PartitionsSelector:
"""The information needed to define selection partitions."""
ranges: ... | @record(kw_only=False)
class PartitionsSelector:
'''The information needed to define selection partitions.'''
def to_graphql_input(self):
pass
@staticmethod
def from_graphql_input(graphql_data: Mapping[str, Any]) -> 'PartitionsSelector':
pass | 5 | 1 | 12 | 1 | 11 | 0 | 2 | 0.04 | 0 | 4 | 1 | 0 | 1 | 0 | 2 | 2 | 30 | 5 | 24 | 4 | 20 | 1 | 11 | 3 | 8 | 3 | 0 | 1 | 4 |
21,459 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.RepositorySelector | from dagster._serdes import create_snapshot_id, whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
from dagster._annotations import public
@public
@whitelist_for_serdes
@record
class RepositorySelector:
location_name: str
repository_name: str
def to_graphql_input(self):
... | @public
@whitelist_for_serdes
@record
class RepositorySelector:
def to_graphql_input(self):
pass
@property
def selector_id(self):
pass
@staticmethod
def from_graphql_input(graphql_data):
pass | 9 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 3 | 3 | 20 | 3 | 17 | 6 | 11 | 0 | 9 | 4 | 5 | 1 | 0 | 0 | 3 |
21,460 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.ResourceSelector | from dagster._record import IHaveNew, record, record_custom
@record
class ResourceSelector:
location_name: str
repository_name: str
resource_name: str
def to_graphql_input(self):
return {'repositoryLocationName': self.location_name, 'repositoryName': self.repository_name, 'resourceName': self.... | @record
class ResourceSelector:
def to_graphql_input(self):
pass
@staticmethod
def from_graphql_input(graphql_data):
pass | 5 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 2 | 19 | 2 | 17 | 4 | 13 | 0 | 8 | 3 | 5 | 1 | 0 | 0 | 2 |
21,461 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.ScheduleSelector | from dagster._record import IHaveNew, record, record_custom
@record
class ScheduleSelector:
location_name: str
repository_name: str
schedule_name: str
def to_graphql_input(self):
return {'repositoryLocationName': self.location_name, 'repositoryName': self.repository_name, 'scheduleName': self.... | @record
class ScheduleSelector:
def to_graphql_input(self):
pass
@property
def instigator_name(self) -> str:
pass
@staticmethod
def from_graphql_input(graphql_data):
pass | 7 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 3 | 3 | 23 | 3 | 20 | 6 | 14 | 0 | 10 | 4 | 6 | 1 | 0 | 0 | 3 |
21,462 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/selector.py | dagster._core.definitions.selector.SensorSelector | from dagster._record import IHaveNew, record, record_custom
@record
class SensorSelector:
location_name: str
repository_name: str
sensor_name: str
def to_graphql_input(self):
return {'repositoryLocationName': self.location_name, 'repositoryName': self.repository_name, 'sensorName': self.sensor... | @record
class SensorSelector:
def to_graphql_input(self):
pass
@staticmethod
def from_graphql_input(graphql_data):
pass
@property
def instigator_name(self) -> str:
pass | 7 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 3 | 3 | 23 | 3 | 20 | 6 | 14 | 0 | 10 | 4 | 6 | 1 | 0 | 0 | 3 |
21,463 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/sensor_definition.py | dagster._core.definitions.sensor_definition.DefaultSensorStatus | from dagster._serdes import whitelist_for_serdes
from enum import Enum
@whitelist_for_serdes
class DefaultSensorStatus(Enum):
RUNNING = 'RUNNING'
STOPPED = 'STOPPED' | @whitelist_for_serdes
class DefaultSensorStatus(Enum):
pass | 2 | 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,464 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/sensor_definition.py | dagster._core.definitions.sensor_definition.SensorDefinition | from dagster._core.definitions.run_request import DagsterRunReaction, RunRequest, SensorResult, SkipReason
from dagster._annotations import deprecated, deprecated_param, public
from dagster._core.definitions.target import ANONYMOUS_ASSET_JOB_PREFIX, AutomationTarget, ExecutableDefinition
from dagster._core.definitions.... | @public
class SensorDefinition(IHasInternalInit):
'''Define a sensor that initiates a set of runs based on some external state.
Args:
evaluation_fn (Callable[[SensorEvaluationContext]]): The core evaluation function for the
sensor, which is run at an interval to determine whether a run shoul... | 55 | 16 | 20 | 1 | 17 | 1 | 3 | 0.15 | 1 | 23 | 12 | 3 | 23 | 12 | 24 | 25 | 571 | 60 | 447 | 144 | 338 | 67 | 164 | 66 | 137 | 19 | 1 | 3 | 74 |
21,465 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/sensor_definition.py | dagster._core.definitions.sensor_definition.SensorEvaluationContext | from dagster._utils import IHasInternalInit, normalize_to_repository
from dagster._utils.warnings import deprecation_warning, normalize_renamed_param
import dagster._check as check
from dagster._time import get_current_datetime
from dagster._core.instance import DagsterInstance
from dagster._core.definitions.scoped_res... | @deprecated_param(param='last_completion_time', breaking_version='2.0', additional_warn_text='Use `last_tick_completion_time` instead.')
@public
class SensorEvaluationContext:
'''The context object available as the argument to the evaluation function of a :py:class:`dagster.SensorDefinition`.
Users should not i... | 56 | 14 | 10 | 1 | 7 | 2 | 1 | 0.41 | 0 | 14 | 6 | 1 | 24 | 17 | 24 | 24 | 339 | 52 | 204 | 87 | 126 | 83 | 97 | 50 | 66 | 5 | 0 | 2 | 34 |
21,466 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/sensor_definition.py | dagster._core.definitions.sensor_definition.SensorExecutionData | from dagster._core.definitions.dynamic_partitions_request import AddDynamicPartitionsRequest, DeleteDynamicPartitionsRequest
from dagster._core.definitions.declarative_automation.serialized_objects import AutomationConditionEvaluation
from dagster_shared.record import IHaveNew, record_custom
from dagster._core.definiti... | @whitelist_for_serdes(storage_field_names={'dagster_run_reactions': 'pipeline_run_reactions', 'log_key': 'captured_log_key'})
@record_custom
class SensorExecutionData(IHaveNew):
def __new__(cls, run_requests: Optional[Sequence[RunRequest]]=None, skip_message: Optional[str]=None, cursor: Optional[str]=None, dagster... | 4 | 0 | 49 | 0 | 49 | 0 | 1 | 0 | 1 | 7 | 4 | 0 | 1 | 0 | 1 | 1 | 74 | 1 | 73 | 38 | 35 | 0 | 13 | 2 | 11 | 1 | 1 | 0 | 1 |
21,467 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/sensor_definition.py | dagster._core.definitions.sensor_definition.SensorType | from dagster._serdes import whitelist_for_serdes
from enum import Enum
@whitelist_for_serdes
class SensorType(Enum):
STANDARD = 'STANDARD'
RUN_STATUS = 'RUN_STATUS'
ASSET = 'ASSET'
MULTI_ASSET = 'MULTI_ASSET'
FRESHNESS_POLICY = 'FRESHNESS_POLICY'
AUTO_MATERIALIZE = 'AUTO_MATERIALIZE'
AUTOMA... | @whitelist_for_serdes
class SensorType(Enum):
@property
def is_handled_by_asset_daemon(self) -> bool:
pass | 4 | 0 | 3 | 0 | 2 | 1 | 1 | 0.08 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 50 | 14 | 1 | 12 | 11 | 9 | 1 | 11 | 10 | 9 | 1 | 4 | 0 | 1 |
21,468 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/source_asset.py | dagster._core.definitions.source_asset.SourceAsset | from dagster._core.definitions.utils import DEFAULT_GROUP_NAME, DEFAULT_IO_MANAGER_KEY, normalize_group_name
from dagster._core.storage.io_manager import IOManagerDefinition
from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Optional, cast
from dagster._core.definitions.assets.definition.asset_spec import As... | @beta_param(param='resource_defs')
@beta_param(param='io_manager_def')
@deprecated_param(param='legacy_freshness_policy', breaking_version='1.12.0')
@deprecated(breaking_version='2.0.0', additional_warn_text='Use AssetSpec instead. If using the SourceAsset io_manager_key property, use AssetSpec(...).with_io_manager_key... | 30 | 5 | 19 | 1 | 17 | 1 | 2 | 0.15 | 2 | 11 | 2 | 0 | 13 | 2 | 14 | 15 | 339 | 31 | 268 | 73 | 204 | 41 | 97 | 28 | 80 | 4 | 1 | 2 | 28 |
21,469 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/step_launcher.py | dagster._core.definitions.step_launcher.StepLauncher | from collections.abc import Iterator, Mapping
from abc import ABC, abstractmethod
@_step_launcher_supersession
class StepLauncher(ABC):
"""A StepLauncher is responsible for executing steps, either in-process or in an external process."""
@abstractmethod
def launch_step(self, step_context: 'StepExecutionCo... | @_step_launcher_supersession
class StepLauncher(ABC):
'''A StepLauncher is responsible for executing steps, either in-process or in an external process.'''
@abstractmethod
def launch_step(self, step_context: 'StepExecutionContext') -> Iterator['DagsterEvent']:
'''Args:
step_context (Step... | 4 | 2 | 7 | 1 | 1 | 5 | 1 | 2 | 1 | 1 | 0 | 3 | 1 | 0 | 1 | 21 | 11 | 2 | 3 | 3 | 0 | 6 | 2 | 2 | 0 | 1 | 4 | 0 | 1 |
21,470 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/step_launcher.py | dagster._core.definitions.step_launcher.StepRunRef | from typing import TYPE_CHECKING, NamedTuple, Optional
from dagster._core.execution.retries import RetryMode
import dagster._check as check
from collections.abc import Iterator, Mapping
from dagster._core.storage.dagster_run import DagsterRun
from dagster._core.definitions.reconstruct import ReconstructableJob
class S... |
class StepRunRef(NamedTuple('_StepRunRef', [('run_config', Mapping[str, object]), ('dagster_run', DagsterRun), ('run_id', str), ('retry_mode', RetryMode), ('step_key', str), ('recon_job', ReconstructableJob), ('known_state', Optional['KnownExecutionState'])])):
'''A serializable object that specifies what's needed... | 2 | 1 | 22 | 1 | 21 | 0 | 1 | 0.11 | 1 | 6 | 2 | 0 | 1 | 0 | 1 | 1 | 42 | 3 | 35 | 25 | 10 | 4 | 4 | 3 | 1 | 1 | 1 | 0 | 1 |
21,471 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/tags/tag_set.py | dagster._core.definitions.tags.tag_set.NamespacedTagSet | from dagster._core.definitions.metadata.metadata_set import NamespacedKVSet
from dagster import _check as check
from typing_extensions import TypeVar, get_args, get_origin
from dagster_shared.dagster_model.pydantic_compat_layer import model_fields
from dagster._utils.typing_api import is_closed_python_optional_type
fro... |
class NamespacedTagSet(NamespacedKVSet):
'''Extend this class to define a set of tags in the same namespace.
Supports splatting to a dictionary that can be placed inside a tags argument along with
other tags.
.. code-block:: python
my_tags: NamespacedTagsSet = ...
@asset(
ta... | 4 | 2 | 12 | 1 | 11 | 1 | 2 | 0.52 | 1 | 3 | 0 | 6 | 1 | 0 | 2 | 96 | 41 | 6 | 23 | 9 | 19 | 12 | 12 | 8 | 9 | 3 | 7 | 2 | 4 |
21,472 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/target.py | dagster._core.definitions.target.AutomationTarget | from dagster._core.definitions.unresolved_asset_job_definition import UnresolvedAssetJobDefinition, define_asset_job
from typing import NamedTuple, Optional, Union
from dagster._core.definitions.source_asset import SourceAsset
from dagster._utils.warnings import deprecation_warning
from dagster._core.definitions.job_de... |
class AutomationTarget(NamedTuple('_AutomationTarget', [('resolvable_to_job', ResolvableToJob), ('op_selection', Optional[Sequence[str]]), ('assets_defs', Sequence[Union[AssetsDefinition, SourceAsset]])])):
'''An abstraction representing a job to be executed by an automation, i.e. schedule or sensor.
Args:
... | 10 | 1 | 14 | 0 | 14 | 0 | 3 | 0.08 | 1 | 6 | 2 | 0 | 4 | 0 | 5 | 5 | 96 | 7 | 83 | 31 | 55 | 7 | 28 | 9 | 22 | 7 | 1 | 2 | 13 |
21,473 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/timestamp.py | dagster._core.definitions.timestamp.TimestampWithTimezone | from dagster._serdes import whitelist_for_serdes
from typing import NamedTuple
@whitelist_for_serdes
class TimestampWithTimezone(NamedTuple):
timestamp: float
timezone: str | @whitelist_for_serdes
class TimestampWithTimezone(NamedTuple):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,474 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/unresolved_asset_job_definition.py | dagster._core.definitions.unresolved_asset_job_definition.UnresolvedAssetJobDefinition | import dagster._check as check
from dagster_shared.record import IHaveNew, record_custom, replace
from dagster._core.definitions.asset_selection import AssetSelection
from dagster._core.definitions.assets.job.asset_job import build_asset_job, get_asset_graph_for_job
from dagster._core.definitions.executor_definition im... | @record_custom
class UnresolvedAssetJobDefinition(IHaveNew):
def __new__(cls, name: str, selection: AssetSelection, config: Optional[Union[ConfigMapping, Mapping[str, Any], 'PartitionedConfig', 'RunConfig']]=None, description: Optional[str]=None, tags: Optional[Mapping[str, str]]=None, run_tags: Optional[Mapping[s... | 7 | 2 | 60 | 4 | 45 | 11 | 3 | 0.21 | 1 | 13 | 5 | 0 | 3 | 9 | 3 | 3 | 208 | 15 | 160 | 80 | 97 | 33 | 32 | 14 | 25 | 4 | 1 | 1 | 10 |
21,475 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/definitions/utils.py | dagster._core.definitions.utils.NoValueSentinel | class NoValueSentinel:
"""Sentinel value to distinguish unset from None.""" | class NoValueSentinel:
'''Sentinel value to distinguish unset from None.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
21,476 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterAssetBackfillDataLoadError | from dagster_shared.error import DagsterError
class DagsterAssetBackfillDataLoadError(DagsterError):
"""Indicates that an asset backfill is now unloadable. May happen when (1) a code location containing
targeted assets is unloadable or (2) and asset or an asset's partitions definition has been removed.
""" |
class DagsterAssetBackfillDataLoadError(DagsterError):
'''Indicates that an asset backfill is now unloadable. May happen when (1) a code location containing
targeted assets is unloadable or (2) and asset or an asset's partitions definition has been removed.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,477 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterAssetCheckFailedError | from dagster_shared.error import DagsterError
class DagsterAssetCheckFailedError(DagsterError):
"""Indicates than an asset check failed.""" |
class DagsterAssetCheckFailedError(DagsterError):
'''Indicates than an asset check failed.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,478 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterBackfillFailedError | import dagster._check as check
from dagster_shared.error import DagsterError
class DagsterBackfillFailedError(DagsterError):
"""Indicates an error while attempting to launch a backfill."""
def __init__(self, *args, **kwargs):
from dagster._utils.error import SerializableErrorInfo
self.serializ... |
class DagsterBackfillFailedError(DagsterError):
'''Indicates an error while attempting to launch a backfill.'''
def __init__(self, *args, **kwargs):
pass | 2 | 1 | 9 | 1 | 8 | 0 | 1 | 0.11 | 1 | 2 | 1 | 0 | 1 | 1 | 1 | 12 | 12 | 2 | 9 | 4 | 6 | 1 | 5 | 4 | 2 | 1 | 4 | 0 | 1 |
21,479 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterCodeLocationLoadError | import dagster._check as check
from dagster_shared.error import DagsterError
class DagsterCodeLocationLoadError(DagsterError):
def __init__(self, *args, **kwargs):
from dagster._utils.error import SerializableErrorInfo
self.load_error_infos = check.list_param(kwargs.pop('load_error_infos'), 'load_... |
class DagsterCodeLocationLoadError(DagsterError):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 9 | 1 | 8 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 1 | 1 | 12 | 10 | 1 | 9 | 4 | 6 | 0 | 5 | 4 | 2 | 1 | 4 | 0 | 1 |
21,480 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterCodeLocationNotFoundError | from dagster_shared.error import DagsterError
class DagsterCodeLocationNotFoundError(DagsterError):
pass |
class DagsterCodeLocationNotFoundError(DagsterError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
21,481 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterConfigMappingFunctionError | class DagsterConfigMappingFunctionError(DagsterUserCodeExecutionError):
"""Indicates that an unexpected error occurred while executing the body of a config mapping
function defined in a :py:class:`~dagster.JobDefinition` or `~dagster.GraphDefinition` during
config parsing.
""" | class DagsterConfigMappingFunctionError(DagsterUserCodeExecutionError):
'''Indicates that an unexpected error occurred while executing the body of a config mapping
function defined in a :py:class:`~dagster.JobDefinition` or `~dagster.GraphDefinition` during
config parsing.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 5 | 0 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
21,482 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterDefinitionChangedDeserializationError | from dagster_shared.error import DagsterError
class DagsterDefinitionChangedDeserializationError(DagsterError):
"""Indicates that a stored value can't be deserialized because the definition needed to interpret
it has changed.
""" |
class DagsterDefinitionChangedDeserializationError(DagsterError):
'''Indicates that a stored value can't be deserialized because the definition needed to interpret
it has changed.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,483 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterEventLogInvalidForRun | from dagster_shared.error import DagsterError
import dagster._check as check
class DagsterEventLogInvalidForRun(DagsterError):
"""Raised when the event logs for a historical run are malformed or invalid."""
def __init__(self, run_id):
self.run_id = check.str_param(run_id, 'run_id')
super().__i... |
class DagsterEventLogInvalidForRun(DagsterError):
'''Raised when the event logs for a historical run are malformed or invalid.'''
def __init__(self, run_id):
pass | 2 | 1 | 3 | 0 | 3 | 0 | 1 | 0.25 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 12 | 6 | 1 | 4 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
21,484 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterExecutionHandleOutputError | import dagster._check as check
class DagsterExecutionHandleOutputError(DagsterUserCodeExecutionError):
"""Indicates an error occurred while handling an output for a step."""
def __init__(self, *args, **kwargs):
self.step_key = check.str_param(kwargs.pop('step_key'), 'step_key')
self.output_nam... |
class DagsterExecutionHandleOutputError(DagsterUserCodeExecutionError):
'''Indicates an error occurred while handling an output for a step.'''
def __init__(self, *args, **kwargs):
pass | 2 | 1 | 4 | 0 | 4 | 0 | 1 | 0.2 | 1 | 1 | 0 | 0 | 1 | 2 | 1 | 14 | 7 | 1 | 5 | 4 | 3 | 1 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
21,485 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterExecutionInterruptedError | class DagsterExecutionInterruptedError(BaseException):
"""Pipeline execution was interrupted during the execution process.
Just like KeyboardInterrupt this inherits from BaseException
as to not be accidentally caught by code that catches Exception
and thus prevent the interpreter from exiting.
""" | class DagsterExecutionInterruptedError(BaseException):
'''Pipeline execution was interrupted during the execution process.
Just like KeyboardInterrupt this inherits from BaseException
as to not be accidentally caught by code that catches Exception
and thus prevent the interpreter from exiting.
'''
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 7 | 1 | 1 | 1 | 0 | 5 | 1 | 1 | 0 | 0 | 2 | 0 | 0 |
21,486 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterExecutionLoadInputError | import dagster._check as check
class DagsterExecutionLoadInputError(DagsterUserCodeExecutionError):
"""Indicates an error occurred while loading an input for a step."""
def __init__(self, *args, **kwargs):
self.step_key = check.str_param(kwargs.pop('step_key'), 'step_key')
self.input_name = ch... |
class DagsterExecutionLoadInputError(DagsterUserCodeExecutionError):
'''Indicates an error occurred while loading an input for a step.'''
def __init__(self, *args, **kwargs):
pass | 2 | 1 | 4 | 0 | 4 | 0 | 1 | 0.2 | 1 | 1 | 0 | 0 | 1 | 2 | 1 | 14 | 7 | 1 | 5 | 4 | 3 | 1 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
21,487 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterExecutionPlanSnapshotNotFoundError | from dagster_shared.error import DagsterError
class DagsterExecutionPlanSnapshotNotFoundError(DagsterError):
"""Thrown when an expected execution plan snapshot could not be found on a PipelineRun.""" |
class DagsterExecutionPlanSnapshotNotFoundError(DagsterError):
'''Thrown when an expected execution plan snapshot could not be found on a PipelineRun.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,488 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterExecutionStepExecutionError | import dagster._check as check
class DagsterExecutionStepExecutionError(DagsterUserCodeExecutionError):
"""Indicates an error occurred while executing the body of an execution step."""
def __init__(self, *args, **kwargs):
self.step_key = check.str_param(kwargs.pop('step_key'), 'step_key')
self... |
class DagsterExecutionStepExecutionError(DagsterUserCodeExecutionError):
'''Indicates an error occurred while executing the body of an execution step.'''
def __init__(self, *args, **kwargs):
pass | 2 | 1 | 5 | 0 | 5 | 0 | 1 | 0.17 | 1 | 1 | 0 | 0 | 1 | 3 | 1 | 14 | 8 | 1 | 6 | 5 | 4 | 1 | 6 | 5 | 4 | 1 | 5 | 0 | 1 |
21,489 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterExecutionStepNotFoundError | import dagster._check as check
from dagster_shared.error import DagsterError
class DagsterExecutionStepNotFoundError(DagsterError):
"""Thrown when the user specifies execution step keys that do not exist."""
def __init__(self, *args, **kwargs):
self.step_keys = check.list_param(kwargs.pop('step_keys')... |
class DagsterExecutionStepNotFoundError(DagsterError):
'''Thrown when the user specifies execution step keys that do not exist.'''
def __init__(self, *args, **kwargs):
pass | 2 | 1 | 3 | 0 | 3 | 0 | 1 | 0.25 | 1 | 2 | 0 | 0 | 1 | 1 | 1 | 12 | 6 | 1 | 4 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
21,490 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterHomeNotSetError | from dagster_shared.error import DagsterError
class DagsterHomeNotSetError(DagsterError):
"""The user has tried to use a command that requires an instance or invoke DagsterInstance.get()
without setting DAGSTER_HOME env var.
""" |
class DagsterHomeNotSetError(DagsterError):
'''The user has tried to use a command that requires an instance or invoke DagsterInstance.get()
without setting DAGSTER_HOME env var.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,491 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterImportError | from dagster_shared.error import DagsterError
class DagsterImportError(DagsterError):
"""Import error raised while importing user-code.""" |
class DagsterImportError(DagsterError):
'''Import error raised while importing user-code.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,492 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterInvalidAssetKey | from dagster_shared.error import DagsterError
class DagsterInvalidAssetKey(DagsterError):
"""Error raised by invalid asset key.""" |
class DagsterInvalidAssetKey(DagsterError):
'''Error raised by invalid asset key.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,493 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterInvalidConfigDefinitionError | from dagster_shared.error import DagsterError
class DagsterInvalidConfigDefinitionError(DagsterError):
"""Indicates that you have attempted to construct a config with an invalid value.
Acceptable values for config types are any of:
1. A Python primitive type that resolves to a Dagster config type
... |
class DagsterInvalidConfigDefinitionError(DagsterError):
'''Indicates that you have attempted to construct a config with an invalid value.
Acceptable values for config types are any of:
1. A Python primitive type that resolves to a Dagster config type
(:py:class:`~python:int`, :py:class:`~p... | 2 | 1 | 17 | 0 | 17 | 0 | 3 | 1 | 1 | 1 | 0 | 0 | 1 | 3 | 1 | 12 | 42 | 6 | 18 | 5 | 16 | 18 | 6 | 5 | 4 | 3 | 4 | 0 | 3 |
21,494 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterInvalidConfigError | from dagster_shared.error import DagsterError
import dagster._check as check
class DagsterInvalidConfigError(DagsterError):
"""Thrown when provided config is invalid (does not type check against the relevant config
schema).
"""
def __init__(self, preamble, errors, config_value, *args, **kwargs):
... |
class DagsterInvalidConfigError(DagsterError):
'''Thrown when provided config is invalid (does not type check against the relevant config
schema).
'''
def __init__(self, preamble, errors, config_value, *args, **kwargs):
pass | 2 | 1 | 18 | 5 | 13 | 0 | 2 | 0.21 | 1 | 2 | 0 | 0 | 1 | 4 | 1 | 12 | 23 | 6 | 14 | 10 | 11 | 3 | 14 | 10 | 11 | 2 | 4 | 1 | 2 |
21,495 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterInvalidDagsterTypeInPythonicConfigDefinitionError | from typing import TYPE_CHECKING, Any, Callable, Optional
from dagster_shared.error import DagsterError
class DagsterInvalidDagsterTypeInPythonicConfigDefinitionError(DagsterError):
"""Indicates that you have attempted to construct a Pythonic config or resource class with a DagsterType
annotated field.
"""... |
class DagsterInvalidDagsterTypeInPythonicConfigDefinitionError(DagsterError):
'''Indicates that you have attempted to construct a Pythonic config or resource class with a DagsterType
annotated field.
'''
def __init__(self, config_class_name: str, field_name: Optional[str], **kwargs):
pass | 2 | 1 | 12 | 0 | 12 | 0 | 1 | 0.23 | 1 | 2 | 0 | 0 | 1 | 1 | 1 | 12 | 17 | 1 | 13 | 8 | 6 | 3 | 4 | 3 | 2 | 1 | 4 | 0 | 1 |
21,496 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterInvalidDefinitionError | from dagster_shared.error import DagsterError
class DagsterInvalidDefinitionError(DagsterError):
"""Indicates that the rules for a definition have been violated by the user.""" |
class DagsterInvalidDefinitionError(DagsterError):
'''Indicates that the rules for a definition have been violated by the user.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,497 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterInvalidDeserializationVersionError | from dagster_shared.error import DagsterError
class DagsterInvalidDeserializationVersionError(DagsterError):
"""Indicates that a serialized value has an unsupported version and cannot be deserialized.""" |
class DagsterInvalidDeserializationVersionError(DagsterError):
'''Indicates that a serialized value has an unsupported version and cannot be deserialized.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,498 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterInvalidInvocationError | from dagster_shared.error import DagsterError
class DagsterInvalidInvocationError(DagsterError):
"""Indicates that an error has occurred when an op has been invoked, but before the actual
core compute has been reached.
""" |
class DagsterInvalidInvocationError(DagsterError):
'''Indicates that an error has occurred when an op has been invoked, but before the actual
core compute has been reached.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
21,499 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_core/errors.py | dagster._core.errors.DagsterInvalidMetadata | from dagster_shared.error import DagsterError
class DagsterInvalidMetadata(DagsterError):
"""Error raised by invalid metadata parameters.""" |
class DagsterInvalidMetadata(DagsterError):
'''Error raised by invalid metadata parameters.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.