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,900
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/fs_io_manager.py
dagster._core.storage.fs_io_manager.CustomPathPickledObjectFilesystemIOManager
from dagster._core.definitions.events import AssetKey, AssetMaterialization from dagster._utils import PICKLE_PROTOCOL, mkdir_p import pickle import os from dagster._core.storage.io_manager import IOManager, dagster_maintained_io_manager, io_manager from dagster._core.execution.context.input import InputContext import ...
class CustomPathPickledObjectFilesystemIOManager(IOManager): '''Built-in filesystem IO managerthat stores and retrieves values using pickling and allow users to specify file path for outputs. Args: base_dir (Optional[str]): base directory where all the step outputs which use this object ...
5
3
10
2
7
2
1
0.5
1
5
4
0
4
3
4
28
51
11
28
16
23
14
25
14
20
1
6
1
4
21,901
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/fs_io_manager.py
dagster._core.storage.fs_io_manager.FilesystemIOManager
from dagster._config.pythonic_config import ConfigurableIOManagerFactory import dagster._check as check from dagster._core.execution.context.init import InitResourceContext from dagster import DagsterInvariantViolationError, Field as DagsterField from typing import TYPE_CHECKING, Any, Optional from pydantic import Fiel...
class FilesystemIOManager(ConfigurableIOManagerFactory['PickledObjectFilesystemIOManager']): '''Built-in filesystem IO manager that stores and retrieves values using pickling. The base directory that the pickle files live inside is determined by: * The IO manager's "base_dir" configuration value, if specif...
4
1
3
0
3
0
1
8.25
1
3
2
0
1
0
2
134
104
30
8
6
4
66
7
5
4
1
9
0
2
21,902
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/fs_io_manager.py
dagster._core.storage.fs_io_manager.PickledObjectFilesystemIOManager
from dagster._core.execution.context.output import OutputContext from typing import TYPE_CHECKING, Any, Optional import pickle from dagster._core.execution.context.input import InputContext from dagster import DagsterInvariantViolationError, Field as DagsterField from dagster._utils import PICKLE_PROTOCOL, mkdir_p from...
class PickledObjectFilesystemIOManager(UPathIOManager): '''Built-in filesystem IO manager that stores and retrieves values using pickling. Is compatible with local and remote filesystems via `universal-pathlib` and `fsspec`. Learn more about how to use remote filesystems here: https://github.com/fsspec/uni...
4
1
11
1
9
1
2
0.38
1
7
2
2
3
1
3
57
48
9
29
12
24
11
19
9
14
3
7
2
5
21,903
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/input_manager.py
dagster._core.storage.input_manager.IInputManagerDefinition
from dagster._core.definitions.definition_config_schema import CoercableToConfigSchema, IDefinitionConfigSchema, convert_user_facing_definition_config_schema from abc import ABC, abstractmethod class IInputManagerDefinition: @property @abstractmethod def input_config_schema(self) -> IDefinitionConfigSchem...
class IInputManagerDefinition: @property @abstractmethod def input_config_schema(self) -> IDefinitionConfigSchema: '''The schema for per-input configuration for inputs that are managed by this input manager. ''' pass
4
1
4
0
1
3
1
0.75
0
1
1
2
1
0
1
1
7
0
4
3
0
3
2
2
0
1
0
0
1
21,904
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/input_manager.py
dagster._core.storage.input_manager.InputManager
from abc import ABC, abstractmethod from dagster._annotations import public @public class InputManager(ABC): """Base interface for classes that are responsible for loading solid inputs.""" @abstractmethod def load_input(self, context: 'InputContext') -> object: """The user-defined read method that...
@public class InputManager(ABC): '''Base interface for classes that are responsible for loading solid inputs.''' @abstractmethod def load_input(self, context: 'InputContext') -> object: '''The user-defined read method that loads an input to a solid. Args: context (InputContext): ...
4
2
9
2
1
6
1
2.33
1
0
0
2
1
0
1
21
13
3
3
3
0
7
2
2
0
1
4
0
1
21,905
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/input_manager.py
dagster._core.storage.input_manager.InputManagerDefinition
from dagster._core.definitions.resource_definition import ResourceDefinition, ResourceFunction from dagster._annotations import public from typing import TYPE_CHECKING, AbstractSet, Callable, Optional, Union, cast, overload from dagster._core.definitions.definition_config_schema import CoercableToConfigSchema, IDefinit...
@public class InputManagerDefinition(ResourceDefinition, IInputManagerDefinition): '''Definition of an input manager resource. Input managers load op inputs. An InputManagerDefinition is a :py:class:`ResourceDefinition` whose resource_fn returns an :py:class:`InputManager`. The easiest way to create...
6
1
11
0
11
0
1
0.2
2
3
1
0
3
4
3
4
48
6
35
21
18
7
8
5
4
1
1
0
3
21,906
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/input_manager.py
dagster._core.storage.input_manager.InputManagerWrapper
from dagster._core.decorator_utils import has_at_least_one_parameter class InputManagerWrapper(InputManager): def __init__(self, load_fn: InputLoadFn): self._load_fn = load_fn def load_input(self, context: 'InputContext') -> object: intermediate = self._load_fn(context) if has_at_least_one_pa...
class InputManagerWrapper(InputManager): def __init__(self, load_fn: InputLoadFn): pass def load_input(self, context: 'InputContext') -> object: pass
3
0
7
1
5
3
2
0.5
1
0
0
0
2
1
2
23
16
2
10
5
7
5
8
5
5
3
5
1
4
21,907
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/input_manager.py
dagster._core.storage.input_manager._InputManagerDecoratorCallable
from typing import TYPE_CHECKING, AbstractSet, Callable, Optional, Union, cast, overload from dagster._core.definitions.definition_config_schema import CoercableToConfigSchema, IDefinitionConfigSchema, convert_user_facing_definition_config_schema from functools import update_wrapper import dagster._check as check clas...
class _InputManagerDecoratorCallable: def __init__(self, config_schema: CoercableToConfigSchema=None, description: Optional[str]=None, version: Optional[str]=None, input_config_schema: CoercableToConfigSchema=None, required_resource_keys: Optional[AbstractSet[str]]=None): pass def __call__(self, load...
4
0
11
1
10
1
1
0.07
0
3
2
0
2
5
2
2
34
5
28
17
17
2
14
10
10
1
0
0
3
21,908
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/io_manager.py
dagster._core.storage.io_manager.IOManager
from dagster._annotations import public from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Optional, Union, cast, overload from dagster._core.storage.input_manager import IInputManagerDefinition, InputManager from abc import abstractmethod from dagster._core.storage.output_manager import IOutputManagerDefini...
@public class IOManager(InputManager, OutputManager): '''Base class for user-provided IO managers. IOManagers are used to store op outputs and load them as inputs to downstream ops. Extend this class to handle how objects are loaded and stored. Users should implement ``handle_output`` to store an object...
8
3
9
2
1
6
1
2.43
2
1
0
43
2
0
2
24
31
7
7
5
0
17
3
3
0
1
5
0
2
21,909
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/io_manager.py
dagster._core.storage.io_manager.IOManagerDefinition
import dagster._check as check from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Optional, Union, cast, overload from dagster._core.definitions.definition_config_schema import CoercableToConfigSchema, IDefinitionConfigSchema, convert_user_facing_definition_config_schema from dagster._annotations import publ...
@public class IOManagerDefinition(ResourceDefinition, IInputManagerDefinition, IOutputManagerDefinition): '''Definition of an IO manager resource. IOManagers are used to store op outputs and load them as inputs to downstream ops. An IOManagerDefinition is a :py:class:`ResourceDefinition` whose `resource_fn`...
11
2
13
1
10
2
1
0.33
3
4
2
1
4
5
5
7
83
12
54
30
29
18
16
9
10
2
1
0
6
21,910
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/io_manager.py
dagster._core.storage.io_manager._IOManagerDecoratorCallable
from functools import update_wrapper import dagster._check as check from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Optional, Union, cast, overload from dagster._core.definitions.definition_config_schema import CoercableToConfigSchema, IDefinitionConfigSchema, convert_user_facing_definition_config_schema ...
class _IOManagerDecoratorCallable: def __init__(self, config_schema: CoercableToConfigSchema=None, description: Optional[str]=None, output_config_schema: CoercableToConfigSchema=None, input_config_schema: CoercableToConfigSchema=None, required_resource_keys: Optional[set[str]]=None, version: Optional[str]=None): ...
3
0
17
2
14
2
1
0.1
0
3
1
0
2
6
2
2
35
4
29
18
18
3
13
10
10
1
0
0
2
21,911
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/legacy_storage.py
dagster._core.storage.legacy_storage.CompositeStorage
from dagster._serdes import ConfigurableClass, ConfigurableClassData from typing import TYPE_CHECKING, AbstractSet, Optional, Union from collections.abc import Iterable, Mapping, Sequence from dagster._core.storage.schedules.base import ScheduleStorage from dagster._config.config_schema import UserConfigSchema from dag...
class CompositeStorage(DagsterStorage, ConfigurableClass): '''Utiltity class for combining the individually configured run, event_log, schedule storages into the single dagster storage. ''' def __init__(self, run_storage: RunStorage, event_log_storage: EventLogStorage, schedule_storage: ScheduleStorag...
14
1
10
0
10
0
1
0.04
2
7
4
0
5
4
7
33
85
7
75
34
51
3
25
18
17
1
5
0
7
21,912
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/legacy_storage.py
dagster._core.storage.legacy_storage.LegacyEventLogStorage
from dagster._core.storage.base_storage import DagsterStorage from dagster._core.storage.event_log.base import AssetCheckSummaryRecord, AssetRecord, EventLogConnection, EventLogRecord, EventLogStorage, EventRecordsFilter, EventRecordsResult, PlannedMaterializationInfo, PoolLimit from dagster._core.types.pagination impo...
class LegacyEventLogStorage(EventLogStorage, ConfigurableClass): def __init__(self, storage: DagsterStorage, inst_data: Optional[ConfigurableClassData]=None): pass @property def inst_data(self) -> Optional[ConfigurableClassData]: pass @classmethod def config_type(cls) -> UserConfig...
73
1
5
0
5
0
1
0.03
2
24
14
0
62
2
64
159
368
63
300
176
127
8
133
68
68
2
5
1
65
21,913
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/legacy_storage.py
dagster._core.storage.legacy_storage.LegacyRunStorage
from dagster._core.storage.runs.base import RunStorage from dagster._core.storage.sql import AlembicVersion from collections.abc import Iterable, Mapping, Sequence from dagster._utils import PrintFn from datetime import datetime from dagster._serdes import ConfigurableClass, ConfigurableClassData from dagster._core.sto...
class LegacyRunStorage(RunStorage, ConfigurableClass): def __init__(self, storage: DagsterStorage, inst_data: Optional[ConfigurableClassData]=None): pass @property def inst_data(self) -> Optional[ConfigurableClassData]: pass @property def _instance(self) -> Optional['DagsterInstanc...
50
0
3
0
3
0
1
0.01
2
11
2
0
42
2
44
108
195
43
152
93
62
1
93
48
48
2
5
1
45
21,914
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/legacy_storage.py
dagster._core.storage.legacy_storage.LegacyScheduleStorage
from dagster._core.definitions.declarative_automation.serialized_objects import AutomationConditionEvaluationWithRunIds from dagster._core.storage.schedules.base import ScheduleStorage from dagster._serdes import ConfigurableClass, ConfigurableClassData from dagster._utils import PrintFn from dagster._config.config_sch...
class LegacyScheduleStorage(ScheduleStorage, ConfigurableClass): def __init__(self, storage: DagsterStorage, inst_data: Optional[ConfigurableClassData]=None): pass @property def inst_data(self) -> Optional[ConfigurableClassData]: pass @classmethod def config_type(cls) -> UserConfig...
34
0
4
0
4
0
1
0.01
2
12
3
0
26
2
28
75
150
27
123
72
54
1
61
32
32
2
5
1
29
21,915
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/local_compute_log_manager.py
dagster._core.storage.local_compute_log_manager.LocalComputeLogFilesystemEventHandler
from watchdog.events import PatternMatchingEventHandler class LocalComputeLogFilesystemEventHandler(PatternMatchingEventHandler): def __init__(self, manager, log_key, update_paths, complete_paths): self.manager = manager self.log_key = log_key self.update_paths = update_paths self....
class LocalComputeLogFilesystemEventHandler(PatternMatchingEventHandler): def __init__(self, manager, log_key, update_paths, complete_paths): pass def on_created(self, event): pass def on_modified(self, event): pass
4
0
5
0
5
0
2
0
1
1
0
0
3
4
3
3
17
2
15
9
11
0
15
9
11
2
1
1
5
21,916
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/local_compute_log_manager.py
dagster._core.storage.local_compute_log_manager.LocalComputeLogManager
import sys from typing import IO, Final, Optional import os from dagster._utils.security import non_secure_md5_hash_str from dagster import Field, Float, StringSource, _check as check from dagster._config.config_schema import UserConfigSchema from collections.abc import Generator, Iterator, Mapping, Sequence from dagst...
@public class LocalComputeLogManager(ComputeLogManager, ConfigurableClass): '''Stores copies of stdout & stderr for each compute step locally on disk.''' def __init__(self, base_dir: str, polling_timeout: Optional[float]=None, inst_data: Optional[ConfigurableClassData]=None): pass @property def...
28
2
8
0
8
0
2
0.04
2
17
6
0
18
4
20
59
196
25
165
85
110
6
95
49
74
6
5
3
33
21,917
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/local_compute_log_manager.py
dagster._core.storage.local_compute_log_manager.LocalComputeLogSubscriptionManager
from watchdog.observers.polling import PollingObserver from dagster import Field, Float, StringSource, _check as check import os from collections.abc import Generator, Iterator, Mapping, Sequence from collections import defaultdict from dagster_shared.seven import json from dagster._core.storage.compute_log_manager imp...
class LocalComputeLogSubscriptionManager: def __init__(self, manager): pass def add_subscription(self, subscription: CapturedLogSubscription) -> None: pass def is_complete(self, subscription: CapturedLogSubscription) -> bool: pass def remove_subscription(self, subscription: ...
12
0
7
1
7
0
2
0.01
0
7
3
0
11
4
11
11
92
17
75
30
63
1
60
30
48
3
0
1
19
21,918
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/mem_io_manager.py
dagster._core.storage.mem_io_manager.InMemoryIOManager
from dagster._core.execution.context.output import OutputContext from dagster._core.storage.io_manager import IOManager, dagster_maintained_io_manager, io_manager from dagster._core.execution.context.input import InputContext class InMemoryIOManager(IOManager): """I/O manager that stores and retrieves values in me...
class InMemoryIOManager(IOManager): '''I/O manager that stores and retrieves values in memory. After execution is complete, the values will be garbage-collected. Note that this means that each run will not have access to values from previous runs. ''' def __init__(self): pass def handle_o...
4
1
3
0
3
0
1
0.33
1
4
2
0
3
1
3
27
15
3
9
7
5
3
9
7
5
1
6
0
3
21,919
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/noop_compute_log_manager.py
dagster._core.storage.noop_compute_log_manager.NoOpComputeLogManager
from contextlib import contextmanager from typing_extensions import Self import dagster._check as check from typing import IO, Any, Optional from collections.abc import Generator, Mapping, Sequence from dagster._serdes import ConfigurableClass, ConfigurableClassData from dagster._annotations import public from dagster....
@public class NoOpComputeLogManager(ComputeLogManager, ConfigurableClass): '''When enabled for a Dagster instance, stdout and stderr will not be available for any step.''' def __init__(self, inst_data: Optional[ConfigurableClassData]=None): pass @property def inst_data(self): pass @...
19
1
3
0
3
0
1
0.02
2
13
4
5
10
1
12
51
57
12
44
33
12
1
25
14
12
1
5
0
12
21,920
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/output_manager.py
dagster._core.storage.output_manager.IOutputManagerDefinition
from abc import ABC, abstractmethod class IOutputManagerDefinition: @property @abstractmethod def output_config_schema(self): """The schema for per-output configuration for outputs that are managed by this manager. """
class IOutputManagerDefinition: @property @abstractmethod def output_config_schema(self): '''The schema for per-output configuration for outputs that are managed by this manager. ''' pass
4
1
4
0
1
3
1
0.75
0
0
0
2
1
0
1
1
7
0
4
3
0
3
2
2
0
1
0
0
1
21,921
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/output_manager.py
dagster._core.storage.output_manager.OutputManager
from abc import ABC, abstractmethod class OutputManager(ABC): """Base class for user-provided output managers. OutputManagers are used to handle the outputs of solids. """ @abstractmethod def handle_output(self, context, obj): """Handles an output produced by a solid. Usually, this means m...
class OutputManager(ABC): '''Base class for user-provided output managers. OutputManagers are used to handle the outputs of solids. ''' @abstractmethod def handle_output(self, context, obj): '''Handles an output produced by a solid. Usually, this means materializing it to persistent ...
3
2
8
1
1
6
1
3
1
0
0
1
1
0
1
21
14
2
3
3
0
9
2
2
0
1
4
0
1
21,922
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/output_manager.py
dagster._core.storage.output_manager.OutputManagerDefinition
from dagster._core.definitions.resource_definition import ResourceDefinition from dagster._core.definitions.definition_config_schema import convert_user_facing_definition_config_schema class OutputManagerDefinition(ResourceDefinition, IOutputManagerDefinition): """Definition of an output manager resource. An ...
class OutputManagerDefinition(ResourceDefinition, IOutputManagerDefinition): '''Definition of an output manager resource. An OutputManagerDefinition is a :py:class:`ResourceDefinition` whose resource_fn returns an :py:class:`OutputManager`. OutputManagers are used to handle the outputs of solids. ...
5
1
10
0
10
0
1
0.16
2
1
0
0
3
4
3
4
39
4
31
17
18
5
8
5
4
1
1
0
3
21,923
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/partition_status_cache.py
dagster._core.storage.partition_status_cache.AssetPartitionStatus
from enum import Enum class AssetPartitionStatus(Enum): """The status of asset partition.""" MATERIALIZED = 'MATERIALIZED' IN_PROGRESS = 'IN_PROGRESS' FAILED = 'FAILED'
class AssetPartitionStatus(Enum): '''The status of asset partition.''' 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
21,924
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/partition_status_cache.py
dagster._core.storage.partition_status_cache.AssetStatusCacheValue
from collections.abc import Iterable, Sequence from dagster._core.asset_graph_view.entity_subset import EntitySubset, _ValidatedEntitySubsetValue from typing import TYPE_CHECKING, NamedTuple, Optional from dagster._core.definitions.partitions.subset import PartitionsSubset from dagster_shared.serdes import deserialize_...
@whitelist_for_serdes class AssetStatusCacheValue(NamedTuple('_AssetPartitionsStatusCacheValue', [('latest_storage_id', int), ('partitions_def_id', Optional[str]), ('serialized_materialized_partition_subset', Optional[str]), ('serialized_failed_partition_subset', Optional[str]), ('serialized_in_progress_partition_subse...
13
1
10
1
10
0
2
0.17
2
6
1
0
7
0
9
9
138
15
105
60
49
18
39
14
29
3
1
1
14
21,925
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/root.py
dagster._core.storage.root.LocalArtifactStorage
from dagster import StringSource, _check as check from dagster._config.config_schema import UserConfigSchema from dagster._annotations import public from dagster._serdes import ConfigurableClass, ConfigurableClassData import os from typing import Optional @public class LocalArtifactStorage(ConfigurableClass): def...
@public class LocalArtifactStorage(ConfigurableClass): def __init__(self, base_dir: str, inst_data: Optional[ConfigurableClassData]=None): pass @property def inst_data(self) -> Optional[ConfigurableClassData]: pass @property def base_dir(self) -> str: pass def file_mana...
17
0
2
0
2
0
1
0
1
2
1
1
7
2
9
32
37
8
29
20
11
0
21
12
11
1
5
0
9
21,926
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/root.py
dagster._core.storage.root.LocalArtifactStorageConfig
from typing_extensions import TypedDict class LocalArtifactStorageConfig(TypedDict): base_dir: str
class LocalArtifactStorageConfig(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
21,927
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/root.py
dagster._core.storage.root.TemporaryLocalArtifactStorage
from tempfile import TemporaryDirectory class TemporaryLocalArtifactStorage(LocalArtifactStorage): """Used by ephemeral DagsterInstances, defers directory creation til access since many uses of ephemeral instance do not require artifact directory. """ def __init__(self): self._temp_dir = None ...
class TemporaryLocalArtifactStorage(LocalArtifactStorage): '''Used by ephemeral DagsterInstances, defers directory creation til access since many uses of ephemeral instance do not require artifact directory. ''' def __init__(self): pass @property def base_dir(self): pass d...
5
1
3
0
3
0
2
0.27
1
1
0
0
3
1
3
35
17
3
11
6
6
3
10
5
6
2
6
1
5
21,928
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/runs/base.py
dagster._core.storage.runs.base.RunGroupInfo
from dagster._core.storage.dagster_run import DagsterRun, JobBucket, RunPartitionData, RunRecord, RunsFilter, TagBucket from collections.abc import Mapping, Sequence from typing_extensions import TypedDict class RunGroupInfo(TypedDict): count: int runs: Sequence[DagsterRun]
class RunGroupInfo(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
21,929
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/runs/base.py
dagster._core.storage.runs.base.RunStorage
from datetime import datetime from dagster._core.storage.dagster_run import DagsterRun, JobBucket, RunPartitionData, RunRecord, RunsFilter, TagBucket from collections.abc import Mapping, Sequence from abc import ABC, abstractmethod from dagster._core.instance import MayHaveInstanceWeakref, T_DagsterInstance from dagste...
@public class RunStorage(ABC, MayHaveInstanceWeakref[T_DagsterInstance], DaemonCursorStorage): '''Abstract base class for storing pipeline run history. Note that run storages using SQL databases as backing stores should implement :py:class:`~dagster._core.storage.runs.SqlRunStorage`. Users should not di...
73
37
7
1
2
4
1
1.5
3
13
5
2
39
0
39
61
378
78
120
111
10
180
49
40
9
2
4
1
40
21,930
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/runs/in_memory.py
dagster._core.storage.runs.in_memory.InMemoryRunStorage
from dagster._core.storage.sql import create_engine, get_alembic_config, stamp_alembic_rev from dagster._core.debug import DebugRunPayload from sqlalchemy.engine import Connection from collections.abc import Iterator, Sequence import sqlalchemy as db import uuid from dagster._core.storage.runs.schema import InstanceInf...
class InMemoryRunStorage(SqlRunStorage): '''In memory only run storage. Used by ephemeral DagsterInstance or for testing purposes. WARNING: The Dagster UI and other core functionality will not work if this is used on a real DagsterInstance ''' def __init__(self, preload: Optional[Sequence[DebugRunPayl...
7
1
8
1
7
0
2
0.11
1
5
1
0
5
2
5
128
50
11
35
13
28
4
29
11
23
4
6
2
8
21,931
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/runs/sql_run_storage.py
dagster._core.storage.runs.sql_run_storage.SnapshotType
from enum import Enum class SnapshotType(Enum): PIPELINE = 'PIPELINE' EXECUTION_PLAN = 'EXECUTION_PLAN'
class SnapshotType(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
3
0
3
3
2
0
3
3
2
0
4
0
0
21,932
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/runs/sql_run_storage.py
dagster._core.storage.runs.sql_run_storage.SqlRunStorage
from dagster._core.storage.runs.schema import BackfillTagsTable, BulkActionsTable, DaemonHeartbeatsTable, InstanceInfo, KeyValueStoreTable, RunsTable, RunTagsTable, SecondaryIndexMigrationTable, SnapshotsTable from dagster._core.snap import ExecutionPlanSnapshot, JobSnap, create_execution_plan_snapshot_id from dagster....
class SqlRunStorage(RunStorage): '''Base class for SQL based run storages.''' @abstractmethod def connect(self) -> ContextManager[Connection]: '''Context manager yielding a sqlalchemy.engine.Connection.''' pass @abstractmethod def upgrade(self) -> None: '''This method should...
69
6
15
1
13
1
3
0.05
1
21
6
4
62
0
62
123
1,029
150
837
269
704
46
471
179
406
11
5
4
162
21,933
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/runs/sqlite/sqlite_run_storage.py
dagster._core.storage.runs.sqlite.sqlite_run_storage.SqliteRunStorage
from dagster._core.storage.sql import AlembicVersion, check_alembic_revision, create_engine, get_alembic_config, run_alembic_downgrade, run_alembic_upgrade, safe_commit, stamp_alembic_rev from dagster import StringSource, _check as check from contextlib import contextmanager from urllib.parse import urljoin, urlparse f...
class SqliteRunStorage(SqlRunStorage, ConfigurableClass): '''SQLite-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...
18
2
8
1
7
1
2
0.32
2
3
0
0
9
2
12
138
136
24
85
47
65
27
77
34
64
5
6
3
19
21,934
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/schedules/base.py
dagster._core.storage.schedules.base.ScheduleStorage
from typing import Optional from dagster._annotations import public from dagster._core.definitions.declarative_automation.serialized_objects import AutomationConditionEvaluationWithRunIds from dagster._core.instance import MayHaveInstanceWeakref, T_DagsterInstance from dagster._core.definitions.run_request import Insti...
@public class ScheduleStorage(abc.ABC, MayHaveInstanceWeakref[T_DagsterInstance]): '''Abstract class for managing persistance of scheduler artifacts.''' @abc.abstractmethod def wipe(self) -> None: '''Delete all schedules from storage.''' pass @abc.abstractmethod def all_instigator_st...
44
21
6
1
3
3
1
0.91
2
15
7
2
24
0
24
44
191
38
80
76
4
73
29
25
4
1
4
0
24
21,935
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/schedules/sql_schedule_storage.py
dagster._core.storage.schedules.sql_schedule_storage.SqlScheduleStorage
from sqlalchemy.engine import Connection from dagster._core.storage.sql import SqlAlchemyQuery, SqlAlchemyRow from dagster._core.definitions.declarative_automation.serialized_objects import AutomationConditionEvaluationWithRunIds from dagster._core.errors import DagsterInvariantViolationError from dagster._core.storage...
class SqlScheduleStorage(ScheduleStorage): '''Base class for SQL backed schedule storage.''' @abstractmethod def connect(self) -> ContextManager[Connection]: '''Context manager yielding a sqlalchemy.engine.Connection.''' pass def execute(self, query: SqlAlchemyQuery) -> Sequence[SqlAlc...
38
3
16
1
15
0
2
0.02
1
18
7
3
34
0
34
78
588
77
505
153
420
9
256
84
221
8
5
4
80
21,936
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/schedules/sqlite/sqlite_schedule_storage.py
dagster._core.storage.schedules.sqlite.sqlite_schedule_storage.SqliteScheduleStorage
from dagster._serdes import ConfigurableClass, ConfigurableClassData from sqlalchemy.engine import Connection from sqlalchemy.pool import NullPool from packaging.version import parse from dagster._core.storage.schedules.schema import ScheduleStorageSqlMetadata from dagster._core.storage.schedules.sql_schedule_storage i...
class SqliteScheduleStorage(SqlScheduleStorage, ConfigurableClass): '''Local SQLite backed schedule storage.''' def __init__(self, conn_string: str, inst_data: Optional[ConfigurableClassData]=None): pass @property def inst_data(self) -> Optional[ConfigurableClassData]: pass @classm...
16
1
8
1
7
0
1
0.08
2
4
0
0
6
2
9
90
85
14
66
37
46
5
53
23
43
4
6
3
13
21,937
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/sql.py
dagster._core.storage.sql.LongText
import sqlalchemy as db class LongText(db.Text): """Allows customization of certain fields to map to LONGTEXT in MySQL. For Postgres, all text fields are mapped to TEXT, which is unbounded in length, so the distinction is not neccessary. In MySQL, however, TEXT is limited to 64KB, so LONGTEXT (4GB) is req...
class LongText(db.Text): '''Allows customization of certain fields to map to LONGTEXT in MySQL. For Postgres, all text fields are mapped to TEXT, which is unbounded in length, so the distinction is not neccessary. In MySQL, however, TEXT is limited to 64KB, so LONGTEXT (4GB) is required for certain fields...
1
1
0
0
0
0
0
2
1
0
0
0
0
0
0
0
7
1
2
1
1
4
2
1
1
0
1
0
0
21,938
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/sql.py
dagster._core.storage.sql.MySQLCompatabilityTypes
import sqlalchemy as db class MySQLCompatabilityTypes: UniqueText = db.String(512) LongText = LongText
class MySQLCompatabilityTypes: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
3
3
2
0
3
3
2
0
0
0
0
21,939
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/sql.py
dagster._core.storage.sql.get_sql_current_timestamp
import sqlalchemy as db class get_sql_current_timestamp(db.sql.expression.FunctionElement): """Like CURRENT_TIMESTAMP, but has the same semantics on MySQL, Postgres, and Sqlite.""" type = db.types.DateTime()
class get_sql_current_timestamp(db.sql.expression.FunctionElement): '''Like CURRENT_TIMESTAMP, but has the same semantics on MySQL, Postgres, and Sqlite.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
4
1
2
2
1
2
2
2
1
0
1
0
0
21,940
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/sqlite_storage.py
dagster._core.storage.sqlite_storage.DagsterSqliteStorage
from dagster._config.config_schema import UserConfigSchema from typing_extensions import Self, TypedDict from dagster._core.storage.runs.sqlite.sqlite_run_storage import SqliteRunStorage from dagster import _check as check import yaml from dagster._core.storage.base_storage import DagsterStorage from dagster._core.stor...
class DagsterSqliteStorage(DagsterStorage, ConfigurableClass): '''SQLite-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...
24
1
4
0
4
0
1
0.18
2
8
6
0
10
5
13
39
97
19
66
31
40
12
42
19
28
4
5
1
16
21,941
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/sqlite_storage.py
dagster._core.storage.sqlite_storage.SqliteStorageConfig
from typing_extensions import Self, TypedDict class SqliteStorageConfig(TypedDict): base_dir: str
class SqliteStorageConfig(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
2
0
2
1
1
0
2
1
1
0
1
0
0
21,942
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/tags.py
dagster._core.storage.tags.TagType
from enum import Enum class TagType(Enum): USER_PROVIDED = 'USER_PROVIDED' SYSTEM = 'SYSTEM' HIDDEN = 'HIDDEN'
class TagType(Enum): pass
1
0
0
0
0
0
0
1
1
0
0
0
0
0
0
49
10
2
4
4
3
4
4
4
3
0
4
0
0
21,943
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/temp_file_manager.py
dagster._core.storage.temp_file_manager.TempfileManager
import shutil import tempfile import os class TempfileManager: def __init__(self): self.paths = [] self.files = [] self.dirs = [] def tempfile(self): temporary_file = tempfile.NamedTemporaryFile('w+b', delete=False) self.files.append(temporary_file) self.paths....
class TempfileManager: def __init__(self): pass def tempfile(self): pass def tempdir(self): pass def close(self): pass
5
0
5
0
5
0
2
0
0
0
0
0
4
3
4
4
25
3
22
13
17
0
22
13
17
5
0
2
8
21,944
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/storage/upath_io_manager.py
dagster._core.storage.upath_io_manager.UPathIOManager
import inspect from collections.abc import Mapping from dagster._core.definitions.partitions.utils import MultiPartitionKey from typing import TYPE_CHECKING, Any, Optional, Union from dagster._core.storage.io_manager import IOManager from dagster import InputContext, MetadataValue, OutputContext, _check as check from p...
class UPathIOManager(IOManager): '''Abstract IOManager base class compatible with local and cloud storage via `universal-pathlib` and `fsspec`. Features: - handles partitioned assets - handles loading a single upstream partition - handles loading multiple upstream partitions (with respect to :py...
37
15
14
1
10
2
2
0.33
1
14
0
12
30
1
30
54
437
74
280
96
219
91
167
72
129
8
6
4
64
21,945
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/system_config/composite_descent.py
dagster._core.system_config.composite_descent.DescentStack
import dagster._check as check from typing import Callable, NamedTuple, NoReturn, cast from dagster._core.definitions.job_definition import JobDefinition from dagster._core.definitions.graph_definition import GraphDefinition, SubselectedGraphDefinition from dagster._core.definitions.dependency import GraphNode, Node, N...
class DescentStack(NamedTuple('_DescentStack', [('job_def', JobDefinition), ('handle', NodeHandle)])): def __new__(cls, job_def: JobDefinition, handle: NodeHandle): pass @property def current_container(self) -> GraphDefinition: pass @property def current_node(self) -> Node: ...
9
0
4
0
4
0
1
0
1
7
5
0
5
0
5
5
30
4
26
12
15
0
16
7
10
2
1
1
7
21,946
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/system_config/composite_descent.py
dagster._core.system_config.composite_descent.OpConfigEntry
from dagster._core.system_config.objects import OpConfig import dagster._check as check from dagster._core.definitions.dependency import GraphNode, Node, NodeHandle, OpNode from typing import Callable, NamedTuple, NoReturn, cast class OpConfigEntry(NamedTuple('_SolidConfigEntry', [('handle', NodeHandle), ('solid_confi...
class OpConfigEntry(NamedTuple('_SolidConfigEntry', [('handle', NodeHandle), ('solid_config', OpConfig)])): def __new__(cls, handle: NodeHandle, op_config: OpConfig): pass
2
0
6
0
6
0
1
0
1
3
2
0
1
0
1
1
9
0
9
4
5
0
3
2
1
1
1
0
1
21,947
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/system_config/objects.py
dagster._core.system_config.objects.ExecutionConfig
import dagster._check as check from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast from collections.abc import Mapping, Sequence from dagster._utils import ensure_single_item class ExecutionConfig(NamedTuple('_ExecutionConfig', [('execution_engine_name', Optional[str]), ('execution_en...
class ExecutionConfig(NamedTuple('_ExecutionConfig', [('execution_engine_name', Optional[str]), ('execution_engine_config', Mapping[str, Any])])): def __new__(cls, execution_engine_name: Optional[str], execution_engine_config: Optional[Mapping[str, object]]): pass @staticmethod def from_dict(confi...
4
0
12
0
12
1
2
0.03
1
5
0
0
1
0
2
2
34
1
33
17
17
1
9
4
6
2
1
1
3
21,948
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/system_config/objects.py
dagster._core.system_config.objects.OpConfig
from collections.abc import Mapping, Sequence import dagster._check as check from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast class OpConfig(NamedTuple('_OpConfig', [('config', object), ('inputs', Mapping[str, object]), ('outputs', 'OutputsConfig')])): def __new__(cls, config,...
class OpConfig(NamedTuple('_OpConfig', [('config', object), ('inputs', Mapping[str, object]), ('outputs', 'OutputsConfig')])): def __new__(cls, config, inputs: Mapping[str, object], outputs: 'OutputsConfig'): pass @staticmethod def from_dict(config: Mapping[str, Any]) -> 'OpConfig': pass
4
0
8
1
7
0
1
0
1
6
1
0
1
0
2
2
27
2
25
13
12
0
6
3
3
1
1
0
2
21,949
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/system_config/objects.py
dagster._core.system_config.objects.OutputsConfig
from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast class OutputsConfig(NamedTuple): """Outputs are configured as a dict if any of the outputs have an output manager with an output_config_schema, and a list otherwise. """ config: Optional[Union[dict, list]] @prope...
class OutputsConfig(NamedTuple): '''Outputs are configured as a dict if any of the outputs have an output manager with an output_config_schema, and a list otherwise. ''' @property def output_names(self) -> AbstractSet[str]: pass def get_output_manager_config(self, output_name: str) -> ...
4
1
6
0
6
0
3
0.2
1
5
0
0
2
0
2
2
21
3
15
5
11
3
11
3
8
3
1
1
5
21,950
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/system_config/objects.py
dagster._core.system_config.objects.ResolvedRunConfig
from dagster._core.errors import DagsterConfigMappingFunctionError, DagsterInvalidConfigError, user_code_error_boundary from collections.abc import Mapping, Sequence from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast from dagster._core.definitions.job_definition import JobDefinition i...
class ResolvedRunConfig(NamedTuple('_ResolvedRunConfig', [('ops', Mapping[str, OpConfig]), ('execution', 'ExecutionConfig'), ('resources', Mapping[str, ResourceConfig]), ('loggers', Mapping[str, Mapping[str, object]]), ('original_config_dict', Any), ('inputs', Mapping[str, Any])])): def __new__(cls, ops: Optional...
5
1
40
5
33
2
3
0.06
1
9
3
0
2
0
3
3
137
18
112
44
82
7
43
20
37
4
1
2
9
21,951
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/system_config/objects.py
dagster._core.system_config.objects.ResourceConfig
import dagster._check as check from typing import TYPE_CHECKING, AbstractSet, Any, NamedTuple, Optional, Union, cast class ResourceConfig(NamedTuple): config: Any @staticmethod def from_dict(config: dict[str, object]) -> 'ResourceConfig': check.dict_param(config, 'config', key_type=str) re...
class ResourceConfig(NamedTuple): @staticmethod def from_dict(config: dict[str, object]) -> 'ResourceConfig': pass
3
0
4
1
3
0
1
0
1
3
0
0
0
0
1
1
8
2
6
3
3
0
5
2
3
1
1
0
1
21,952
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/builtin_config_schemas.py
dagster._core.types.builtin_config_schemas.BuiltinSchemas
from dagster._config import ConfigAnyInstance, ConfigBoolInstance, ConfigFloatInstance, ConfigIntInstance, ConfigStringInstance, ConfigType, ConfigTypeKind, Field, ScalarUnion, Selector class BuiltinSchemas: ANY_INPUT = define_any_input_schema() BOOL_INPUT = define_builtin_scalar_input_schema('Bool', ConfigBoo...
class BuiltinSchemas: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
10
4
6
6
5
0
6
6
5
0
0
0
0
21,953
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/config_schema.py
dagster._core.types.config_schema.DagsterTypeLoader
from dagster._core.definitions.resource_requirement import ResourceRequirement, TypeLoaderResourceRequirement from dagster._annotations import public from typing import TYPE_CHECKING, AbstractSet, Any, Callable, Iterator, Optional from abc import ABC, abstractmethod from dagster._config import ConfigType @public class...
@public class DagsterTypeLoader(ABC): '''Dagster type loaders are used to load unconnected inputs of the dagster type they are attached to. The recommended way to define a type loader is with the :py:func:`@dagster_type_loader <dagster_type_loader>` decorator. ''' @property @abstractmethod ...
8
2
4
0
4
0
1
0.33
1
3
0
6
4
0
4
24
29
5
18
11
7
6
10
6
5
2
4
1
5
21,954
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/config_schema.py
dagster._core.types.config_schema.DagsterTypeLoaderFromDecorator
import dagster._check as check from dagster._config import ConfigType class DagsterTypeLoaderFromDecorator(DagsterTypeLoader): def __init__(self, config_type, func, required_resource_keys): self._config_type = check.inst_param(config_type, 'config_type', ConfigType) self._func = check.callable_par...
class DagsterTypeLoaderFromDecorator(DagsterTypeLoader): def __init__(self, config_type, func, required_resource_keys): pass @property def schema_type(self) -> ConfigType: pass def construct_from_config_value(self, context: 'DagsterTypeLoaderContext', config_value: object): pa...
6
0
4
0
4
0
1
0
1
2
0
0
4
3
4
28
19
3
16
11
8
0
11
8
6
1
5
0
4
21,955
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.Anyish
from dagster._core.definitions.events import DynamicOutput, Output, TypeCheck import typing as t from dagster._core.types.config_schema import DagsterTypeLoader class Anyish(DagsterType): def __init__(self, key: t.Optional[str], name: t.Optional[str], loader: t.Optional[DagsterTypeLoader]=None, is_builtin: bool=F...
class Anyish(DagsterType): def __init__(self, key: t.Optional[str], name: t.Optional[str], loader: t.Optional[DagsterTypeLoader]=None, is_builtin: bool=False, description: t.Optional[str]=None): pass def type_check_method(self, _context: 'TypeCheckContext', _value: object) -> TypeCheck: pass ...
6
0
7
0
7
0
1
0.04
1
7
2
1
4
0
4
25
32
3
28
15
13
1
9
5
4
1
1
0
4
21,956
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.BuiltinScalarDagsterType
from abc import abstractmethod from dagster._core.definitions.events import DynamicOutput, Output, TypeCheck import typing as t class BuiltinScalarDagsterType(DagsterType): def __init__(self, name: str, type_check_fn: TypeCheckFn, typing_type: t.Type, **kwargs): super(BuiltinScalarDagsterType, self).__ini...
class BuiltinScalarDagsterType(DagsterType): def __init__(self, name: str, type_check_fn: TypeCheckFn, typing_type: t.Type, **kwargs): pass def type_check_fn(self, _context, value) -> TypeCheck: pass @abstractmethod def type_check_scalar_value(self, _value) -> TypeCheck: pass
5
0
5
0
5
0
1
0.11
1
4
1
4
3
0
3
24
22
2
18
7
11
2
7
4
3
1
1
0
3
21,957
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.DagsterListApi
import dagster._check as check class DagsterListApi: def __getitem__(self, inner_type): check.not_none_param(inner_type, 'inner_type') return _List(resolve_dagster_type(inner_type)) def __call__(self, inner_type): check.not_none_param(inner_type, 'inner_type') return _List(inn...
class DagsterListApi: def __getitem__(self, inner_type): pass def __call__(self, inner_type): pass
3
0
3
0
3
0
1
0
0
0
0
0
2
0
2
2
8
1
7
3
4
0
7
3
4
1
0
0
2
21,958
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.DagsterOptionalApi
import typing as t import dagster._check as check class DagsterOptionalApi: def __getitem__(self, inner_type: t.Union[t.Type, DagsterType]) -> OptionalType: inner_type = resolve_dagster_type(check.not_none_param(inner_type, 'inner_type')) return OptionalType(inner_type)
class DagsterOptionalApi: def __getitem__(self, inner_type: t.Union[t.Type, DagsterType]) -> OptionalType: pass
2
0
5
0
5
0
1
0
0
2
2
0
1
0
1
1
6
0
6
2
4
0
4
2
2
1
0
0
1
21,959
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.DagsterType
from typing import AbstractSet as TypingAbstractSet from dagster._core.definitions.metadata import MetadataValue, RawMetadataValue, normalize_metadata from dagster._annotations import public from dagster._core.errors import DagsterInvalidDefinitionError, DagsterInvariantViolationError import typing as t from dagster._c...
@public class DagsterType: '''Define a type in dagster. These can be used in the inputs and outputs of ops. Args: type_check_fn (Callable[[TypeCheckContext, Any], [Union[bool, TypeCheck]]]): The function that defines the type check. It takes the value flowing through the input or...
47
9
7
1
5
1
1
0.38
0
9
3
11
20
10
21
21
223
36
136
60
80
51
70
33
48
3
0
1
28
21,960
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.DagsterTypeKind
from enum import Enum as PythonEnum from dagster._serdes import whitelist_for_serdes @whitelist_for_serdes class DagsterTypeKind(PythonEnum): ANY = 'ANY' SCALAR = 'SCALAR' LIST = 'LIST' NOTHING = 'NOTHING' NULLABLE = 'NULLABLE' REGULAR = 'REGULAR'
@whitelist_for_serdes class DagsterTypeKind(PythonEnum): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
7
0
7
7
6
0
7
7
6
0
4
0
0
21,961
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.ListInputSchema
from dagster._config import Array, ConfigType import dagster._check as check from functools import partial from dagster._core.types.config_schema import DagsterTypeLoader class ListInputSchema(DagsterTypeLoader): def __init__(self, inner_dagster_type): self._inner_dagster_type = check.inst_param(inner_dag...
class ListInputSchema(DagsterTypeLoader): def __init__(self, inner_dagster_type): pass @property def schema_type(self): pass def construct_from_config_value(self, context, config_value): pass
5
0
4
0
4
0
1
0
1
4
1
0
3
2
3
27
17
2
15
8
10
0
10
7
6
1
5
0
3
21,962
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.ListType
import typing as t from dagster._core.definitions.events import DynamicOutput, Output, TypeCheck class ListType(DagsterType): def __init__(self, inner_type: DagsterType): key = 'List.' + inner_type.key self.inner_type = inner_type super(ListType, self).__init__(key=key, name=None, kind=Dag...
class ListType(DagsterType): def __init__(self, inner_type: DagsterType): pass @property def display_name(self): pass def type_check_method(self, context, value): pass @property def inner_types(self): pass @property def type_param_keys(self): pa...
12
0
5
0
4
0
1
0.03
1
3
1
0
7
1
7
28
43
8
35
17
23
1
24
13
16
4
1
2
10
21,963
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.NoneableInputSchema
from dagster._core.types.config_schema import DagsterTypeLoader from dagster._config import Array, ConfigType from dagster._config import Noneable as ConfigNoneable import dagster._check as check class NoneableInputSchema(DagsterTypeLoader): def __init__(self, inner_dagster_type: DagsterType): self._inner...
class NoneableInputSchema(DagsterTypeLoader): def __init__(self, inner_dagster_type: DagsterType): pass @property def schema_type(self) -> ConfigType: pass def construct_from_config_value(self, context: 'DagsterTypeLoaderContext', config_value: object) -> object: pass
5
0
5
0
5
0
1
0
1
1
1
0
3
3
3
27
20
2
18
10
11
0
11
7
7
2
5
1
4
21,964
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.OptionalType
from typing import AnyStr, Mapping, Sequence, cast import typing as t from dagster._core.errors import DagsterInvalidDefinitionError, DagsterInvariantViolationError from dagster._core.definitions.events import DynamicOutput, Output, TypeCheck class OptionalType(DagsterType): def __init__(self, inner_type: Dagster...
class OptionalType(DagsterType): def __init__(self, inner_type: DagsterType): pass @property def display_name(self) -> str: pass def type_check_method(self, context, value): pass @property def inner_types(self): pass @property def type_param_keys(self):...
12
0
5
0
5
0
1
0.05
1
3
1
0
7
1
7
28
46
8
37
14
25
2
20
10
12
2
1
1
9
21,965
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.PythonObjectDagsterType
from dagster._annotations import public import dagster._check as check import typing as t from typing import AnyStr, Mapping, Sequence, cast @public class PythonObjectDagsterType(DagsterType): """Define a type in dagster whose typecheck is an isinstance check. Specifically, the type can either be a single pyt...
@public class PythonObjectDagsterType(DagsterType): '''Define a type in dagster whose typecheck is an isinstance check. Specifically, the type can either be a single python type (e.g. int), or a tuple of types (e.g. (int, float)) which is treated as a union. Examples: .. code-block:: python ...
3
1
29
1
28
1
2
1
1
4
0
2
1
2
1
22
66
9
29
12
21
29
12
5
10
2
1
1
2
21,966
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.Stringish
import dagster._check as check from dagster._core.types.builtin_config_schemas import BuiltinSchemas from dagster._core.definitions.events import DynamicOutput, Output, TypeCheck import typing as t class Stringish(DagsterType): def __init__(self, key: t.Optional[str]=None, name: t.Optional[str]=None, **kwargs): ...
class Stringish(DagsterType): def __init__(self, key: t.Optional[str]=None, name: t.Optional[str]=None, **kwargs): pass def type_check_method(self, _context: 'TypeCheckContext', value: object) -> TypeCheck: pass
3
0
9
0
9
0
1
0
1
6
2
0
2
0
2
23
20
1
19
7
12
0
7
3
4
1
1
0
2
21,967
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type.TypeHintInferredDagsterType
import typing as t class TypeHintInferredDagsterType(DagsterType): def __init__(self, python_type: t.Type): qualified_name = f'{python_type.__module__}.{python_type.__name__}' self.python_type = python_type super(TypeHintInferredDagsterType, self).__init__(key=f'_TypeHintInferred[{qualifie...
class TypeHintInferredDagsterType(DagsterType): def __init__(self, python_type: t.Type): pass @property def display_name(self) -> str: pass
4
0
8
0
8
0
1
0
1
2
0
0
2
1
2
23
18
1
17
6
13
0
7
5
4
1
1
0
2
21,968
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type._Any
from dagster._core.types.builtin_config_schemas import BuiltinSchemas class _Any(Anyish): def __init__(self): super(_Any, self).__init__(key='Any', name='Any', loader=BuiltinSchemas.ANY_INPUT, is_builtin=True)
class _Any(Anyish): def __init__(self): pass
2
0
7
0
7
0
1
0
1
2
1
0
1
0
1
26
8
0
8
2
6
0
3
2
1
1
2
0
1
21,969
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type._Bool
from dagster._core.definitions.events import DynamicOutput, Output, TypeCheck from dagster._core.types.builtin_config_schemas import BuiltinSchemas class _Bool(BuiltinScalarDagsterType): def __init__(self): super(_Bool, self).__init__(name='Bool', loader=BuiltinSchemas.BOOL_INPUT, type_check_fn=self.type_...
class _Bool(BuiltinScalarDagsterType): def __init__(self): pass def type_check_scalar_value(self, value: object) -> TypeCheck: pass
3
0
5
0
5
0
1
0
1
4
1
0
2
1
2
26
11
1
10
4
7
0
5
3
2
1
2
0
2
21,970
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type._Float
from dagster._core.types.builtin_config_schemas import BuiltinSchemas from dagster._core.definitions.events import DynamicOutput, Output, TypeCheck class _Float(BuiltinScalarDagsterType): def __init__(self): super(_Float, self).__init__(name='Float', loader=BuiltinSchemas.FLOAT_INPUT, type_check_fn=self.t...
class _Float(BuiltinScalarDagsterType): def __init__(self): pass def type_check_scalar_value(self, value: object) -> TypeCheck: pass
3
0
5
0
5
0
1
0
1
4
1
0
2
1
2
26
11
1
10
4
7
0
5
3
2
1
2
0
2
21,971
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type._Int
from dagster._core.types.builtin_config_schemas import BuiltinSchemas from dagster._core.definitions.events import DynamicOutput, Output, TypeCheck class _Int(BuiltinScalarDagsterType): def __init__(self): super(_Int, self).__init__(name='Int', loader=BuiltinSchemas.INT_INPUT, type_check_fn=self.type_chec...
class _Int(BuiltinScalarDagsterType): def __init__(self): pass def type_check_scalar_value(self, value) -> TypeCheck: pass
3
0
5
0
5
0
1
0
1
3
1
0
2
1
2
26
11
1
10
4
7
0
5
3
2
1
2
0
2
21,972
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type._Nothing
from dagster._core.definitions.events import DynamicOutput, Output, TypeCheck from dagster._core.definitions.utils import NoValueSentinel class _Nothing(DagsterType): def __init__(self): super(_Nothing, self).__init__(key='Nothing', name='Nothing', kind=DagsterTypeKind.NOTHING, loader=None, type_check_fn=...
class _Nothing(DagsterType): def __init__(self): pass def type_check_method(self, _context: 'TypeCheckContext', value: object) -> TypeCheck: pass @property def supports_fan_in(self) -> bool: pass def get_inner_type_for_fan_in(self) -> DagsterType: pass
6
0
6
0
6
0
1
0
1
5
1
0
4
0
4
25
29
4
25
8
17
0
11
5
6
2
1
1
5
21,973
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/dagster_type.py
dagster._core.types.dagster_type._String
from dagster._core.definitions.events import DynamicOutput, Output, TypeCheck from dagster._core.types.builtin_config_schemas import BuiltinSchemas class _String(BuiltinScalarDagsterType): def __init__(self): super(_String, self).__init__(name='String', loader=BuiltinSchemas.STRING_INPUT, type_check_fn=se...
class _String(BuiltinScalarDagsterType): def __init__(self): pass def type_check_scalar_value(self, value: object) -> TypeCheck: pass
3
0
5
0
5
0
1
0
1
4
1
0
2
1
2
26
11
1
10
4
7
0
5
3
2
1
2
0
2
21,974
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/loadable_target_origin.py
dagster._core.types.loadable_target_origin.LoadableTargetOrigin
from dagster._serdes import whitelist_for_serdes from dagster._core.errors import DagsterInvariantViolationError from dagster_shared.record import LegacyNamedTupleMixin, record, as_dict from typing import Iterator, Optional, Sequence @whitelist_for_serdes(skip_when_none_fields={'autoload_defs_module_name'}) @record cl...
@whitelist_for_serdes(skip_when_none_fields={'autoload_defs_module_name'}) @record class LoadableTargetOrigin(LegacyNamedTupleMixin): def get_cli_args(self) -> Sequence[str]: pass @staticmethod def get_cli_args(self) -> Sequence[str]: pass @property def as_dict(self) -> dict: pa...
8
0
10
0
10
0
3
0
1
3
0
0
3
0
4
4
57
4
53
29
26
0
13
7
8
6
1
1
10
21,975
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/python_dict.py
dagster._core.types.python_dict.DagsterDictApi
import dagster._check as check class DagsterDictApi: def __getitem__(self, *args): check.param_invariant(len(args[0]) == 2, 'args', 'Must be two parameters') return create_typed_runtime_dict(args[0][0], args[0][1])
class DagsterDictApi: def __getitem__(self, *args): pass
2
0
3
0
3
0
1
0
0
0
0
0
1
0
1
1
4
0
4
2
2
0
4
2
2
1
0
0
1
21,976
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/python_dict.py
dagster._core.types.python_dict.TypedDictLoader
from dagster._core.types.dagster_type import DagsterType, PythonObjectDagsterType, String, resolve_dagster_type import dagster._check as check from dagster._core.types.config_schema import DagsterTypeLoader, dagster_type_loader import typing class TypedDictLoader(DagsterTypeLoader): def __init__(self, key_dagster...
class TypedDictLoader(DagsterTypeLoader): def __init__(self, key_dagster_type, value_dagster_type): pass @property def schema_type(self): pass def construct_from_config_value(self, context, config_value): pass
5
0
14
1
12
1
2
0.11
1
3
2
0
3
3
3
27
46
5
37
12
31
4
19
11
14
2
5
1
5
21,977
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/python_dict.py
dagster._core.types.python_dict._TypedPythonDict
from dagster._core.types.dagster_type import DagsterType, PythonObjectDagsterType, String, resolve_dagster_type import dagster._check as check import typing class _TypedPythonDict(DagsterType): def __init__(self, key_type, value_type): self.key_type = check.inst_param(key_type, 'key_type', DagsterType) ...
class _TypedPythonDict(DagsterType): def __init__(self, key_type, value_type): pass def type_check_method(self, context, value): pass @property def display_name(self): pass @property def inner_types(self): pass @property def type_param_keys(self): ...
9
0
9
1
8
0
2
0.05
1
5
2
0
5
2
5
26
51
7
43
16
33
2
24
13
17
5
1
2
10
21,978
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/python_set.py
dagster._core.types.python_set.DagsterSetApi
class DagsterSetApi: def __getitem__(self, inner_type): return create_typed_runtime_set(inner_type)
class DagsterSetApi: def __getitem__(self, inner_type): pass
2
0
2
0
2
0
1
0
0
0
0
0
1
0
1
1
3
0
3
2
1
0
3
2
1
1
0
0
1
21,979
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/python_set.py
dagster._core.types.python_set.TypedSetLoader
import dagster._check as check from dagster._core.types.config_schema import DagsterTypeLoader from dagster._core.types.dagster_type import DagsterType, DagsterTypeKind, PythonObjectDagsterType, resolve_dagster_type from dagster._config import Array class TypedSetLoader(DagsterTypeLoader): def __init__(self, item...
class TypedSetLoader(DagsterTypeLoader): def __init__(self, item_dagster_type): pass @property def schema_type(self): pass def construct_from_config_value(self, context, config_value): pass
5
0
5
0
5
0
1
0
1
2
1
0
3
1
3
27
19
2
17
8
12
0
10
7
6
2
5
1
4
21,980
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/python_set.py
dagster._core.types.python_set._TypedPythonSet
from dagster._core.types.dagster_type import DagsterType, DagsterTypeKind, PythonObjectDagsterType, resolve_dagster_type import typing class _TypedPythonSet(DagsterType): def __init__(self, item_dagster_type): self.item_type = item_dagster_type super(_TypedPythonSet, self).__init__(key=f'TypedPyth...
class _TypedPythonSet(DagsterType): def __init__(self, item_dagster_type): pass def type_check_method(self, context, value): pass @property def display_name(self): pass @property def inner_types(self): pass @property def type_param_keys(self): p...
9
0
6
1
6
0
2
0
1
5
2
0
5
1
5
26
40
7
33
13
23
0
19
10
12
4
1
2
9
21,981
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/python_tuple.py
dagster._core.types.python_tuple.DagsterTupleApi
import dagster._check as check class DagsterTupleApi: def __getitem__(self, tuple_types): check.not_none_param(tuple_types, 'tuple_types') if isinstance(tuple_types, tuple): return create_typed_tuple(*tuple_types) else: return create_typed_tuple(tuple_types)
class DagsterTupleApi: def __getitem__(self, tuple_types): pass
2
0
6
0
6
0
2
0
0
1
0
0
1
0
1
1
7
0
7
2
5
0
6
2
4
2
0
1
2
21,982
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/python_tuple.py
dagster._core.types.python_tuple.TypedTupleDagsterTypeLoader
from dagster._config import Array, ConfigAnyInstance from dagster._core.types.config_schema import DagsterTypeLoader import dagster._check as check from dagster._core.types.dagster_type import DagsterType, DagsterTypeKind, PythonObjectDagsterType, resolve_dagster_type class TypedTupleDagsterTypeLoader(DagsterTypeLoade...
class TypedTupleDagsterTypeLoader(DagsterTypeLoader): def __init__(self, dagster_types): pass @property def schema_type(self): pass def construct_from_config_value(self, context, config_value): pass
5
0
5
0
5
0
1
0.06
1
3
1
0
3
1
3
27
19
2
17
6
12
1
7
5
3
1
5
0
3
21,983
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/types/python_tuple.py
dagster._core.types.python_tuple._TypedPythonTuple
import typing from dagster._core.types.dagster_type import DagsterType, DagsterTypeKind, PythonObjectDagsterType, resolve_dagster_type class _TypedPythonTuple(DagsterType): def __init__(self, dagster_types): all_have_input_configs = all((dagster_type.loader for dagster_type in dagster_types)) self...
class _TypedPythonTuple(DagsterType): def __init__(self, dagster_types): pass def type_check_method(self, context, value): pass @property def display_name(self): pass @property def inner_types(self): pass @property def type_param_keys(self): pas...
9
0
10
1
9
0
2
0.02
1
7
2
0
5
1
5
26
59
8
51
17
41
1
26
14
19
5
1
2
11
21,984
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/utils.py
dagster._core.utils.FuturesAwareThreadPoolExecutor
from typing import AbstractSet, Any, Callable, Final, Optional, TypedDict, TypeVar, Union, cast from concurrent.futures import Future, ThreadPoolExecutor, TimeoutError from weakref import WeakSet class FuturesAwareThreadPoolExecutor(ThreadPoolExecutor): def __init__(self, max_workers: Optional[int]=None, thread_n...
class FuturesAwareThreadPoolExecutor(ThreadPoolExecutor): def __init__(self, max_workers: Optional[int]=None, thread_name_prefix: str='', initializer: Any=None, initargs: tuple[Any, ...]=()) -> None: pass def submit(self, fn, *args, **kwargs) -> Future: pass @property def max_workers(...
12
0
4
0
4
0
1
0.06
1
8
1
1
7
1
7
7
40
6
32
21
14
2
18
10
10
1
1
0
7
21,985
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/utils.py
dagster._core.utils.InheritContextThreadPoolExecutor
from contextvars import copy_context class InheritContextThreadPoolExecutor(FuturesAwareThreadPoolExecutor): """A ThreadPoolExecutor that copies over contextvars at submit time.""" def submit(self, fn, *args, **kwargs): ctx = copy_context() return super().submit(ctx.run, fn, *args, **kwargs)
class InheritContextThreadPoolExecutor(FuturesAwareThreadPoolExecutor): '''A ThreadPoolExecutor that copies over contextvars at submit time.''' def submit(self, fn, *args, **kwargs): pass
2
1
3
0
3
0
1
0.25
1
1
0
0
1
0
1
8
6
1
4
3
2
1
4
3
2
1
2
0
1
21,986
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/utils.py
dagster._core.utils.RequestUtilizationMetrics
from typing import AbstractSet, Any, Callable, Final, Optional, TypedDict, TypeVar, Union, cast class RequestUtilizationMetrics(TypedDict): """A dict of utilization metrics for a threadpool executor. We use generic language in case we use this metrics in a scenario where we switch away from a threadpool executor a...
class RequestUtilizationMetrics(TypedDict): '''A dict of utilization metrics for a threadpool executor. We use generic language in case we use this metrics in a scenario where we switch away from a threadpool executor at a later time.''' pass
1
1
0
0
0
0
0
0.25
1
0
0
0
0
0
0
0
6
1
4
1
3
1
4
1
3
0
1
0
0
21,987
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/autodiscovery.py
dagster._core.workspace.autodiscovery.LoadableTarget
from typing import Callable, NamedTuple, Optional, Union class LoadableTarget(NamedTuple): attribute: str target_definition: object
class LoadableTarget(NamedTuple): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
21,988
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/context.py
dagster._core.workspace.context.BaseWorkspaceRequestContext
from dagster._core.definitions.assets.graph.remote_asset_graph import RemoteAssetGraph, RemoteRepositoryAssetNode from dagster._core.loader import LoadingContext from dagster._utils.caching_instance_queryer import CachingInstanceQueryer from dagster._core.definitions.data_version import CachingStaleStatusResolver from ...
class BaseWorkspaceRequestContext(LoadingContext): '''This class is a request-scoped object that stores (1) a reference to all repository locations that exist on the `IWorkspaceProcessContext` at the start of the request and (2) a snapshot of the workspace at the start of the request. This object is ne...
81
1
6
0
5
0
1
0.06
1
25
17
1
51
0
51
51
381
69
295
150
173
17
161
75
109
4
1
2
70
21,989
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/context.py
dagster._core.workspace.context.IWorkspaceProcessContext
from typing_extensions import Self from dagster._core.instance import DagsterInstance from typing import TYPE_CHECKING, AbstractSet, Any, Optional, TypeVar, Union from abc import ABC, abstractmethod class IWorkspaceProcessContext(ABC): """Class that stores process-scoped information about a webserver session. ...
class IWorkspaceProcessContext(ABC): '''Class that stores process-scoped information about a webserver session. In most cases, you will want to create a `BaseWorkspaceRequestContext` to create a request-scoped object. ''' @abstractmethod def create_request_context(self, source: Optional[Any]=No...
18
4
3
0
2
1
1
0.46
1
4
1
2
9
0
9
29
48
10
26
16
8
12
18
10
8
1
4
0
9
21,990
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/context.py
dagster._core.workspace.context.WorkspaceProcessContext
import threading from contextlib import ExitStack from typing_extensions import Self import logging from dagster._time import get_current_timestamp from dagster._core.workspace.permissions import PermissionResult, get_location_scoped_user_permissions, get_user_permissions from dagster._utils.error import SerializableEr...
class WorkspaceProcessContext(IWorkspaceProcessContext): '''Process-scoped object that tracks the state of a workspace. 1. Maintains an update-to-date dictionary of repository locations 2. Creates a `WorkspaceRequestContext` to be the workspace for each request 3. Runs watch thread processes that monit...
39
2
11
1
9
1
2
0.09
1
26
13
0
30
13
30
59
363
51
288
87
239
25
150
70
118
7
5
3
50
21,991
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/context.py
dagster._core.workspace.context.WorkspaceRequestContext
import os from typing import TYPE_CHECKING, AbstractSet, Any, Optional, TypeVar, Union from collections.abc import Mapping, Sequence from dagster._core.workspace.workspace import CodeLocationEntry, CodeLocationLoadStatus, CodeLocationStatusEntry, CurrentWorkspace, location_status_from_location_entry from dagster._utils...
class WorkspaceRequestContext(BaseWorkspaceRequestContext): def __init__(self, instance: DagsterInstance, current_workspace: CurrentWorkspace, process_context: 'IWorkspaceProcessContext', version: Optional[str], source: Optional[object], read_only: bool, read_only_locations: Optional[Mapping[str, bool]]=None): ...
26
1
5
0
4
0
1
0.04
1
14
5
0
16
9
16
67
97
15
79
43
46
3
47
27
30
2
2
1
17
21,992
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/load_target.py
dagster._core.workspace.load_target.CompositeTarget
from dagster_shared.record import record from collections.abc import Sequence @record(kw_only=False) class CompositeTarget(WorkspaceLoadTarget): targets: Sequence[WorkspaceLoadTarget] def create_origins(self): origins = [] for target in self.targets: origins += target.create_origin...
@record(kw_only=False) class CompositeTarget(WorkspaceLoadTarget): def create_origins(self): pass
3
0
5
0
5
0
2
0
2
0
0
0
1
0
1
22
9
0
9
7
4
0
6
4
4
2
5
1
2
21,993
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/load_target.py
dagster._core.workspace.load_target.EmptyWorkspaceTarget
from dagster._core.remote_origin import CodeLocationOrigin, GrpcServerCodeLocationOrigin, InProcessCodeLocationOrigin, ManagedGrpcPythonEnvCodeLocationOrigin from collections.abc import Sequence from dagster_shared.record import record @record class EmptyWorkspaceTarget(WorkspaceLoadTarget): def create_origins(se...
@record class EmptyWorkspaceTarget(WorkspaceLoadTarget): def create_origins(self) -> Sequence[CodeLocationOrigin]: pass
3
0
2
0
2
0
1
0
2
1
0
0
1
0
1
22
3
0
3
2
1
0
3
2
1
1
5
0
1
21,994
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/load_target.py
dagster._core.workspace.load_target.GrpcServerTarget
from dagster._core.remote_origin import CodeLocationOrigin, GrpcServerCodeLocationOrigin, InProcessCodeLocationOrigin, ManagedGrpcPythonEnvCodeLocationOrigin from typing import Optional, Union, cast from dagster_shared.record import record from collections.abc import Sequence @record(kw_only=False) class GrpcServerTar...
@record(kw_only=False) class GrpcServerTarget(WorkspaceLoadTarget): def create_origins(self) -> Sequence[GrpcServerCodeLocationOrigin]: pass
3
0
9
0
9
0
1
0
2
1
0
0
1
3
1
22
21
0
21
16
8
0
3
2
1
1
5
0
1
21,995
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/load_target.py
dagster._core.workspace.load_target.InProcessWorkspaceLoadTarget
from typing import Optional, Union, cast from collections.abc import Sequence from dagster._core.remote_origin import CodeLocationOrigin, GrpcServerCodeLocationOrigin, InProcessCodeLocationOrigin, ManagedGrpcPythonEnvCodeLocationOrigin class InProcessWorkspaceLoadTarget(WorkspaceLoadTarget): """A workspace load ta...
class InProcessWorkspaceLoadTarget(WorkspaceLoadTarget): '''A workspace load target that is in-process and does not spin up a gRPC server.''' def __init__(self, origin: Union[InProcessCodeLocationOrigin, Sequence[InProcessCodeLocationOrigin]]): pass def create_origins(self) -> Sequence[InProcessC...
3
1
5
0
5
0
2
0.1
1
2
0
0
2
1
2
23
13
2
10
6
5
1
5
4
2
2
5
0
3
21,996
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/load_target.py
dagster._core.workspace.load_target.ModuleTarget
from dagster_shared.record import record from typing import Optional, Union, cast from dagster._core.remote_origin import CodeLocationOrigin, GrpcServerCodeLocationOrigin, InProcessCodeLocationOrigin, ManagedGrpcPythonEnvCodeLocationOrigin from collections.abc import Sequence from dagster._core.workspace.load import lo...
@record(kw_only=False) class ModuleTarget(WorkspaceLoadTarget): def create_origins(self) -> Sequence[ManagedGrpcPythonEnvCodeLocationOrigin]: pass
3
0
9
0
9
0
1
0
2
1
0
0
1
3
1
22
21
0
21
16
8
0
3
2
1
1
5
0
1
21,997
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/load_target.py
dagster._core.workspace.load_target.PackageTarget
from typing import Optional, Union, cast from collections.abc import Sequence from dagster_shared.record import record from dagster._core.remote_origin import CodeLocationOrigin, GrpcServerCodeLocationOrigin, InProcessCodeLocationOrigin, ManagedGrpcPythonEnvCodeLocationOrigin from dagster._core.workspace.load import lo...
@record(kw_only=False) class PackageTarget(WorkspaceLoadTarget): def create_origins(self) -> Sequence[ManagedGrpcPythonEnvCodeLocationOrigin]: pass
3
0
9
0
9
0
1
0
2
1
0
0
1
3
1
22
21
0
21
16
8
0
3
2
1
1
5
0
1
21,998
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/load_target.py
dagster._core.workspace.load_target.PyProjectFileTarget
from collections.abc import Sequence from dagster_shared.record import record from dagster._core.remote_origin import CodeLocationOrigin, GrpcServerCodeLocationOrigin, InProcessCodeLocationOrigin, ManagedGrpcPythonEnvCodeLocationOrigin @record(kw_only=False) class PyProjectFileTarget(WorkspaceLoadTarget): path: st...
@record(kw_only=False) class PyProjectFileTarget(WorkspaceLoadTarget): def create_origins(self) -> Sequence[CodeLocationOrigin]: pass
3
0
2
0
2
0
1
0
2
1
0
0
1
0
1
22
3
0
3
2
1
0
3
2
1
1
5
0
1
21,999
dagster-io/dagster
dagster-io_dagster/python_modules/dagster/dagster/_core/workspace/load_target.py
dagster._core.workspace.load_target.PythonFileTarget
from dagster._core.workspace.load import location_origin_from_autoload_defs_module_name, location_origin_from_module_name, location_origin_from_package_name, location_origin_from_python_file, location_origins_from_yaml_paths from dagster._core.remote_origin import CodeLocationOrigin, GrpcServerCodeLocationOrigin, InPro...
@record(kw_only=False) class PythonFileTarget(WorkspaceLoadTarget): def create_origins(self) -> Sequence[ManagedGrpcPythonEnvCodeLocationOrigin]: pass
3
0
9
0
9
0
1
0
2
1
0
0
1
3
1
22
21
0
21
16
8
0
3
2
1
1
5
0
1