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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22,900 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/sensors.py | dagster_graphql.schema.sensors.GrapheneStopSensorMutationResult | from dagster_graphql.schema.util import ResolveInfo, non_null_list
from dagster_graphql.schema.instigation import GrapheneDryRunInstigationTick, GrapheneInstigationState, GrapheneInstigationStatus
import graphene
import dagster._check as check
from dagster._core.scheduler.instigation import InstigatorState, InstigatorS... |
class GrapheneStopSensorMutationResult(graphene.ObjectType):
class Meta:
def __init__(self, instigator_state):
pass
def resolve_instigationState(self, _graphene_info: ResolveInfo):
pass | 4 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 2 | 1 | 2 | 2 | 14 | 3 | 11 | 7 | 7 | 0 | 9 | 7 | 5 | 1 | 1 | 0 | 2 |
22,901 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/sensors.py | dagster_graphql.schema.sensors.GrapheneTarget | import graphene
import dagster._check as check
from dagster._core.remote_representation.external_data import TargetSnap
class GrapheneTarget(graphene.ObjectType):
pipelineName = graphene.NonNull(graphene.String)
mode = graphene.NonNull(graphene.String)
solidSelection = graphene.List(graphene.NonNull(graphe... |
class GrapheneTarget(graphene.ObjectType):
class Meta:
def __init__(self, target_snap: TargetSnap):
pass | 3 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 15 | 2 | 13 | 8 | 10 | 0 | 9 | 8 | 6 | 1 | 1 | 0 | 1 |
22,902 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneCompositeSolidDefinition | from collections.abc import Mapping, Sequence
from dagster_graphql.schema.util import ResolveInfo, non_null_list
import graphene
from dagster._core.snap import DependencyStructureIndex, GraphDefSnap, OpDefSnap
import dagster._check as check
from typing import TYPE_CHECKING, Optional, Union
from dagster._core.remote_rep... |
class GrapheneCompositeSolidDefinition(graphene.ObjectType, ISolidDefinitionMixin):
class Meta:
def __init__(self, represented_pipeline: RepresentedJob, solid_def_name: str):
pass
def resolve_id(self, _graphene_info: ResolveInfo) -> str:
pass
def resolve_solids(self, _graphene_info:... | 10 | 0 | 8 | 0 | 7 | 0 | 1 | 0.03 | 2 | 8 | 5 | 0 | 8 | 3 | 8 | 15 | 88 | 11 | 75 | 30 | 59 | 2 | 39 | 24 | 29 | 3 | 1 | 1 | 10 |
22,903 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneInput | from dagster._core.snap import DependencyStructureIndex, GraphDefSnap, OpDefSnap
from dagster_graphql.schema.util import ResolveInfo, non_null_list
from dagster._core.remote_representation.represented import RepresentedJob
from collections.abc import Mapping, Sequence
import dagster._check as check
import graphene
cla... |
class GrapheneInput(graphene.ObjectType):
class Meta:
def __init__(self, represented_pipeline: RepresentedJob, current_dep_structure: DependencyStructureIndex, solid_name: str, input_name: str):
pass
def resolve_solid(self, _graphene_info: ResolveInfo) -> 'GrapheneSolid':
pass
def r... | 7 | 0 | 9 | 0 | 9 | 0 | 1 | 0 | 1 | 7 | 4 | 0 | 5 | 7 | 5 | 5 | 59 | 7 | 52 | 25 | 39 | 0 | 24 | 19 | 17 | 1 | 1 | 0 | 5 |
22,904 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneInputDefinition | import dagster._check as check
from dagster_graphql.schema.metadata import GrapheneMetadataEntry, GrapheneMetadataItemDefinition
from dagster._core.remote_representation.represented import RepresentedJob
import graphene
from dagster_graphql.schema.util import ResolveInfo, non_null_list
from dagster_graphql.implementati... |
class GrapheneInputDefinition(graphene.ObjectType):
class Meta:
def __init__(self, represented_job: RepresentedJob, solid_def_name: str, input_def_name: str):
pass
def resolve_type(self, _graphene_info: ResolveInfo) -> GrapheneDagsterTypeUnion:
pass
def resolve_metadata_entries(self... | 5 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 3 | 2 | 3 | 3 | 31 | 4 | 27 | 13 | 22 | 0 | 18 | 13 | 13 | 1 | 1 | 0 | 3 |
22,905 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneInputMapping | from dagster._core.snap import DependencyStructureIndex, GraphDefSnap, OpDefSnap
from dagster._core.remote_representation.represented import RepresentedJob
import dagster._check as check
from dagster._core.snap.node import InputMappingSnap, OutputMappingSnap
import graphene
class GrapheneInputMapping(graphene.ObjectTy... |
class GrapheneInputMapping(graphene.ObjectType):
class Meta:
def __init__(self, represented_pipeline, current_dep_index, solid_def_name, input_mapping_snap):
pass
def resolve_mapped_input(self, _graphene_info):
pass
def resolve_definition(self, _graphene_info):
pass | 5 | 0 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 4 | 3 | 0 | 3 | 4 | 3 | 3 | 40 | 4 | 36 | 18 | 25 | 0 | 15 | 12 | 10 | 1 | 1 | 0 | 3 |
22,906 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneOutput | from dagster._core.snap import DependencyStructureIndex, GraphDefSnap, OpDefSnap
from dagster._core.remote_representation.represented import RepresentedJob
import dagster._check as check
from collections.abc import Mapping, Sequence
from dagster_graphql.schema.util import ResolveInfo, non_null_list
import graphene
cla... |
class GrapheneOutput(graphene.ObjectType):
class Meta:
def __init__(self, represented_pipeline, current_dep_structure, solid_name, output_name):
pass
def resolve_solid(self, _) -> 'GrapheneSolid':
pass
def resolve_definition(self, _graphene_info: ResolveInfo) -> GrapheneOutputDefini... | 6 | 0 | 10 | 0 | 10 | 0 | 1 | 0 | 1 | 6 | 4 | 0 | 4 | 7 | 4 | 4 | 49 | 5 | 44 | 17 | 38 | 0 | 21 | 17 | 15 | 1 | 1 | 0 | 4 |
22,907 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneOutputDefinition | import dagster._check as check
import graphene
from dagster_graphql.implementation.events import iterate_metadata_entries
from dagster_graphql.schema.util import ResolveInfo, non_null_list
from dagster._core.remote_representation.represented import RepresentedJob
from dagster_graphql.schema.metadata import GrapheneMeta... |
class GrapheneOutputDefinition(graphene.ObjectType):
class Meta:
def __init__(self, represented_job: RepresentedJob, solid_def_name: str, output_def_name: str, is_dynamic: bool):
pass
def resolve_type(self, _graphene_info) -> GrapheneDagsterTypeUnion:
pass
def resolve_metadata_entri... | 5 | 0 | 9 | 1 | 8 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 3 | 2 | 3 | 3 | 39 | 6 | 33 | 20 | 22 | 0 | 19 | 14 | 14 | 1 | 1 | 0 | 3 |
22,908 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneOutputMapping | import graphene
from dagster._core.remote_representation.represented import RepresentedJob
from dagster._core.snap.node import InputMappingSnap, OutputMappingSnap
import dagster._check as check
from dagster._core.snap import DependencyStructureIndex, GraphDefSnap, OpDefSnap
class GrapheneOutputMapping(graphene.ObjectT... |
class GrapheneOutputMapping(graphene.ObjectType):
class Meta:
def __init__(self, represented_pipeline, current_dep_index, solid_def_name, output_mapping_snap):
pass
def resolve_mapped_output(self, _graphene_info):
pass
def resolve_definition(self, _graphene_info):
pass | 5 | 0 | 11 | 0 | 10 | 0 | 1 | 0 | 1 | 4 | 3 | 0 | 3 | 5 | 3 | 3 | 41 | 5 | 36 | 15 | 29 | 0 | 16 | 13 | 11 | 1 | 1 | 0 | 3 |
22,909 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneResourceRequirement | import graphene
class GrapheneResourceRequirement(graphene.ObjectType):
resource_key = graphene.NonNull(graphene.String)
class Meta:
name = 'ResourceRequirement'
def __init__(self, resource_key):
super().__init__()
self.resource_key = resource_key |
class GrapheneResourceRequirement(graphene.ObjectType):
class Meta:
def __init__(self, resource_key):
pass | 3 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 9 | 2 | 7 | 5 | 4 | 0 | 7 | 5 | 4 | 1 | 1 | 0 | 1 |
22,910 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneSolid | import dagster._check as check
import graphene
from dagster._core.snap import DependencyStructureIndex, GraphDefSnap, OpDefSnap
from dagster._core.remote_representation.represented import RepresentedJob
from dagster_graphql.schema.util import ResolveInfo, non_null_list
from typing import TYPE_CHECKING, Optional, Union
... |
class GrapheneSolid(graphene.ObjectType):
class Meta:
def __init__(self, represented_pipeline: RepresentedJob, solid_name: str, current_dep_structure: DependencyStructureIndex):
pass
def get_solid_definition_name(self) -> str:
pass
def get_solid_definition_name(self) -> str:
... | 12 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 9 | 5 | 0 | 10 | 4 | 10 | 10 | 77 | 13 | 64 | 31 | 43 | 0 | 33 | 22 | 21 | 1 | 1 | 0 | 10 |
22,911 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneSolidDefinition | from dagster._core.remote_representation.represented import RepresentedJob
import dagster._check as check
from collections.abc import Mapping, Sequence
from dagster._core.snap import DependencyStructureIndex, GraphDefSnap, OpDefSnap
import graphene
from dagster_graphql.schema.util import ResolveInfo, non_null_list
from... |
class GrapheneSolidDefinition(graphene.ObjectType, ISolidDefinitionMixin):
class Meta:
def __init__(self, represented_pipeline: RepresentedJob, solid_def_name: str):
pass
def resolve_config_field(self, _graphene_info: ResolveInfo) -> Optional[GrapheneConfigTypeField]:
pass
def resol... | 6 | 0 | 7 | 0 | 7 | 0 | 2 | 0 | 2 | 6 | 3 | 0 | 4 | 1 | 4 | 11 | 39 | 5 | 34 | 17 | 24 | 0 | 21 | 13 | 15 | 2 | 1 | 1 | 6 |
22,912 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.GrapheneSolidHandle | from dagster_graphql.schema.logs.events import GrapheneRunStepStats
import graphene
import dagster._check as check
from dagster_graphql.schema.util import ResolveInfo, non_null_list
from typing import TYPE_CHECKING, Optional, Union
from dagster._core.storage.dagster_run import RunsFilter
from dagster._core.definitions ... |
class GrapheneSolidHandle(graphene.ObjectType):
class Meta:
def __init__(self, handle: NodeHandle, solid: GrapheneSolid, parent: Optional['GrapheneSolidHandle']=None):
pass
def resolve_stepStats(self, _graphene_info: ResolveInfo, limit: Optional[int]):
pass | 4 | 0 | 16 | 1 | 15 | 0 | 3 | 0 | 1 | 9 | 6 | 0 | 2 | 1 | 2 | 2 | 42 | 5 | 37 | 21 | 28 | 0 | 24 | 16 | 20 | 5 | 1 | 2 | 6 |
22,913 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids.ISolidDefinitionMixin | from dagster._core.snap import DependencyStructureIndex, GraphDefSnap, OpDefSnap
from dagster._core.storage.tags import COMPUTE_KIND_TAG, LEGACY_COMPUTE_KIND_TAG
import dagster._check as check
from collections.abc import Mapping, Sequence
from dagster._core.remote_representation.external import RemoteJob
from dagster_g... |
class ISolidDefinitionMixin:
def __init__(self, represented_pipeline: RepresentedJob, solid_def_name: str):
pass
def resolve_metadata(self, _graphene_info):
pass
@property
def solid_def_name(self) -> str:
pass
def resolve_input_definitions(self, _graphene_info) -> Sequenc... | 9 | 0 | 10 | 0 | 9 | 1 | 2 | 0.07 | 0 | 10 | 7 | 2 | 7 | 2 | 7 | 7 | 81 | 8 | 68 | 16 | 58 | 5 | 32 | 15 | 23 | 4 | 0 | 2 | 13 |
22,914 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/solids.py | dagster_graphql.schema.solids._ArgNotPresentSentinel | class _ArgNotPresentSentinel:
pass | class _ArgNotPresentSentinel:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
22,915 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/table.py | dagster_graphql.schema.table.GrapheneTableColumn | from dagster._core.definitions.metadata.table import TableColumn
import graphene
from collections.abc import Sequence
from dagster_graphql.schema.util import non_null_list
from dagster_graphql.schema.tags import GrapheneDefinitionTag
class GrapheneTableColumn(graphene.ObjectType):
name = graphene.NonNull(graphene.... |
class GrapheneTableColumn(graphene.ObjectType):
class Meta:
@staticmethod
def resolve_tags(parent: TableColumn, _info) -> Sequence[GrapheneDefinitionTag]:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 3 | 2 | 0 | 0 | 0 | 1 | 1 | 13 | 2 | 11 | 10 | 7 | 0 | 10 | 9 | 7 | 1 | 1 | 0 | 1 |
22,916 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/table.py | dagster_graphql.schema.table.GrapheneTableColumnDep | from dagster_graphql.schema.entity_key import GrapheneAssetKey
import graphene
class GrapheneTableColumnDep(graphene.ObjectType):
assetKey = graphene.NonNull(GrapheneAssetKey)
columnName = graphene.NonNull(graphene.String)
class Meta:
name = 'TableColumnDep'
def __init__(self, column_dep: 'Ta... |
class GrapheneTableColumnDep(graphene.ObjectType):
class Meta:
def __init__(self, column_dep: 'TableColumnDep'):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 9 | 2 | 7 | 6 | 4 | 0 | 7 | 6 | 4 | 1 | 1 | 0 | 1 |
22,917 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/table.py | dagster_graphql.schema.table.GrapheneTableColumnLineageEntry | import graphene
from collections.abc import Sequence
from dagster_graphql.schema.util import non_null_list
class GrapheneTableColumnLineageEntry(graphene.ObjectType):
columnName = graphene.NonNull(graphene.String)
columnDeps = non_null_list(GrapheneTableColumnDep)
class Meta:
name = 'TableColumnLi... |
class GrapheneTableColumnLineageEntry(graphene.ObjectType):
class Meta:
def __init__(self, column_name: str, column_deps: Sequence['TableColumnDep']):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 12 | 2 | 10 | 6 | 7 | 0 | 7 | 6 | 4 | 1 | 1 | 0 | 1 |
22,918 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/tags.py | dagster_graphql.schema.tags.GrapheneDefinitionTag | import graphene
class GrapheneDefinitionTag(graphene.ObjectType):
key = graphene.NonNull(graphene.String)
value = graphene.NonNull(graphene.String)
class Meta:
name = 'DefinitionTag'
def __init__(self, key, value):
super().__init__(key=key, value=value) |
class GrapheneDefinitionTag(graphene.ObjectType):
class Meta:
def __init__(self, key, value):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 9 | 2 | 7 | 6 | 4 | 0 | 7 | 6 | 4 | 1 | 1 | 0 | 1 |
22,919 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/tags.py | dagster_graphql.schema.tags.GrapheneEventTag | import graphene
class GrapheneEventTag(graphene.ObjectType):
key = graphene.NonNull(graphene.String)
value = graphene.NonNull(graphene.String)
class Meta:
name = 'EventTag'
def __init__(self, key, value):
super().__init__(key=key, value=value) |
class GrapheneEventTag(graphene.ObjectType):
class Meta:
def __init__(self, key, value):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 9 | 2 | 7 | 6 | 4 | 0 | 7 | 6 | 4 | 1 | 1 | 0 | 1 |
22,920 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/tags.py | dagster_graphql.schema.tags.GraphenePipelineTag | import graphene
class GraphenePipelineTag(graphene.ObjectType):
key = graphene.NonNull(graphene.String)
value = graphene.NonNull(graphene.String)
class Meta:
name = 'PipelineTag'
def __init__(self, key, value):
super().__init__(key=key, value=value) |
class GraphenePipelineTag(graphene.ObjectType):
class Meta:
def __init__(self, key, value):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 9 | 2 | 7 | 6 | 4 | 0 | 7 | 6 | 4 | 1 | 1 | 0 | 1 |
22,921 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/tags.py | dagster_graphql.schema.tags.GraphenePipelineTagAndValues | from dagster_graphql.schema.util import non_null_list
import graphene
class GraphenePipelineTagAndValues(graphene.ObjectType):
class Meta:
description = 'A run tag and the free-form values that have been associated\n with it so far.'
name = 'PipelineTagAndValues'
key = graphene.NonNull(... |
class GraphenePipelineTagAndValues(graphene.ObjectType):
class Meta:
def __init__(self, key, values):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 11 | 2 | 9 | 7 | 6 | 0 | 8 | 7 | 5 | 1 | 1 | 0 | 1 |
22,922 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql/schema/util.py | dagster_graphql.schema.util.ResolveInfo | import graphene
from typing import cast
from dagster._core.workspace.context import WorkspaceRequestContext
class ResolveInfo(graphene.ResolveInfo):
@property
def context(self) -> WorkspaceRequestContext:
return cast('WorkspaceRequestContext', super().context) |
class ResolveInfo(graphene.ResolveInfo):
@property
def context(self) -> WorkspaceRequestContext:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 1 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
22,923 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql_tests/client_tests/sleepy.py | dagster_graphql_tests.client_tests.sleepy.GiverConfig | from dagster import Config, In, Int, List, Out, Output, job, op
from pydantic import Field
class GiverConfig(Config):
units: list[int] = Field(default_value=[1, 1, 1, 1]) |
class GiverConfig(Config):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 0 | 1 | 0 | 0 |
22,924 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql_tests/conftest.py | dagster_graphql_tests.conftest.SharedSnapshotExtension | from syrupy.extensions.amber import AmberSnapshotExtension
class SharedSnapshotExtension(AmberSnapshotExtension):
@classmethod
def get_snapshot_name(cls, *, index: 'SnapshotIndex', test_location: 'PyTestLocation') -> str:
snapshot_name = test_location.snapshot_name
variant_start_index = snapsh... |
class SharedSnapshotExtension(AmberSnapshotExtension):
@classmethod
def get_snapshot_name(cls, *, index: 'SnapshotIndex', test_location: 'PyTestLocation') -> str:
pass | 3 | 0 | 15 | 2 | 11 | 2 | 2 | 0.15 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 17 | 2 | 13 | 10 | 5 | 2 | 7 | 4 | 5 | 2 | 1 | 1 | 2 |
22,925 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql_tests/graphql/repo.py | dagster_graphql_tests.graphql.repo.DummyIOManager | from dagster import Any, AssetCheckKey, AssetCheckResult, AssetCheckSpec, AssetExecutionContext, AssetIn, AssetKey, AssetMaterialization, AssetObservation, AssetOut, AssetsDefinition, AssetSelection, AutoMaterializePolicy, BackfillPolicy, Bool, DagsterInstance, DataVersion, DefaultScheduleStatus, DefaultSensorStatus, D... |
class DummyIOManager(IOManager):
def handle_output(self, context, obj):
pass
def load_input(self, context):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 6 | 1 | 5 | 3 | 2 | 0 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
22,926 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql_tests/graphql/repo.py | dagster_graphql_tests.graphql.repo.MyAutomationCondition | from dagster._core.definitions.declarative_automation.automation_condition import AutomationCondition
class MyAutomationCondition(AutomationCondition):
@property
def name(self) -> str:
return 'some_custom_name'
def evaluate(self):
... |
class MyAutomationCondition(AutomationCondition):
@property
def name(self) -> str:
pass
def evaluate(self):
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 76 | 6 | 1 | 5 | 4 | 2 | 0 | 5 | 3 | 2 | 1 | 5 | 0 | 2 |
22,927 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql_tests/graphql/repo_definitions.py | dagster_graphql_tests.graphql.repo_definitions.MyInnerResource | from dagster._config.pythonic_config import ConfigurableResource
class MyInnerResource(ConfigurableResource):
a_str: str |
class MyInnerResource(ConfigurableResource):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 126 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 9 | 0 | 0 |
22,928 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql_tests/graphql/repo_definitions.py | dagster_graphql_tests.graphql.repo_definitions.MyOuterResource | from dagster._config.pythonic_config import ConfigurableResource
class MyOuterResource(ConfigurableResource):
inner: MyInnerResource |
class MyOuterResource(ConfigurableResource):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 126 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 9 | 0 | 0 |
22,929 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-graphql/dagster_graphql_tests/graphql/repo_definitions.py | dagster_graphql_tests.graphql.repo_definitions.MyResource | from dagster._config.pythonic_config import ConfigurableResource
class MyResource(ConfigurableResource):
"""My description."""
a_string: str = 'baz'
an_unset_string: str = 'defaulted' |
class MyResource(ConfigurableResource):
'''My description.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 126 | 5 | 1 | 3 | 3 | 2 | 1 | 3 | 3 | 2 | 0 | 9 | 0 | 0 |
22,930 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/client.py | dagster_k8s.client.DagsterK8sAPIRetryLimitExceeded | from dagster import DagsterInstance, _check as check
class DagsterK8sAPIRetryLimitExceeded(Exception):
def __init__(self, *args, **kwargs):
k8s_api_exception = check.inst_param(kwargs.pop('k8s_api_exception'), 'k8s_api_exception', Exception)
original_exc_info = check.tuple_param(kwargs.pop('origin... |
class DagsterK8sAPIRetryLimitExceeded(Exception):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 18 | 2 | 16 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 2 | 1 | 11 | 19 | 2 | 17 | 7 | 15 | 0 | 9 | 7 | 7 | 1 | 3 | 0 | 1 |
22,931 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/client.py | dagster_k8s.client.DagsterK8sError | class DagsterK8sError(Exception):
pass | class DagsterK8sError(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
22,932 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/client.py | dagster_k8s.client.DagsterK8sJobStatusException | class DagsterK8sJobStatusException(Exception):
pass | class DagsterK8sJobStatusException(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
22,933 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/client.py | dagster_k8s.client.DagsterK8sTimeoutError | class DagsterK8sTimeoutError(DagsterK8sError):
pass | class DagsterK8sTimeoutError(DagsterK8sError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
22,934 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/client.py | dagster_k8s.client.DagsterK8sUnrecoverableAPIError | from dagster import DagsterInstance, _check as check
class DagsterK8sUnrecoverableAPIError(Exception):
def __init__(self, *args, **kwargs):
k8s_api_exception = check.inst_param(kwargs.pop('k8s_api_exception'), 'k8s_api_exception', Exception)
original_exc_info = check.tuple_param(kwargs.pop('origin... |
class DagsterK8sUnrecoverableAPIError(Exception):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 13 | 2 | 11 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 2 | 1 | 11 | 14 | 2 | 12 | 6 | 10 | 0 | 8 | 6 | 6 | 1 | 3 | 0 | 1 |
22,935 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/client.py | dagster_k8s.client.DagsterKubernetesClient | import logging
from dagster import DagsterInstance, _check as check
from typing import Any, Callable, Optional, TypeVar
import kubernetes.client.rest
import time
import os
from dagster._core.storage.dagster_run import DagsterRunStatus
import kubernetes.client
from kubernetes.client.models import V1Job, V1JobStatus
cla... |
class DagsterKubernetesClient:
def __init__(self, batch_api, core_api, logger, sleeper, timer):
pass
@staticmethod
def production_client(batch_api_override=None, core_api_override=None):
pass
def wait_for_job(self, job_name, namespace, wait_timeout=DEFAULT_WAIT_TIMEOUT, wait_time_betw... | 26 | 8 | 34 | 4 | 25 | 5 | 5 | 0.19 | 0 | 14 | 7 | 0 | 19 | 5 | 20 | 20 | 780 | 113 | 559 | 167 | 457 | 109 | 295 | 86 | 271 | 26 | 0 | 5 | 109 |
22,936 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/client.py | dagster_k8s.client.KubernetesWaitingReasons | class KubernetesWaitingReasons:
PodInitializing = 'PodInitializing'
ContainerCreating = 'ContainerCreating'
ErrImagePull = 'ErrImagePull'
ImagePullBackOff = 'ImagePullBackOff'
CrashLoopBackOff = 'CrashLoopBackOff'
RunContainerError = 'RunContainerError'
CreateContainerConfigError = 'CreateCo... | class KubernetesWaitingReasons:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 8 | 7 | 0 | 8 | 8 | 7 | 0 | 0 | 0 | 0 |
22,937 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/client.py | dagster_k8s.client.PatchedApiClient | from kubernetes.client.api_client import ApiClient
import six
class PatchedApiClient(ApiClient):
def _ApiClient__deserialize_model(self, data, klass):
"""Deserializes list or dict to model.
:param data: dict, list.
:param klass: class literal.
:return: model object.
"""
... |
class PatchedApiClient(ApiClient):
def _ApiClient__deserialize_model(self, data, klass):
'''Deserializes list or dict to model.
:param data: dict, list.
:param klass: class literal.
:return: model object.
'''
pass | 2 | 1 | 28 | 5 | 15 | 8 | 7 | 0.75 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 33 | 5 | 16 | 7 | 14 | 12 | 16 | 7 | 14 | 7 | 1 | 3 | 7 |
22,938 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/client.py | dagster_k8s.client.WaitForPodState | from enum import Enum
class WaitForPodState(Enum):
Ready = 'READY'
Terminated = 'TERMINATED' |
class WaitForPodState(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
22,939 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/container_context.py | dagster_k8s.container_context.K8sContainerContext | import copy
from dagster._config import process_config
import kubernetes.client
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, cast
from dagster._core.container_context import process_shared_container_context_config
from dagster._core.storage.dagster_run import DagsterRun
from dagster_k8s.job import Dagst... |
class K8sContainerContext(NamedTuple('_K8sContainerContext', [('server_k8s_config', UserDefinedDagsterK8sConfig), ('run_k8s_config', UserDefinedDagsterK8sConfig), ('namespace', Optional[str])])):
'''Encapsulates configuration that can be applied to a K8s job running Dagster code.
Can be persisted on a DagsterR... | 21 | 2 | 32 | 4 | 28 | 1 | 4 | 0.03 | 1 | 15 | 5 | 0 | 10 | 2 | 15 | 15 | 517 | 69 | 435 | 141 | 338 | 15 | 159 | 58 | 143 | 12 | 1 | 5 | 63 |
22,940 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/executor.py | dagster_k8s.executor.K8sStepHandler | import os
from typing import Optional, cast
from dagster._core.executor.step_delegating import CheckStepHealthResult, StepDelegatingExecutor, StepHandler, StepHandlerContext
from dagster._core.events import DagsterEvent, EngineEventData
import kubernetes.config
from dagster._utils.cached_method import cached_method
fro... |
class K8sStepHandler(StepHandler):
@property
def name(self):
pass
def __init__(self, image: Optional[str], container_context: K8sContainerContext, load_incluster_config: bool, kubeconfig_file: Optional[str], k8s_client_batch_api=None, k8s_client_core_api=None, per_step_k8s_config=None, enable_own... | 12 | 1 | 22 | 3 | 19 | 0 | 2 | 0.02 | 0 | 14 | 7 | 0 | 8 | 4 | 8 | 8 | 183 | 32 | 151 | 51 | 131 | 3 | 70 | 40 | 61 | 4 | 0 | 2 | 16 |
22,941 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/job.py | dagster_k8s.job.DagsterK8sJobConfig | from dagster import Array, BoolSource, Enum as DagsterEnum, Field, Map, Noneable, StringSource
from typing import Any, NamedTuple, Optional
import dagster._check as check
from dagster._core.utils import parse_env_var
from dagster._utils.merger import merge_dicts
from dagster._serdes import whitelist_for_serdes
from col... | null | 19 | 4 | 38 | 0 | 37 | 2 | 1 | 0.16 | 1 | 8 | 1 | 0 | 5 | 0 | 10 | 10 | 469 | 13 | 397 | 61 | 339 | 65 | 24 | 14 | 13 | 1 | 1 | 0 | 10 |
22,942 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/job.py | dagster_k8s.job.K8sConfigMergeBehavior | from dagster import Array, BoolSource, Enum as DagsterEnum, Field, Map, Noneable, StringSource
from enum import Enum
class K8sConfigMergeBehavior(Enum):
SHALLOW = 'SHALLOW'
DEEP = 'DEEP' |
class K8sConfigMergeBehavior(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 7 | 0 | 7 | 3 | 6 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
22,943 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/job.py | dagster_k8s.job.UserDefinedDagsterK8sConfig | import dagster._check as check
from typing import Any, NamedTuple, Optional
from collections.abc import Mapping, Sequence
from dagster_k8s.models import k8s_model_from_dict, k8s_snake_case_dict
import kubernetes
class UserDefinedDagsterK8sConfig(NamedTuple('_UserDefinedDagsterK8sConfig', [('container_config', Mapping[... |
class UserDefinedDagsterK8sConfig(NamedTuple('_UserDefinedDagsterK8sConfig', [('container_config', Mapping[str, Any]), ('pod_template_spec_metadata', Mapping[str, Any]), ('pod_spec_config', Mapping[str, Any]), ('job_config', Mapping[str, Any]), ('job_metadata', Mapping[str, Any]), ('job_spec_config', Mapping[str, Any]... | 5 | 0 | 33 | 3 | 30 | 0 | 4 | 0 | 1 | 5 | 1 | 0 | 2 | 0 | 3 | 3 | 118 | 12 | 106 | 32 | 74 | 0 | 31 | 4 | 27 | 9 | 1 | 1 | 11 |
22,944 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/launcher.py | dagster_k8s.launcher.K8sRunLauncher | import kubernetes
from dagster._grpc.types import ResumeRunArgs
from dagster._core.storage.tags import DOCKER_IMAGE_TAG
from collections.abc import Mapping, Sequence
from dagster._core.launcher.base import CheckRunHealthResult, WorkerStatus
import logging
from dagster import _check as check
from dagster_k8s.job import ... | null | 56 | 2 | 11 | 1 | 10 | 0 | 1 | 0.06 | 2 | 19 | 10 | 0 | 30 | 26 | 32 | 64 | 430 | 67 | 343 | 146 | 255 | 22 | 163 | 91 | 130 | 6 | 5 | 2 | 45 |
22,945 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/pipes.py | dagster_k8s.pipes.PipesK8sClient | from dagster import OpExecutionContext, _check as check
from dagster_pipes import DAGSTER_PIPES_CONTEXT_ENV_VAR, DAGSTER_PIPES_MESSAGES_ENV_VAR, PipesDefaultMessageWriter, PipesExtras, encode_env_var
import os
from dagster._annotations import public
from dagster._core.execution.context.asset_execution_context import As... |
class PipesK8sClient(PipesClient, TreatAsResourceParam):
'''A pipes client for launching kubernetes pods.
By default context is injected via environment variables and messages are parsed out of
the pod logs, with other logs forwarded to stdout of the orchestration process.
The first container within th... | 9 | 3 | 42 | 3 | 28 | 11 | 2 | 0.56 | 2 | 16 | 8 | 0 | 4 | 7 | 5 | 26 | 247 | 21 | 145 | 49 | 107 | 81 | 42 | 16 | 36 | 4 | 5 | 3 | 11 |
22,946 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-k8s/dagster_k8s/pipes.py | dagster_k8s.pipes.PipesK8sPodLogsMessageReader | from dagster._core.pipes.utils import PipesEnvContextInjector, extract_message_or_forward_to_stdout, open_pipes_session
import os
from dagster._core.pipes.client import PipesClient, PipesClientCompletedInvocation, PipesContextInjector, PipesMessageReader, PipesParams
from dagster import OpExecutionContext, _check as ch... |
class PipesK8sPodLogsMessageReader(PipesMessageReader):
'''Message reader that reads messages from kubernetes pod logs.'''
@contextmanager
def read_messages(self, handler: PipesMessageHandler) -> Iterator[PipesParams]:
pass
def _get_consume_logs_request_timeout(self) -> Optional[int]:
... | 9 | 3 | 37 | 3 | 26 | 9 | 4 | 0.34 | 1 | 12 | 3 | 0 | 5 | 1 | 5 | 29 | 195 | 21 | 133 | 52 | 99 | 45 | 61 | 23 | 55 | 10 | 5 | 3 | 19 |
22,947 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/api/dagster_looker_api_translator.py | dagster_looker.api.dagster_looker_api_translator.DagsterLookerApiTranslator | from looker_sdk.sdk.api40.models import Dashboard, DashboardFilter, LookmlModelExplore, User
from dagster._core.definitions.metadata.metadata_value import MetadataValue
from dagster._annotations import deprecated, public
from dagster import AssetKey, AssetSpec, _check as check
class DagsterLookerApiTranslator:
@d... |
class DagsterLookerApiTranslator:
@deprecated(breaking_version='1.10', additional_warn_text='Use `DagsterLookerApiTranslator.get_asset_spec().key` instead')
def get_view_asset_key(self, looker_structure: LookerApiTranslatorStructureData) -> AssetKey:
pass
def get_view_asset_spec(self, looker_stru... | 15 | 0 | 14 | 1 | 13 | 0 | 2 | 0 | 0 | 6 | 5 | 4 | 8 | 0 | 8 | 8 | 135 | 12 | 123 | 40 | 90 | 0 | 35 | 17 | 26 | 4 | 0 | 1 | 15 |
22,948 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/api/dagster_looker_api_translator.py | dagster_looker.api.dagster_looker_api_translator.LookerApiTranslatorStructureData | from dagster._record import record
from looker_sdk.sdk.api40.models import Dashboard, DashboardFilter, LookmlModelExplore, User
from typing import Any, Optional, Union
@record
class LookerApiTranslatorStructureData:
"""A record representing a structure in Looker and the Looker instance data.
Includes the struc... | @record
class LookerApiTranslatorStructureData:
'''A record representing a structure in Looker and the Looker instance data.
Includes the structure's type and data as returned from the API.
'''
@property
def structure_type(self) -> LookerStructureType:
pass
@property
def data(self) -... | 8 | 1 | 2 | 0 | 2 | 0 | 1 | 0.25 | 0 | 3 | 2 | 0 | 3 | 0 | 3 | 3 | 19 | 4 | 12 | 7 | 5 | 3 | 9 | 4 | 5 | 1 | 0 | 0 | 3 |
22,949 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/api/dagster_looker_api_translator.py | dagster_looker.api.dagster_looker_api_translator.LookerInstanceData | from looker_sdk.sdk.api40.models import Dashboard, DashboardFilter, LookmlModelExplore, User
from collections.abc import Mapping
from typing import Any, Optional, Union
from dagster._record import record
from looker_sdk.sdk.api40.methods import Looker40SDK
@record
class LookerInstanceData:
"""A record representing... | @record
class LookerInstanceData:
'''A record representing all content in a Looker instance.'''
def to_state(self, sdk: Looker40SDK) -> Mapping[str, Any]:
pass
@staticmethod
def from_state(sdk: Looker40SDK, state: Mapping[str, Any]) -> 'LookerInstanceData':
pass | 5 | 1 | 19 | 2 | 18 | 3 | 1 | 0.17 | 0 | 3 | 0 | 0 | 1 | 0 | 2 | 2 | 47 | 6 | 40 | 7 | 36 | 7 | 11 | 6 | 8 | 1 | 0 | 0 | 2 |
22,950 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/api/dagster_looker_api_translator.py | dagster_looker.api.dagster_looker_api_translator.LookerStructureData | from looker_sdk.sdk.api40.models import Dashboard, DashboardFilter, LookmlModelExplore, User
from dagster._record import record
from typing import Any, Optional, Union
@record
class LookerStructureData:
structure_type: LookerStructureType
data: Union[LookmlView, LookmlModelExplore, DashboardFilter, Dashboard]
... | @record
class LookerStructureData:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 2 | 3 | 0 | 4 | 2 | 3 | 0 | 0 | 0 | 0 |
22,951 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/api/dagster_looker_api_translator.py | dagster_looker.api.dagster_looker_api_translator.LookerStructureType | from enum import Enum
class LookerStructureType(Enum):
VIEW = 'view'
EXPLORE = 'explore'
DASHBOARD = 'dashboard' |
class LookerStructureType(Enum):
pass | 1 | 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 |
22,952 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/api/dagster_looker_api_translator.py | dagster_looker.api.dagster_looker_api_translator.LookmlView | from typing import Any, Optional, Union
from dagster._record import record
@record
class LookmlView:
view_name: str
sql_table_name: Optional[str] | @record
class LookmlView:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
22,953 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/api/dagster_looker_api_translator.py | dagster_looker.api.dagster_looker_api_translator.RequestStartPdtBuild | from dagster._record import record
from typing import Any, Optional, Union
@record
class RequestStartPdtBuild:
"""A request to start a PDT build. See https://developers.looker.com/api/explorer/4.0/types/DerivedTable/RequestStartPdtBuild?sdk=py
for documentation on all available fields.
Args:
model... | @record
class RequestStartPdtBuild:
'''A request to start a PDT build. See https://developers.looker.com/api/explorer/4.0/types/DerivedTable/RequestStartPdtBuild?sdk=py
for documentation on all available fields.
Args:
model_name: The model of the PDT to start building.
view_name: The view na... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.43 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 2 | 7 | 5 | 6 | 10 | 7 | 5 | 6 | 0 | 0 | 0 | 0 |
22,954 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/api/resource.py | dagster_looker.api.resource.LookerApiDefsLoader | from dagster import AssetSpec, ConfigurableResource, Definitions, _check as check
from typing import TYPE_CHECKING, Any, Optional, Union, cast
from concurrent.futures import ThreadPoolExecutor
from dagster._utils.cached_method import cached_method
from dagster._core.definitions.definitions_load_context import StateBack... | @record
class LookerApiDefsLoader(StateBackedDefinitionsLoader[Mapping[str, Any]]):
@property
def defs_key(self) -> str:
pass
def fetch_state(self) -> Mapping[str, Any]:
pass
def defs_from_state(self, state: Mapping[str, Any]) -> Definitions:
pass
def _build_defs_from_loo... | 10 | 1 | 34 | 3 | 31 | 1 | 3 | 0.04 | 1 | 12 | 5 | 0 | 5 | 0 | 5 | 32 | 195 | 19 | 170 | 33 | 158 | 6 | 54 | 27 | 47 | 11 | 5 | 4 | 17 |
22,955 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/api/resource.py | dagster_looker.api.resource.LookerFilter | from typing import TYPE_CHECKING, Any, Optional, Union, cast
from dagster._record import record
@record
class LookerFilter:
"""Filters the set of Looker objects to fetch.
Args:
dashboard_folders (Optional[List[List[str]]]): A list of folder paths to fetch dashboards from.
Each folder path ... | @record
class LookerFilter:
'''Filters the set of Looker objects to fetch.
Args:
dashboard_folders (Optional[List[List[str]]]): A list of folder paths to fetch dashboards from.
Each folder path is a list of folder names, starting from the root folder. All dashboards
contained in ... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 2.67 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 2 | 3 | 3 | 2 | 8 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
22,956 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/api/resource.py | dagster_looker.api.resource.LookerResource | from looker_sdk.rtl.api_settings import ApiSettings, SettingsConfig
from collections.abc import Mapping, Sequence
from typing import TYPE_CHECKING, Any, Optional, Union, cast
from dagster import AssetSpec, ConfigurableResource, Definitions, _check as check
from dagster._annotations import beta, deprecated, public
from ... | @beta
class LookerResource(ConfigurableResource):
'''Represents a connection to a Looker instance and provides methods
to interact with the Looker API.
'''
@cached_method
def get_sdk(self) -> Looker40SDK:
pass
class DagsterLookerApiSettings(ApiSettings):
def read_config... | 9 | 2 | 18 | 2 | 12 | 4 | 1 | 0.33 | 1 | 5 | 4 | 0 | 2 | 0 | 2 | 2 | 65 | 9 | 42 | 20 | 24 | 14 | 15 | 12 | 9 | 1 | 1 | 0 | 3 |
22,957 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/lkml/asset_utils.py | dagster_looker.lkml.asset_utils.LookMLStructure | from pathlib import Path
from dagster_looker.lkml.dagster_looker_lkml_translator import DagsterLookerLkmlTranslator, LookMLStructureType
from typing import AbstractSet, Any, NamedTuple
from collections.abc import Mapping, Sequence
class LookMLStructure(NamedTuple):
path: Path
structure_type: LookMLStructureTyp... |
class LookMLStructure(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 |
22,958 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/lkml/dagster_looker_lkml_translator.py | dagster_looker.lkml.dagster_looker_lkml_translator.DagsterLookerLkmlTranslator | from typing import Any, Callable, Literal, Optional, cast
from pathlib import Path
from dagster import AssetKey, AssetSpec
from collections.abc import Iterator, Mapping, Sequence
from dagster._annotations import beta, public, superseded
from dagster._utils.warnings import supersession_warning
@beta
class DagsterLooker... | @beta
class DagsterLookerLkmlTranslator:
'''Holds a set of methods that derive Dagster asset definition metadata given a representation
of a LookML structure (dashboards, explores, views).
This class is exposed so that methods can be overridden to customize how Dagster asset metadata
is derived.
'''... | 34 | 16 | 30 | 6 | 9 | 15 | 2 | 1.4 | 0 | 8 | 0 | 11 | 16 | 0 | 16 | 16 | 529 | 114 | 173 | 85 | 88 | 243 | 61 | 24 | 44 | 6 | 0 | 2 | 26 |
22,959 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/lkml/liquid_utils.py | dagster_looker.lkml.liquid_utils.ConditionTag | from liquid.token import TOKEN_EOF, TOKEN_TAG
from liquid.stream import TokenStream
from liquid.ast import Node
from liquid import Environment
from liquid.parse import expect, get_parser
from liquid.tag import Tag
class ConditionTag(Tag):
"""Defines a custom Liquid tag to match Looker's condition tag,
treats t... |
class ConditionTag(Tag):
'''Defines a custom Liquid tag to match Looker's condition tag,
treats the condition as always true when rendering the output SQL.
https://jg-rp.github.io/liquid/guides/custom-tags#add-a-tag.
'''
def __init__(self, env: Environment):
pass
def parse(self, strea... | 3 | 1 | 6 | 1 | 5 | 1 | 1 | 0.46 | 1 | 1 | 0 | 0 | 2 | 1 | 2 | 2 | 21 | 4 | 13 | 7 | 10 | 6 | 13 | 7 | 10 | 1 | 1 | 0 | 2 |
22,960 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/lkml/liquid_utils.py | dagster_looker.lkml.liquid_utils.DateEndTag | class DateEndTag(DateTag):
name = TAG_DATE_END | class DateEndTag(DateTag):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 2 | 0 | 0 |
22,961 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/lkml/liquid_utils.py | dagster_looker.lkml.liquid_utils.DateStartTag | class DateStartTag(DateTag):
name = TAG_DATE_START | class DateStartTag(DateTag):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 2 | 0 | 0 |
22,962 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-looker/dagster_looker/lkml/liquid_utils.py | dagster_looker.lkml.liquid_utils.DateTag | from liquid.stream import TokenStream
from liquid.tag import Tag
from liquid.token import TOKEN_EOF, TOKEN_TAG
from liquid import Environment
from liquid.ast import Node
from liquid.parse import expect, get_parser
from liquid.builtin.literal import LiteralNode, Token
class DateTag(Tag):
def __init__(self, env: En... |
class DateTag(Tag):
def __init__(self, env: Environment):
pass
def parse(self, stream: TokenStream) -> Node:
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 1 | 0 | 2 | 2 | 1 | 2 | 2 | 9 | 1 | 8 | 4 | 5 | 0 | 8 | 4 | 5 | 1 | 1 | 0 | 2 |
22,963 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-managed-elements/dagster_managed_elements/types.py | dagster_managed_elements.types.DiffData | from typing import Any, NamedTuple, Optional, Union
import dagster._check as check
class DiffData(NamedTuple('_DiffData', [('key', str), ('value', Any)])):
def __new__(cls, key: str, value: str):
return super().__new__(cls, key=check.str_param(key, 'key'), value=value)
def __str__(self):
retu... |
class DiffData(NamedTuple('_DiffData', [('key', str), ('value', Any)])):
def __new__(cls, key: str, value: str):
pass
def __str__(self):
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 2 | 10 | 1 | 9 | 3 | 6 | 0 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
22,964 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-managed-elements/dagster_managed_elements/types.py | dagster_managed_elements.types.ManagedElementDiff | import dagster._check as check
from collections.abc import Sequence
import click
from collections import OrderedDict
from typing import Any, NamedTuple, Optional, Union
class ManagedElementDiff(NamedTuple('_ManagedElementDiff', [('additions', Sequence[DiffData]), ('deletions', Sequence[DiffData]), ('modifications', Se... |
class ManagedElementDiff(NamedTuple('_ManagedElementDiff', [('additions', Sequence[DiffData]), ('deletions', Sequence[DiffData]), ('modifications', Sequence[ModifiedDiffData]), ('nested', OrderedDict[str, 'ManagedElementDiff'])])):
'''Utility class representing the diff between configured and deployed managed elem... | 11 | 8 | 14 | 1 | 11 | 1 | 2 | 0.13 | 1 | 11 | 2 | 0 | 10 | 3 | 10 | 10 | 161 | 20 | 125 | 42 | 97 | 16 | 46 | 20 | 35 | 5 | 1 | 2 | 15 |
22,965 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-managed-elements/dagster_managed_elements/types.py | dagster_managed_elements.types.ManagedElementError | import enum
class ManagedElementError(enum.Enum):
CANNOT_CONNECT = 'cannot_connect' |
class ManagedElementError(enum.Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 4 | 0 | 0 |
22,966 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-managed-elements/dagster_managed_elements/types.py | dagster_managed_elements.types.ManagedElementReconciler | from abc import ABC, abstractmethod
class ManagedElementReconciler(ABC):
"""Base class which defines the interface for checking and reconciling a managed element.
Typically, the constructor will take in a set of resources or user configuration. The
implementations of the check and apply methods will then ... |
class ManagedElementReconciler(ABC):
'''Base class which defines the interface for checking and reconciling a managed element.
Typically, the constructor will take in a set of resources or user configuration. The
implementations of the check and apply methods will then use this configuration to
determi... | 5 | 3 | 6 | 1 | 2 | 3 | 1 | 1.71 | 1 | 1 | 0 | 3 | 2 | 0 | 2 | 22 | 24 | 5 | 7 | 5 | 2 | 12 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
22,967 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-managed-elements/dagster_managed_elements/types.py | dagster_managed_elements.types.ModifiedDiffData | from typing import Any, NamedTuple, Optional, Union
import dagster._check as check
class ModifiedDiffData(NamedTuple('_ModifiedDiffData', [('key', str), ('old_value', Any), ('new_value', Any)])):
def __new__(cls, key: str, old_value: Any, new_value: Any):
return super().__new__(cls, key=check.str_param(ke... |
class ModifiedDiffData(NamedTuple('_ModifiedDiffData', [('key', str), ('old_value', Any), ('new_value', Any)])):
def __new__(cls, key: str, old_value: Any, new_value: Any):
pass
def __str__(self):
pass | 3 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 2 | 0 | 2 | 2 | 10 | 1 | 9 | 5 | 4 | 0 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
22,968 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-managed-elements/dagster_managed_elements_tests/example_module_many_out_of_sync_reconcilers.py | dagster_managed_elements_tests.example_module_many_out_of_sync_reconcilers.MyReconcilerHolder | class MyReconcilerHolder:
def __init__(self, reconciler):
self.reconciler = reconciler | class MyReconcilerHolder:
def __init__(self, reconciler):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 3 | 0 | 3 | 3 | 1 | 0 | 3 | 3 | 1 | 1 | 0 | 0 | 1 |
22,969 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-managed-elements/dagster_managed_elements_tests/example_reconciler.py | dagster_managed_elements_tests.example_reconciler.MyManagedElementReconciler | from typing import Optional
from dagster_managed_elements import ManagedElementCheckResult, ManagedElementDiff, ManagedElementReconciler
class MyManagedElementReconciler(ManagedElementReconciler):
def __init__(self, diff: ManagedElementDiff, apply_diff: Optional[ManagedElementDiff]=None):
self._diff = dif... |
class MyManagedElementReconciler(ManagedElementReconciler):
def __init__(self, diff: ManagedElementDiff, apply_diff: Optional[ManagedElementDiff]=None):
pass
def check(self, **kwargs) -> ManagedElementCheckResult:
pass
def apply(self, **kwargs) -> ManagedElementCheckResult:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 3 | 2 | 3 | 25 | 10 | 2 | 8 | 6 | 4 | 0 | 8 | 6 | 4 | 1 | 5 | 0 | 3 |
22,970 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-mlflow/dagster_mlflow/resources.py | dagster_mlflow.resources.MlFlow | from itertools import islice
import mlflow
from mlflow.entities.run_status import RunStatus
from os import environ
from dagster._annotations import beta
from dagster._utils.backoff import backoff
import atexit
from mlflow.exceptions import MlflowException
import sys
from typing import Any, Optional
@beta
class MlFlow(... | @beta
class MlFlow(metaclass=MlflowMeta):
'''Class for setting up an mlflow resource for dagster runs.
This takes care of all the configuration required to use mlflow tracking and the complexities of
mlflow tracking dagster parallel runs.
'''
def __init__(self, context):
pass
def _setu... | 13 | 9 | 18 | 2 | 9 | 7 | 2 | 0.75 | 1 | 8 | 0 | 0 | 7 | 12 | 9 | 23 | 176 | 24 | 87 | 37 | 73 | 65 | 70 | 32 | 60 | 3 | 3 | 2 | 22 |
22,971 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-mlflow/dagster_mlflow/resources.py | dagster_mlflow.resources.MlflowMeta | import mlflow
class MlflowMeta(type):
"""Mlflow Metaclass to create methods that "inherit" all of Mlflow's
methods. If the class has a method defined it is excluded from the
attribute setting from mlflow.
"""
def __new__(cls, name, bases, attrs):
class_cls = super().__new__(cls, name, base... |
class MlflowMeta(type):
'''Mlflow Metaclass to create methods that "inherit" all of Mlflow's
methods. If the class has a method defined it is excluded from the
attribute setting from mlflow.
'''
def __new__(cls, name, bases, attrs):
pass | 2 | 1 | 9 | 0 | 9 | 0 | 3 | 0.4 | 1 | 2 | 0 | 1 | 1 | 0 | 1 | 14 | 15 | 1 | 10 | 5 | 8 | 4 | 9 | 5 | 7 | 3 | 2 | 2 | 3 |
22,972 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-msteams/dagster_msteams/adaptive_card.py | dagster_msteams.adaptive_card.AdaptiveCard | from typing import Any
class AdaptiveCard:
"""Class to contruct a MS Teams adaptive card for posting Dagster messages."""
def __init__(self, adaptive_card_version: str='1.5'):
"""Constructs an adaptive card with the given version.
Args:
adaptive_card_version (str): The version of ... |
class AdaptiveCard:
'''Class to contruct a MS Teams adaptive card for posting Dagster messages.'''
def __init__(self, adaptive_card_version: str='1.5'):
'''Constructs an adaptive card with the given version.
Args:
adaptive_card_version (str): The version of the adaptive card to use... | 6 | 3 | 8 | 0 | 7 | 1 | 1 | 0.21 | 0 | 3 | 0 | 0 | 4 | 2 | 4 | 4 | 39 | 5 | 28 | 8 | 22 | 6 | 10 | 7 | 5 | 1 | 0 | 0 | 4 |
22,973 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-msteams/dagster_msteams/card.py | dagster_msteams.card.Card | from collections.abc import Mapping
class Card:
"""Class to contruct a MS Teams Hero card for posting dagster messages."""
def __init__(self):
self.payload = {'type': 'message', 'attachments': []}
@property
def type(self):
return self.payload['type']
@property
def attachments... |
class Card:
'''Class to contruct a MS Teams Hero card for posting dagster messages.'''
def __init__(self):
pass
@property
def type(self):
pass
@property
def attachments(self):
pass
def _create_attachment(self, text_message: str) -> Mapping:
pass
def ad... | 8 | 1 | 3 | 0 | 3 | 0 | 1 | 0.05 | 0 | 2 | 0 | 0 | 5 | 1 | 5 | 5 | 25 | 5 | 19 | 12 | 11 | 1 | 14 | 10 | 8 | 1 | 0 | 0 | 5 |
22,974 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-msteams/dagster_msteams/client.py | dagster_msteams.client.TeamsClient | from collections.abc import Mapping
import dagster._check as check
from requests import codes, exceptions, post
from typing import Optional, cast
from urllib.parse import urlparse
class TeamsClient:
"""MS Teams web client responsible for connecting to a channel using the webhook URL
and posting informaton in t... |
class TeamsClient:
'''MS Teams web client responsible for connecting to a channel using the webhook URL
and posting informaton in the form of cards.
'''
def __init__(self, hook_url: str, http_proxy: Optional[str]=None, https_proxy: Optional[str]=None, timeout: Optional[float]=60, verify: Optional[bool... | 4 | 1 | 15 | 0 | 15 | 0 | 3 | 0.09 | 0 | 4 | 0 | 0 | 3 | 5 | 3 | 3 | 52 | 4 | 45 | 18 | 34 | 4 | 27 | 11 | 23 | 4 | 0 | 2 | 10 |
22,975 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-msteams/dagster_msteams/resources.py | dagster_msteams.resources.MSTeamsResource | from pydantic import Field
from dagster import ConfigurableResource, resource
from dagster_msteams.client import TeamsClient
from typing import Optional
class MSTeamsResource(ConfigurableResource):
"""This resource is for connecting to Microsoft Teams.
Provides a `dagster_msteams.TeamsClient` which can be use... |
class MSTeamsResource(ConfigurableResource):
'''This resource is for connecting to Microsoft Teams.
Provides a `dagster_msteams.TeamsClient` which can be used to
interface with the MS Teams API.
By configuring this resource, you can post messages to MS Teams from any Dagster op,
asset, schedule, or... | 4 | 1 | 5 | 0 | 5 | 0 | 1 | 1 | 1 | 2 | 1 | 0 | 1 | 0 | 2 | 2 | 67 | 13 | 27 | 9 | 23 | 27 | 10 | 8 | 7 | 1 | 1 | 0 | 2 |
22,976 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-msteams/dagster_msteams/utils.py | dagster_msteams.utils.MSTeamsHyperlink | from typing import NamedTuple, Optional
class MSTeamsHyperlink(NamedTuple):
text: str
url: str |
class MSTeamsHyperlink(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 |
22,977 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-mysql/dagster_mysql/event_log/event_log.py | dagster_mysql.event_log.event_log.MySQLEventLogStorage | from dagster_mysql.utils import create_mysql_connection, mysql_alembic_config, mysql_isolation_level, mysql_url_from_config, retry_mysql_connection_fn, retry_mysql_creation_fn
import sqlalchemy.exc as db_exc
from dagster._core.storage.event_log.migration import ASSET_KEY_INDEX_COLS
import sqlalchemy.dialects as db_dial... |
class MySQLEventLogStorage(SqlEventLogStorage, ConfigurableClass):
'''MySQL-backed event log storage.
Users should not directly instantiate this class; it is instantiated by internal machinery when
``dagster-webserver`` and ``dagster-graphql`` load, based on the values in the ``dagster.yaml`` file in
`... | 27 | 1 | 6 | 0 | 6 | 0 | 1 | 0.18 | 2 | 7 | 3 | 0 | 17 | 6 | 21 | 229 | 178 | 34 | 124 | 47 | 95 | 22 | 87 | 34 | 65 | 3 | 6 | 3 | 31 |
22,978 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-mysql/dagster_mysql/run_storage/run_storage.py | dagster_mysql.run_storage.run_storage.MySQLRunStorage | from collections.abc import Mapping
import sqlalchemy as db
from dagster._daemon.types import DaemonHeartbeat
import sqlalchemy.dialects as db_dialects
import dagster._check as check
from typing import ContextManager, Optional, cast
from dagster._core.storage.runs import DaemonHeartbeatsTable, InstanceInfo, RunStorageS... |
class MySQLRunStorage(SqlRunStorage, ConfigurableClass):
'''MySQL-backed run storage.
Users should not directly instantiate this class; it is instantiated by internal machinery when
``dagster-webserver`` and ``dagster-graphql`` load, based on the values in the ``dagster.yaml`` file in
``$DAGSTER_HOME``... | 22 | 1 | 7 | 1 | 6 | 0 | 1 | 0.16 | 2 | 6 | 2 | 0 | 12 | 5 | 16 | 142 | 150 | 29 | 104 | 42 | 80 | 17 | 67 | 29 | 50 | 3 | 6 | 1 | 21 |
22,979 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-mysql/dagster_mysql/schedule_storage/schedule_storage.py | dagster_mysql.schedule_storage.schedule_storage.MySQLScheduleStorage | from dagster_mysql.utils import create_mysql_connection, mysql_alembic_config, mysql_isolation_level, mysql_url_from_config, parse_mysql_version, retry_mysql_connection_fn, retry_mysql_creation_fn
import sqlalchemy.dialects as db_dialects
import sqlalchemy as db
import dagster._check as check
from dagster._core.storage... |
class MySQLScheduleStorage(SqlScheduleStorage, ConfigurableClass):
'''MySQL-backed run storage.
Users should not directly instantiate this class; it is instantiated by internal machinery when
``dagster-webserver`` and ``dagster-graphql`` load, based on the values in the ``dagster.yaml`` file in
``$DAGS... | 22 | 1 | 9 | 1 | 7 | 1 | 1 | 0.17 | 2 | 7 | 2 | 0 | 11 | 4 | 15 | 96 | 167 | 29 | 118 | 45 | 90 | 20 | 62 | 28 | 46 | 2 | 6 | 1 | 19 |
22,980 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-mysql/dagster_mysql/storage.py | dagster_mysql.storage.DagsterMySQLStorage | from dagster._config.config_schema import UserConfigSchema
from dagster_mysql.utils import mysql_url_from_config
from dagster_mysql.schedule_storage import MySQLScheduleStorage
from dagster import _check as check
from dagster._core.storage.event_log import EventLogStorage
from dagster._core.storage.schedules import Sch... |
class DagsterMySQLStorage(DagsterStorage, ConfigurableClass):
'''MySQL-backed dagster storage.
Users should not directly instantiate this class; it is instantiated by internal machinery when
``dagster-webserver`` and ``dagster-graphql`` load, based on the values in the ``dagster.yaml`` file in
``$DAGST... | 20 | 1 | 5 | 0 | 5 | 0 | 1 | 0.19 | 2 | 2 | 1 | 0 | 8 | 5 | 10 | 36 | 90 | 14 | 64 | 27 | 42 | 12 | 26 | 16 | 15 | 2 | 5 | 0 | 13 |
22,981 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-mysql/dagster_mysql/utils.py | dagster_mysql.utils.DagsterMySQLException | class DagsterMySQLException(Exception):
pass | class DagsterMySQLException(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
22,982 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-openai/dagster_openai/resources.py | dagster_openai.resources.ApiEndpointClassesEnum | from enum import Enum
class ApiEndpointClassesEnum(Enum):
"""Supported endpoint classes of the OpenAI API v1."""
COMPLETIONS = 'completions'
CHAT = 'chat'
EMBEDDINGS = 'embeddings' |
class ApiEndpointClassesEnum(Enum):
'''Supported endpoint classes of the OpenAI API v1.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 6 | 1 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
22,983 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-openai/dagster_openai/resources.py | dagster_openai.resources.OpenAIResource | from dagster._core.errors import DagsterInvariantViolationError
from collections.abc import Generator
from contextlib import contextmanager
from openai import Client
from dagster import AssetExecutionContext, AssetKey, ConfigurableResource, InitResourceContext, OpExecutionContext
from typing import Optional, Union
from... | @public
class OpenAIResource(ConfigurableResource):
'''This resource is wrapper over the
`openai library <https://github.com/openai/openai-python>`_.
By configuring this OpenAI resource, you can interact with OpenAI API
and log its usage metadata in the asset metadata.
Examples:
.. code-bloc... | 14 | 3 | 28 | 4 | 9 | 15 | 2 | 1.69 | 1 | 5 | 2 | 0 | 6 | 0 | 7 | 7 | 248 | 46 | 75 | 35 | 49 | 127 | 35 | 19 | 27 | 5 | 1 | 3 | 13 |
22,984 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pagerduty/dagster_pagerduty/resources.py | dagster_pagerduty.resources.PagerDutyService | from typing import Optional, cast
from pydantic import Field as PyField
import pypd
from dagster import ConfigurableResource, resource
class PagerDutyService(ConfigurableResource):
"""This resource is for posting events to PagerDuty."""
'Integrates with PagerDuty via the pypd library.\n\n See:\n http... |
class PagerDutyService(ConfigurableResource):
'''This resource is for posting events to PagerDuty.'''
@classmethod
def _is_dagster_maintained(cls) -> bool:
pass
def EventV2_create(self, summary: str, source: str, severity: str, event_action: str='trigger', dedup_key: Optional[str]=None, timest... | 4 | 2 | 65 | 14 | 17 | 34 | 4 | 1.75 | 1 | 4 | 0 | 0 | 1 | 0 | 2 | 2 | 155 | 34 | 44 | 19 | 28 | 77 | 20 | 6 | 17 | 7 | 1 | 1 | 8 |
22,985 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.CategoricalColumnConstraint | from dagster import DagsterType, TypeCheck, _check as check
class CategoricalColumnConstraint(ColumnConstraint):
"""A column constraint that ensures all values in a pandas column are a valid category.
Args:
categories (Set[str]): Set of categories that values in your pandas column must match.
... |
class CategoricalColumnConstraint(ColumnConstraint):
'''A column constraint that ensures all values in a pandas column are a valid category.
Args:
categories (Set[str]): Set of categories that values in your pandas column must match.
ignore_missing_vals (bool): If true, this constraint will enf... | 3 | 1 | 10 | 0 | 10 | 0 | 2 | 0.25 | 1 | 4 | 1 | 0 | 2 | 4 | 2 | 6 | 28 | 3 | 20 | 9 | 17 | 5 | 12 | 7 | 9 | 3 | 2 | 1 | 4 |
22,986 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ColumnAggregateConstraintWithMetadata | from dagster import DagsterType, TypeCheck, _check as check
class ColumnAggregateConstraintWithMetadata(ConstraintWithMetadata):
"""Similar to the base class, but now your validation functions should take in columns (pd.Series) not Dataframes.
Args:
description (str): description of the constraint
... |
class ColumnAggregateConstraintWithMetadata(ConstraintWithMetadata):
'''Similar to the base class, but now your validation functions should take in columns (pd.Series) not Dataframes.
Args:
description (str): description of the constraint
validation_fn (Callable[[pd.Series], Tuple[bool, dict[st... | 2 | 1 | 33 | 2 | 30 | 1 | 8 | 0.45 | 1 | 2 | 0 | 0 | 1 | 1 | 1 | 4 | 49 | 4 | 31 | 9 | 29 | 14 | 22 | 8 | 20 | 8 | 1 | 3 | 8 |
22,987 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ColumnConstraint | class ColumnConstraint(Constraint):
"""Base constraint object that represent dataframe column shape constraints.
Args:
error_description (Optional[str]): The plain string description that is output in the terminal if the constraint fails.
markdown_description (Optional[str]): A markdown support... | class ColumnConstraint(Constraint):
'''Base constraint object that represent dataframe column shape constraints.
Args:
error_description (Optional[str]): The plain string description that is output in the terminal if the constraint fails.
markdown_description (Optional[str]): A markdown supporte... | 5 | 1 | 3 | 0 | 3 | 0 | 1 | 0.5 | 1 | 2 | 0 | 9 | 2 | 0 | 3 | 4 | 19 | 4 | 10 | 5 | 5 | 5 | 7 | 4 | 3 | 1 | 1 | 0 | 3 |
22,988 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ColumnConstraintViolationException | class ColumnConstraintViolationException(ConstraintViolationException):
"""Indicates that a column constraint has been violated."""
def __init__(self, constraint_name, constraint_description, column_name, offending_rows=None):
self.constraint_name = constraint_name
self.constraint_description =... | class ColumnConstraintViolationException(ConstraintViolationException):
'''Indicates that a column constraint has been violated.'''
def __init__(self, constraint_name, constraint_description, column_name, offending_rows=None):
pass
def construct_message(self):
pass | 3 | 1 | 7 | 0 | 7 | 0 | 2 | 0.07 | 1 | 1 | 0 | 0 | 2 | 4 | 2 | 12 | 17 | 2 | 14 | 8 | 11 | 1 | 12 | 8 | 9 | 2 | 4 | 1 | 3 |
22,989 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ColumnConstraintWithMetadata | from dagster import DagsterType, TypeCheck, _check as check
class ColumnConstraintWithMetadata(ConstraintWithMetadata):
"""This class is useful for constructing single constraints that you want to apply to multiple
columns of your dataframe.
The main difference from the base class in terms of construction... |
class ColumnConstraintWithMetadata(ConstraintWithMetadata):
'''This class is useful for constructing single constraints that you want to apply to multiple
columns of your dataframe.
The main difference from the base class in terms of construction is that now, your validation_fns should operate on
indiv... | 3 | 1 | 32 | 2 | 29 | 1 | 7 | 0.57 | 1 | 2 | 0 | 2 | 1 | 1 | 1 | 4 | 52 | 5 | 30 | 10 | 28 | 17 | 22 | 9 | 20 | 7 | 1 | 2 | 7 |
22,990 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ColumnDTypeFnConstraint | from dagster import DagsterType, TypeCheck, _check as check
class ColumnDTypeFnConstraint(ColumnConstraint):
"""A column constraint that applies a pandas dtype validation function to a columns dtype.
Args:
type_fn (Callable[[Set[str]], bool]): This is a function that takes the pandas columns dtypes an... |
class ColumnDTypeFnConstraint(ColumnConstraint):
'''A column constraint that applies a pandas dtype validation function to a columns dtype.
Args:
type_fn (Callable[[Set[str]], bool]): This is a function that takes the pandas columns dtypes and
returns if those dtypes match the types it expe... | 3 | 1 | 6 | 0 | 6 | 0 | 2 | 0.38 | 1 | 2 | 1 | 0 | 2 | 2 | 2 | 6 | 21 | 3 | 13 | 7 | 10 | 5 | 9 | 6 | 6 | 2 | 2 | 1 | 3 |
22,991 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ColumnDTypeInSetConstraint | from dagster import DagsterType, TypeCheck, _check as check
class ColumnDTypeInSetConstraint(ColumnConstraint):
"""A column constraint that validates the pandas column dtypes based on the expected set of dtypes.
Args:
expected_dtype_set (Set[str]): The set of pandas dtypes that the pandas column dtype... |
class ColumnDTypeInSetConstraint(ColumnConstraint):
'''A column constraint that validates the pandas column dtypes based on the expected set of dtypes.
Args:
expected_dtype_set (Set[str]): The set of pandas dtypes that the pandas column dtypes must match.
'''
def __init__(self, expected_dtype_... | 3 | 1 | 7 | 0 | 7 | 0 | 2 | 0.27 | 1 | 3 | 1 | 0 | 2 | 2 | 2 | 6 | 22 | 3 | 15 | 7 | 12 | 4 | 9 | 6 | 6 | 2 | 2 | 1 | 3 |
22,992 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ColumnRangeConstraintWithMetadata | class ColumnRangeConstraintWithMetadata(ColumnConstraintWithMetadata):
def __init__(self, minim=None, maxim=None, columns=None, raise_or_typecheck=True):
self.name = self.__class__.__name__
description = f'Confirms values are between {minim} and {maxim}'
super().__init__(description=descrip... | class ColumnRangeConstraintWithMetadata(ColumnConstraintWithMetadata):
def __init__(self, minim=None, maxim=None, columns=None, raise_or_typecheck=True):
pass
def validate(self, data, *args, **kwargs):
pass | 3 | 0 | 8 | 1 | 8 | 0 | 2 | 0 | 1 | 3 | 1 | 0 | 2 | 2 | 2 | 6 | 18 | 2 | 16 | 6 | 13 | 0 | 11 | 6 | 8 | 2 | 2 | 1 | 3 |
22,993 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ColumnWithMetadataException | from dagster._annotations import beta
@beta
class ColumnWithMetadataException(ConstraintWithMetadataException):
def __init__(self, constraint_name, constraint_description, expectation, offending, actual):
super().__init__('the column constraint ' + constraint_name, constraint_description, expectation, off... | @beta
class ColumnWithMetadataException(ConstraintWithMetadataException):
def __init__(self, constraint_name, constraint_description, expectation, offending, actual):
pass | 3 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 15 | 9 | 0 | 9 | 2 | 7 | 0 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
22,994 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.Constraint | from dagster import DagsterType, TypeCheck, _check as check
class Constraint:
"""Base constraint object that all constraints inherit from.
Args:
error_description (Optional[str]): The plain string description that is output in the terminal if the constraint fails.
markdown_description (Optiona... |
class Constraint:
'''Base constraint object that all constraints inherit from.
Args:
error_description (Optional[str]): The plain string description that is output in the terminal if the constraint fails.
markdown_description (Optional[str]): A markdown supported description that is shown in th... | 2 | 1 | 4 | 0 | 4 | 0 | 1 | 1 | 0 | 0 | 0 | 2 | 1 | 3 | 1 | 1 | 12 | 2 | 5 | 5 | 3 | 5 | 5 | 5 | 3 | 1 | 0 | 0 | 1 |
22,995 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ConstraintViolationException | class ConstraintViolationException(Exception):
"""Indicates that a constraint has been violated.""" | class ConstraintViolationException(Exception):
'''Indicates that a constraint has been violated.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
22,996 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ConstraintWithMetadata | from dagster import DagsterType, TypeCheck, _check as check
from dagster._annotations import beta
@beta
class ConstraintWithMetadata:
"""This class defines a base constraint over pandas DFs with organized metadata.
Args:
description (str): description of the constraint
validation_fn (Callable[... | @beta
class ConstraintWithMetadata:
'''This class defines a base constraint over pandas DFs with organized metadata.
Args:
description (str): description of the constraint
validation_fn (Callable[[DataFrame], Tuple[bool, dict[str, Union[dict,list, str, set]]]]:
the validation... | 5 | 1 | 13 | 1 | 12 | 1 | 3 | 0.47 | 0 | 1 | 0 | 4 | 3 | 5 | 3 | 3 | 59 | 7 | 36 | 13 | 30 | 17 | 22 | 11 | 18 | 4 | 0 | 2 | 8 |
22,997 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.ConstraintWithMetadataException | from dagster import DagsterType, TypeCheck, _check as check
from dagster._annotations import beta
@beta
class ConstraintWithMetadataException(Exception):
"""This class defines the response generated when a pandas DF fails validation -- it can be used to generate either a
failed typecheck or an exception.
... | @beta
class ConstraintWithMetadataException(Exception):
'''This class defines the response generated when a pandas DF fails validation -- it can be used to generate either a
failed typecheck or an exception.
Args:
constraint_name (str): the name of the violated constraint
constraint_descrip... | 6 | 1 | 9 | 0 | 9 | 0 | 1 | 0.25 | 1 | 5 | 0 | 2 | 4 | 5 | 4 | 14 | 50 | 5 | 36 | 17 | 24 | 9 | 16 | 10 | 11 | 2 | 3 | 1 | 5 |
22,998 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.DataFrameConstraint | class DataFrameConstraint(Constraint):
"""Base constraint object that represent Dataframe shape constraints.
Args:
error_description (Optional[str]): The plain string description that is output in the terminal if the constraint fails.
markdown_description (Optional[str]): A markdown supported d... | class DataFrameConstraint(Constraint):
'''Base constraint object that represent Dataframe shape constraints.
Args:
error_description (Optional[str]): The plain string description that is output in the terminal if the constraint fails.
markdown_description (Optional[str]): A markdown supported de... | 3 | 1 | 3 | 0 | 3 | 0 | 1 | 0.71 | 1 | 2 | 0 | 2 | 2 | 0 | 2 | 3 | 15 | 3 | 7 | 3 | 4 | 5 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
22,999 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py | dagster_pandas.constraints.DataFrameConstraintViolationException | class DataFrameConstraintViolationException(ConstraintViolationException):
"""Indicates a dataframe level constraint has been violated."""
def __init__(self, constraint_name, constraint_description):
super().__init__(f'Violated {constraint_name} - {constraint_description}') | class DataFrameConstraintViolationException(ConstraintViolationException):
'''Indicates a dataframe level constraint has been violated.'''
def __init__(self, constraint_name, constraint_description):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.33 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 11 | 5 | 1 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.