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
23,000
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.DataFrameWithMetadataException
class DataFrameWithMetadataException(ConstraintWithMetadataException): def __init__(self, constraint_name, constraint_description, expectation, actual): super().__init__(constraint_name, constraint_description, expectation, 'a malformed dataframe', actual)
class DataFrameWithMetadataException(ConstraintWithMetadataException): def __init__(self, constraint_name, constraint_description, expectation, actual): pass
2
0
4
0
4
0
1
0
1
1
0
0
1
0
1
15
5
0
5
2
3
0
3
2
1
1
4
0
1
23,001
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.InRangeColumnConstraint
from dagster import DagsterType, TypeCheck, _check as check from datetime import datetime class InRangeColumnConstraint(ColumnConstraint): """A column constraint that ensures all values in a pandas column are between the lower and upper bound [inclusive]. Args: min_value (Union[int, float, datetim...
class InRangeColumnConstraint(ColumnConstraint): '''A column constraint that ensures all values in a pandas column are between the lower and upper bound [inclusive]. Args: min_value (Union[int, float, datetime.datetime]): The lower bound. max_value (Union[int, float, datetime.datetime]): Th...
3
1
10
0
10
0
2
0.38
1
5
1
0
2
5
2
6
32
3
21
10
18
8
13
8
10
3
2
1
4
23,002
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.MaxValueColumnConstraint
from dagster import DagsterType, TypeCheck, _check as check from datetime import datetime class MaxValueColumnConstraint(ColumnConstraint): """A column constraint that ensures all values in a pandas column are less than the provided upper bound [inclusive]. Args: max_value (Union[int, float, datet...
class MaxValueColumnConstraint(ColumnConstraint): '''A column constraint that ensures all values in a pandas column are less than the provided upper bound [inclusive]. Args: max_value (Union[int, float, datetime.datetime]): The upper bound. ignore_missing_vals (bool): If true, this constrai...
3
1
10
0
10
0
2
0.3
1
5
1
0
2
4
2
6
29
3
20
9
17
6
12
7
9
3
2
1
4
23,003
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.MinValueColumnConstraint
from datetime import datetime from dagster import DagsterType, TypeCheck, _check as check class MinValueColumnConstraint(ColumnConstraint): """A column constraint that ensures all values in a pandas column are greater than the provided lower bound [inclusive]. Args: min_value (Union[int, float, da...
class MinValueColumnConstraint(ColumnConstraint): '''A column constraint that ensures all values in a pandas column are greater than the provided lower bound [inclusive]. Args: min_value (Union[int, float, datetime.datetime]): The lower bound. ignore_missing_vals (bool): If true, this const...
3
1
10
0
10
0
2
0.3
1
5
1
0
2
4
2
6
29
3
20
9
17
6
12
7
9
3
2
1
4
23,004
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.MultiAggregateConstraintWithMetadata
from dagster._annotations import beta @beta class MultiAggregateConstraintWithMetadata(MultiColumnConstraintWithMetadata): """This class is similar to multicolumn, but takes in functions that operate on the whole column at once rather than ones that operate on each value -- consider this similar to the dif...
@beta class MultiAggregateConstraintWithMetadata(MultiColumnConstraintWithMetadata): '''This class is similar to multicolumn, but takes in functions that operate on the whole column at once rather than ones that operate on each value -- consider this similar to the difference between apply-map and apply agg...
3
1
16
0
16
1
1
1
1
2
1
0
1
0
1
7
35
2
17
9
8
17
3
2
1
1
3
0
1
23,005
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.MultiColumnConstraintWithMetadata
from dagster._annotations import beta from collections import defaultdict from pandas import DataFrame from dagster import DagsterType, TypeCheck, _check as check @beta class MultiColumnConstraintWithMetadata(ColumnConstraintWithMetadata): """This class is useful for constructing more complicated relationships bet...
@beta class MultiColumnConstraintWithMetadata(ColumnConstraintWithMetadata): '''This class is useful for constructing more complicated relationships between columns and expectations -- i.e. you want some validations on column A, others on column B, etc. This lets you package up the metadata neatly, and also...
5
1
31
1
30
2
4
0.38
1
4
1
1
2
1
2
6
80
5
56
23
44
21
34
15
30
11
2
6
13
23,006
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.MultiConstraintWithMetadata
from collections import defaultdict from dagster import DagsterType, TypeCheck, _check as check from dagster._annotations import beta @beta class MultiConstraintWithMetadata(ConstraintWithMetadata): """Use this class if you have multiple constraints to check over the entire dataframe. Args: descriptio...
@beta class MultiConstraintWithMetadata(ConstraintWithMetadata): '''Use this class if you have multiple constraints to check over the entire dataframe. Args: description (str): description of the constraint validation_fn_arr(List[Callable[[DataFrame], Tuple[bool, dict[str, Union[dict,list, str, ...
4
1
18
1
17
0
3
0.5
1
3
0
0
1
0
1
4
43
4
26
15
16
13
13
8
10
4
1
3
5
23,007
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.NonNullableColumnConstraint
class NonNullableColumnConstraint(ColumnConstraint): """A column constraint that ensures all values in a pandas column are not null.""" def __init__(self): description = 'No Null values allowed.' super().__init__(error_description=description, markdown_description=description) def validate...
class NonNullableColumnConstraint(ColumnConstraint): '''A column constraint that ensures all values in a pandas column are not null.''' def __init__(self): pass def validate(self, dataframe, column_name): pass
3
1
6
0
6
0
2
0.08
1
2
1
0
2
2
2
6
16
2
13
7
10
1
8
5
5
2
2
1
3
23,008
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.RowCountConstraint
from pandas import DataFrame from dagster._annotations import beta from dagster import DagsterType, TypeCheck, _check as check @beta class RowCountConstraint(DataFrameConstraint): """A dataframe constraint that validates the expected count of rows. Args: num_allowed_rows (int): The number of allowed r...
@beta class RowCountConstraint(DataFrameConstraint): '''A dataframe constraint that validates the expected count of rows. Args: num_allowed_rows (int): The number of allowed rows in your dataframe. error_tolerance (Optional[int]): The acceptable threshold if you are not completely certain. Defau...
4
1
11
1
10
0
2
0.24
1
3
1
0
2
3
2
5
30
4
21
7
18
5
12
6
9
2
2
1
4
23,009
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.StrictColumnsConstraint
from dagster._annotations import beta from dagster import DagsterType, TypeCheck, _check as check from pandas import DataFrame @beta class StrictColumnsConstraint(DataFrameConstraint): """A dataframe constraint that validates column existence and ordering. Args: strict_column_list (List[str]): The exa...
@beta class StrictColumnsConstraint(DataFrameConstraint): '''A dataframe constraint that validates column existence and ordering. Args: strict_column_list (List[str]): The exact list of columns that your dataframe must have. enforce_ordering (Optional[bool]): If true, will enforce that the order...
4
1
14
0
14
0
4
0.21
1
4
1
0
2
3
2
5
37
3
28
9
25
6
17
8
14
5
2
2
7
23,010
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.StrictColumnsWithMetadata
from dagster import DagsterType, TypeCheck, _check as check from dagster._annotations import beta @beta class StrictColumnsWithMetadata(ConstraintWithMetadata): def __init__(self, column_list, enforce_ordering=False, raise_or_typecheck=True, name=None): self.enforce_ordering = check.bool_param(enforce_ord...
@beta class StrictColumnsWithMetadata(ConstraintWithMetadata): def __init__(self, column_list, enforce_ordering=False, raise_or_typecheck=True, name=None): pass def validation_fcn(inframe): pass
4
0
26
1
25
0
3
0
1
5
1
0
1
2
1
4
34
2
32
9
29
0
20
9
17
4
1
3
6
23,011
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/constraints.py
dagster_pandas.constraints.UniqueColumnConstraint
from dagster import DagsterType, TypeCheck, _check as check class UniqueColumnConstraint(ColumnConstraint): """A column constraint that ensures all values in a pandas column are unique. Args: ignore_missing_vals (bool): If true, this constraint will enforce the constraint on non missing values. ""...
class UniqueColumnConstraint(ColumnConstraint): '''A column constraint that ensures all values in a pandas column are unique. Args: ignore_missing_vals (bool): If true, this constraint will enforce the constraint on non missing values. ''' def __init__(self, ignore_missing_vals): pass ...
3
1
8
0
8
0
2
0.24
1
2
1
0
2
3
2
6
24
3
17
9
14
4
12
7
9
3
2
1
4
23,012
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pandas/dagster_pandas/validation.py
dagster_pandas.validation.PandasColumn
from dagster._annotations import beta from dagster_pandas.constraints import CategoricalColumnConstraint, ColumnDTypeFnConstraint, ColumnDTypeInSetConstraint, Constraint, ConstraintViolationException, DataFrameConstraint, InRangeColumnConstraint, NonNullableColumnConstraint, UniqueColumnConstraint from pandas import Da...
@beta class PandasColumn: '''The main API for expressing column level schemas and constraints for your custom dataframe types. Args: name (str): Name of the column. This must match up with the column name in the dataframe you expect to receive. is_required (Optional[bool]): Flag ...
20
9
29
1
17
12
2
0.69
0
9
6
0
2
3
10
10
324
20
180
69
116
125
39
16
28
6
0
2
19
23,013
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-papertrail/dagster_papertrail/loggers.py
dagster_papertrail.loggers.ContextFilter
import logging import socket class ContextFilter(logging.Filter): hostname = socket.gethostname() def filter(self, record): record.hostname = ContextFilter.hostname return True
class ContextFilter(logging.Filter): def filter(self, record): pass
2
0
3
0
3
0
1
0
1
0
0
0
1
0
1
3
6
1
5
3
3
0
5
3
3
1
2
0
1
23,014
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.DagsterPipesError
class DagsterPipesError(Exception): pass
class DagsterPipesError(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
23,015
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.DagsterPipesWarning
class DagsterPipesWarning(Warning): pass
class DagsterPipesWarning(Warning): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
11
2
0
2
1
1
0
2
1
1
0
4
0
0
23,016
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.ExcThread
import threading from queue import Queue import sys import traceback class ExcThread(threading.Thread): """Utility class which captures exceptions and writes them to stderr after the thread has exited.""" def run(self, *args, **kwargs): self.exceptions = Queue() try: super().run(*a...
class ExcThread(threading.Thread): '''Utility class which captures exceptions and writes them to stderr after the thread has exited.''' def run(self, *args, **kwargs): pass def join(self, *args, **kwargs): pass
3
1
7
1
6
1
2
0.17
1
3
0
0
2
1
2
27
17
4
12
5
9
2
12
5
9
2
1
1
4
23,017
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesBlobStoreMessageWriter
from abc import ABC, abstractmethod from contextlib import ExitStack, contextmanager, nullcontext from collections.abc import Iterable, Iterator, Mapping, Sequence class PipesBlobStoreMessageWriter(PipesMessageWriter[T_BlobStoreMessageWriterChannel]): INCLUDE_STDIO_IN_MESSAGES_KEY: str = 'include_stdio_in_messages...
class PipesBlobStoreMessageWriter(PipesMessageWriter[T_BlobStoreMessageWriterChannel]): def __init__(self, *, interval: float=10): pass @contextmanager def open(self, params: PipesParams) -> Iterator[T_BlobStoreMessageWriterChannel]: '''Construct and yield a :py:class:`PipesBlobStoreMessag...
6
1
9
1
5
3
1
0.45
1
5
2
4
3
2
3
28
37
8
20
12
15
9
16
10
12
2
5
2
4
23,018
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesBlobStoreMessageWriterChannel
from collections.abc import Iterable, Iterator, Mapping, Sequence from contextlib import ExitStack, contextmanager, nullcontext from threading import Event, Thread from queue import Queue import json import time from io import StringIO, TextIOWrapper from abc import ABC, abstractmethod import datetime class PipesBlobS...
class PipesBlobStoreMessageWriterChannel(PipesMessageWriterChannel): '''Message writer channel that periodically uploads message chunks to some blob store endpoint.''' def __init__(self, *, interval: float=10): pass def write_message(self, message: PipesMessage) -> None: pass def flu...
9
1
6
0
6
0
2
0.02
1
9
1
4
6
3
6
27
48
6
41
18
33
1
36
16
29
5
5
3
12
23,019
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesBufferedFilesystemMessageWriterChannel
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args import os class PipesBufferedFilesystemMessageWriterChannel(PipesBlobStoreMessageWriterChannel): """Message writer channel that periodically writes messag...
class PipesBufferedFilesystemMessageWriterChannel(PipesBlobStoreMessageWriterChannel): '''Message writer channel that periodically writes message chunks to an endpoint mounted on the filesystem. Args: interval (float): interval in seconds between chunk uploads ''' def __init__(self, path: str,...
3
1
4
0
4
0
1
0.5
1
5
0
0
2
1
2
29
15
3
8
6
5
4
8
5
5
1
6
1
2
23,020
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesBufferedStreamMessageWriterChannel
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args import json class PipesBufferedStreamMessageWriterChannel(PipesMessageWriterChannel): """Message writer channel that buffers messages and then writes them...
class PipesBufferedStreamMessageWriterChannel(PipesMessageWriterChannel): '''Message writer channel that buffers messages and then writes them all out to a `TextIO` stream on close. ''' def __init__(self, stream: TextIO): pass def write_message(self, message: PipesMessage) -> None: ...
4
1
3
0
3
0
1
0.3
1
2
1
0
3
2
3
24
16
3
10
7
6
3
10
7
6
2
5
1
4
23,021
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesCliArgsParamsLoader
import sys class PipesCliArgsParamsLoader(PipesParamsLoader): """Params loader that extracts params from known CLI arguments.""" def __init__(self): self.parser = DAGSTER_PIPES_CLI_PARSER def is_dagster_pipes_process(self) -> bool: return DAGSTER_PIPES_CONTEXT_CLI_ARGUMENT in sys.argv ...
class PipesCliArgsParamsLoader(PipesParamsLoader): '''Params loader that extracts params from known CLI arguments.''' def __init__(self): pass def is_dagster_pipes_process(self) -> bool: pass def load_context_params(self) -> PipesParams: pass def load_messages_params(sel...
5
1
3
0
3
0
1
0.18
1
1
0
0
4
1
4
27
17
4
11
8
6
2
11
8
6
1
5
0
4
23,022
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesContext
import traceback from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args from contextlib import ExitStack, contextmanager, nullcontext from traceback import TracebackException from collections.abc import Iterable, I...
class PipesContext: '''The context for a Dagster Pipes process. This class is analogous to :py:class:`~dagster.OpExecutionContext` on the Dagster side of the Pipes connection. It provides access to information such as the asset key(s) and partition key(s) in scope for the current step. It also provides...
51
26
9
0
6
3
1
0.5
0
19
8
0
27
6
30
30
331
40
194
92
123
97
105
52
74
3
0
1
38
23,023
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesContextData
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args from collections.abc import Iterable, Iterator, Mapping, Sequence class PipesContextData(TypedDict): """The serializable data passed from the orchestratio...
class PipesContextData(TypedDict): '''The serializable data passed from the orchestration process to the external process. This gets wrapped in a :py:class:`PipesContext`. ''' pass
1
1
0
0
0
0
0
0.27
1
0
0
0
0
0
0
0
15
1
11
1
10
3
11
1
10
0
1
0
0
23,024
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesContextLoader
from contextlib import ExitStack, contextmanager, nullcontext from collections.abc import Iterable, Iterator, Mapping, Sequence from abc import ABC, abstractmethod class PipesContextLoader(ABC): @abstractmethod @contextmanager def load_context(self, params: PipesParams) -> Iterator[PipesContextData]: ...
class PipesContextLoader(ABC): @abstractmethod @contextmanager def load_context(self, params: PipesParams) -> Iterator[PipesContextData]: '''A `@contextmanager` that loads context data injected by the orchestration process. This method should read and yield the context data from the locati...
4
1
13
3
1
9
1
2.25
1
2
1
7
1
0
1
21
16
3
4
3
0
9
2
2
0
1
4
0
1
23,025
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesDataProvenance
from collections.abc import Iterable, Iterator, Mapping, Sequence from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesDataProvenance(TypedDict): """Provenance information for an asset.""" cod...
class PipesDataProvenance(TypedDict): '''Provenance information for an asset.''' 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
23,026
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesDbfsContextLoader
import json import os from contextlib import ExitStack, contextmanager, nullcontext from collections.abc import Iterable, Iterator, Mapping, Sequence class PipesDbfsContextLoader(PipesContextLoader): """Context loader that reads context from a JSON file on DBFS.""" @contextmanager def load_context(self, p...
class PipesDbfsContextLoader(PipesContextLoader): '''Context loader that reads context from a JSON file on DBFS.''' @contextmanager def load_context(self, params: PipesParams) -> Iterator[PipesContextData]: pass
3
1
5
0
5
0
1
0.14
1
3
1
0
1
0
1
22
9
1
7
6
4
1
6
4
4
1
5
1
1
23,027
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesDbfsMessageWriter
import os import warnings class PipesDbfsMessageWriter(PipesBlobStoreMessageWriter): """Message writer that writes messages by periodically writing message chunks to a directory on DBFS.""" def make_channel(self, params: PipesParams) -> 'PipesBufferedFilesystemMessageWriterChannel': unmounted_path = _...
class PipesDbfsMessageWriter(PipesBlobStoreMessageWriter): '''Message writer that writes messages by periodically writing message chunks to a directory on DBFS.''' def make_channel(self, params: PipesParams) -> 'PipesBufferedFilesystemMessageWriterChannel': pass def get_opened_extras(self) -> Pip...
3
1
25
1
19
6
3
0.31
1
5
3
0
2
0
2
30
54
3
39
13
31
12
22
9
17
5
6
2
6
23,028
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesDefaultContextLoader
import json from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args from collections.abc import Iterable, Iterator, Mapping, Sequence from contextlib import ExitStack, contextmanager, nullcontext class PipesDefault...
class PipesDefaultContextLoader(PipesContextLoader): '''Context loader that loads context data from either a file or directly from the provided params. The location of the context data is configured by the params received by the loader. If the params include a key `path`, then the context data will be load...
3
1
14
0
14
0
3
0.33
1
5
2
0
1
0
1
22
27
3
18
8
15
6
12
6
10
3
5
2
3
23,029
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesDefaultLogWriter
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesDefaultLogWriter(PipesStdioLogWriter): """A log writer that writes stdout and stderr via the message writer channel.""" def __init__(self,...
class PipesDefaultLogWriter(PipesStdioLogWriter): '''A log writer that writes stdout and stderr via the message writer channel.''' def __init__(self, message_channel: PipesMessageWriterChannel, interval: float=1): pass @property def message_channel(self) -> PipesMessageWriterChannel: p...
5
1
6
0
6
0
1
0.05
1
5
2
0
3
2
3
30
24
3
20
9
13
1
11
6
7
2
6
1
4
23,030
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesDefaultLogWriterChannel
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesDefaultLogWriterChannel(PipesStdioLogWriterChannel): """A log writer channel that writes stdout or stderr via the message writer channel.""" ...
class PipesDefaultLogWriterChannel(PipesStdioLogWriterChannel): '''A log writer channel that writes stdout or stderr via the message writer channel.''' def __init__(self, message_channel: PipesMessageWriterChannel, stream: Literal['stdout', 'stderr'], name: str, interval: float): pass def write_c...
3
1
8
0
8
0
1
0.06
1
4
1
0
2
1
2
29
20
2
17
10
8
1
6
4
3
1
6
0
2
23,031
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesDefaultMessageWriter
from contextlib import ExitStack, contextmanager, nullcontext from collections.abc import Iterable, Iterator, Mapping, Sequence import sys class PipesDefaultMessageWriter(PipesMessageWriter): """Message writer that writes messages to either a file or the stdout or stderr stream. The write location is configur...
class PipesDefaultMessageWriter(PipesMessageWriter): '''Message writer that writes messages to either a file or the stdout or stderr stream. The write location is configured by the params received by the writer. If the params include a key `path`, then messages will be written to a file at the specified pa...
3
1
46
6
40
0
9
0.13
1
10
7
0
1
0
1
26
63
9
48
15
45
6
31
14
29
9
5
2
9
23,032
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesEnvVarParamsLoader
import os class PipesEnvVarParamsLoader(PipesMappingParamsLoader): """Params loader that extracts params from environment variables.""" def __init__(self): super().__init__(mapping=os.environ)
class PipesEnvVarParamsLoader(PipesMappingParamsLoader): '''Params loader that extracts params from environment variables.''' def __init__(self): pass
2
1
2
0
2
0
1
0.33
1
1
0
0
1
0
1
28
5
1
3
2
1
1
3
2
1
1
6
0
1
23,033
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesException
from collections.abc import Iterable, Iterator, Mapping, Sequence from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesException(TypedDict): message: str stack: Sequence[str] name: Optiona...
class PipesException(TypedDict): pass
1
0
0
0
0
0
0
0.67
1
0
0
0
0
0
0
0
10
0
6
1
5
4
6
1
5
0
1
0
0
23,034
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesFileMessageWriterChannel
import json class PipesFileMessageWriterChannel(PipesMessageWriterChannel): """Message writer channel that writes one message per line to a file.""" def __init__(self, path: str): self._path = path def write_message(self, message: PipesMessage) -> None: with open(self._path, 'a') as f: ...
class PipesFileMessageWriterChannel(PipesMessageWriterChannel): '''Message writer channel that writes one message per line to a file.''' def __init__(self, path: str): pass def write_message(self, message: PipesMessage) -> None: pass
3
1
3
0
3
0
1
0.17
1
2
1
0
2
1
2
23
9
2
6
5
3
1
6
4
3
1
5
1
2
23,035
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesGCSContextLoader
from collections.abc import Iterable, Iterator, Mapping, Sequence import json from contextlib import ExitStack, contextmanager, nullcontext class PipesGCSContextLoader(PipesContextLoader): """Context loader that reads context from a JSON file on GCS. Args: client (google.cloud.storage.Client): A googl...
class PipesGCSContextLoader(PipesContextLoader): '''Context loader that reads context from a JSON file on GCS. Args: client (google.cloud.storage.Client): A google.cloud.storage.Client object. ''' def __init__(self, client: 'GCSClient'): pass @contextmanager def load_context(se...
4
1
4
0
4
0
1
0.44
1
3
1
0
2
1
2
23
16
3
9
8
5
4
8
7
5
1
5
0
2
23,036
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesGCSMessageWriter
class PipesGCSMessageWriter(PipesBlobStoreMessageWriter): """Message writer that writes messages by periodically writing message chunks to a GCS bucket. Args: client (google.cloud.storage.Client): A google.cloud.storage.Client object. interval (float): interval in seconds between upload chunk u...
class PipesGCSMessageWriter(PipesBlobStoreMessageWriter): '''Message writer that writes messages by periodically writing message chunks to a GCS bucket. Args: client (google.cloud.storage.Client): A google.cloud.storage.Client object. interval (float): interval in seconds between upload chunk up...
3
1
8
0
8
0
1
0.31
1
4
1
0
2
1
2
30
24
3
16
9
10
5
8
6
5
1
6
0
2
23,037
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesGCSMessageWriterChannel
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesGCSMessageWriterChannel(PipesBlobStoreMessageWriterChannel): """Message writer channel for writing messages by periodically writing message chu...
class PipesGCSMessageWriterChannel(PipesBlobStoreMessageWriterChannel): '''Message writer channel for writing messages by periodically writing message chunks to a GCS bucket. Args: client (google.cloud.storage.Client): A google.cloud.storage.Client object. bucket (str): The name of the GCS buck...
3
1
6
1
6
0
2
0.58
1
5
0
0
2
4
2
29
23
4
12
10
7
7
10
8
7
2
6
0
3
23,038
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesLogWriter
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args from collections.abc import Iterable, Iterator, Mapping, Sequence from contextlib import ExitStack, contextmanager, nullcontext from abc import ABC, abstractme...
class PipesLogWriter(ABC, Generic[T_LogChannel]): @abstractmethod @contextmanager def open(self, params: PipesParams) -> Iterator[T_LogChannel]: pass @final def get_opened_payload(self) -> PipesLogWriterOpenedData: pass def get_opened_extras(self) -> PipesExtras: pass
7
0
2
0
2
0
1
0
2
2
1
1
3
0
3
25
13
3
10
7
4
0
8
5
4
1
4
0
3
23,039
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesLogWriterChannel
from collections.abc import Iterable, Iterator, Mapping, Sequence from abc import ABC, abstractmethod from contextlib import ExitStack, contextmanager, nullcontext class PipesLogWriterChannel(ABC): @contextmanager @abstractmethod def capture(self) -> Iterator[None]: ...
class PipesLogWriterChannel(ABC): @contextmanager @abstractmethod def capture(self) -> Iterator[None]: pass
4
0
1
0
1
0
1
0
1
1
0
1
1
0
1
21
4
0
4
3
1
0
3
2
1
1
4
0
1
23,040
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesLogWriterOpenedData
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesLogWriterOpenedData(TypedDict): extras: PipesExtras
class PipesLogWriterOpenedData(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
23,041
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesMappingParamsLoader
from collections.abc import Iterable, Iterator, Mapping, Sequence class PipesMappingParamsLoader(PipesParamsLoader): """Params loader that extracts params from a Mapping provided at init time.""" def __init__(self, mapping: Mapping[str, str]): self._mapping = mapping def is_dagster_pipes_process(...
class PipesMappingParamsLoader(PipesParamsLoader): '''Params loader that extracts params from a Mapping provided at init time.''' def __init__(self, mapping: Mapping[str, str]): pass def is_dagster_pipes_process(self) -> bool: pass def load_context_params(self) -> PipesParams: ...
5
1
3
0
3
0
1
0.18
1
3
0
1
4
1
4
27
17
4
11
8
6
2
11
8
6
1
5
0
4
23,042
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesMessage
from collections.abc import Iterable, Iterator, Mapping, Sequence from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesMessage(TypedDict): """A message sent from the external process to the orches...
class PipesMessage(TypedDict): '''A message sent from the external process to the orchestration process.''' 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
23,043
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesMessageWriter
from collections.abc import Iterable, Iterator, Mapping, Sequence from abc import ABC, abstractmethod from contextlib import ExitStack, contextmanager, nullcontext from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_...
class PipesMessageWriter(ABC, Generic[T_MessageChannel]): @abstractmethod @contextmanager def open(self, params: PipesParams) -> Iterator[T_MessageChannel]: '''A `@contextmanager` that initializes a channel for writing messages back to Dagster. This method should takes the params passed by...
7
3
10
2
2
7
1
2.33
2
2
1
3
3
0
3
25
37
7
9
6
2
21
6
4
2
1
4
0
3
23,044
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesMessageWriterChannel
from abc import ABC, abstractmethod class PipesMessageWriterChannel(ABC): """Object that writes messages back to the Dagster orchestration process.""" @abstractmethod def write_message(self, message: PipesMessage) -> None: """Write a message to the orchestration process. Args: ...
class PipesMessageWriterChannel(ABC): '''Object that writes messages back to the Dagster orchestration process.''' @abstractmethod def write_message(self, message: PipesMessage) -> None: '''Write a message to the orchestration process. Args: message (PipesMessage): The message t...
3
2
6
1
1
4
1
1.67
1
1
1
5
1
0
1
21
10
2
3
3
0
5
2
2
0
1
4
0
1
23,045
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesMetadataValue
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesMetadataValue(TypedDict): type: 'PipesMetadataType' raw_value: PipesMetadataRawValue
class PipesMetadataValue(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
23,046
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesOpenedData
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args from collections.abc import Iterable, Iterator, Mapping, Sequence class PipesOpenedData(TypedDict): """Payload generated on startup of the external-side `...
class PipesOpenedData(TypedDict): '''Payload generated on startup of the external-side `PipesMessageWriter` containing arbitrary information about the external process. ''' pass
1
1
0
0
0
0
0
1.5
1
0
0
0
0
0
0
0
6
1
2
1
1
3
2
1
1
0
1
0
0
23,047
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesParamsLoader
from abc import ABC, abstractmethod class PipesParamsLoader(ABC): """Object that loads params passed from the orchestration process by the context injector and message reader. These params are used to respectively bootstrap the :py:class:`PipesContextLoader` and :py:class:`PipesMessageWriter`. """ ...
null
7
4
3
0
1
2
1
1.29
1
1
0
4
3
0
3
23
19
3
7
7
0
9
4
4
0
1
4
0
3
23,048
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesPartitionKeyRange
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesPartitionKeyRange(TypedDict): """A range of partition keys.""" start: str end: str
class PipesPartitionKeyRange(TypedDict): '''A range of partition keys.''' pass
1
1
0
0
0
0
0
0.33
1
0
0
0
0
0
0
0
5
1
3
1
2
1
3
1
2
0
1
0
0
23,049
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesS3ContextLoader
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args from contextlib import ExitStack, contextmanager, nullcontext from collections.abc import Iterable, Iterator, Mapping, Sequence import json class PipesS3Conte...
class PipesS3ContextLoader(PipesContextLoader): '''Context loader that reads context from a JSON file on S3. Args: client (Any): A boto3.client("s3") object. ''' def __init__(self, client: Any): pass @contextmanager def load_context(self, params: PipesParams) -> Iterator[PipesC...
4
1
4
0
4
0
1
0.44
1
4
1
0
2
1
2
23
16
3
9
8
5
4
8
7
5
1
5
0
2
23,050
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesS3MessageWriter
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesS3MessageWriter(PipesBlobStoreMessageWriter): """Message writer that writes messages by periodically writing message chunks to an S3 bucket. ...
class PipesS3MessageWriter(PipesBlobStoreMessageWriter): '''Message writer that writes messages by periodically writing message chunks to an S3 bucket. Args: client (Any): A boto3.client("s3") object. interval (float): interval in seconds between upload chunk uploads ''' def __init__(s...
3
1
9
0
8
1
1
0.5
1
5
1
0
2
1
2
30
27
3
16
9
10
8
8
6
5
1
6
0
2
23,051
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesS3MessageWriterChannel
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesS3MessageWriterChannel(PipesBlobStoreMessageWriterChannel): """Message writer channel for writing messages by periodically writing message chun...
class PipesS3MessageWriterChannel(PipesBlobStoreMessageWriterChannel): '''Message writer channel for writing messages by periodically writing message chunks to an S3 bucket. Args: client (Any): A boto3.client("s3") object. bucket (str): The name of the S3 bucket to write to. key_prefix ...
3
1
7
0
7
0
2
0.53
1
6
0
0
2
3
2
29
26
3
15
9
10
8
9
7
6
2
6
0
3
23,052
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesStdioFileLogWriter
import os from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesStdioFileLogWriter(PipesStdioLogWriter): LOGS_DIR_KEY = 'logs_dir' 'A log writer that writes stdout and stderr to "stdout" and "s...
class PipesStdioFileLogWriter(PipesStdioLogWriter): def __init__(self, interval: float=1.0): pass def make_channel(self, params: PipesParams, stream: Literal['stdout', 'stderr']) -> 'PipesStdioFileLogWriterChannel': pass
3
0
9
1
8
1
1
0.18
1
3
1
0
2
1
2
29
24
4
17
9
12
3
10
7
7
1
6
0
2
23,053
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesStdioFileLogWriterChannel
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesStdioFileLogWriterChannel(PipesStdioLogWriterChannel): """A log writer channel that writes stdout or stderr to a given file.""" def __init...
class PipesStdioFileLogWriterChannel(PipesStdioLogWriterChannel): '''A log writer channel that writes stdout or stderr to a given file.''' def __init__(self, output_path: str, stream: Literal['stdout', 'stderr'], name: str, interval: float): pass def write_chunk(self, chunk: str) -> None: ...
3
1
5
1
4
1
1
0.22
1
3
0
0
2
1
2
29
14
3
9
7
4
2
7
4
4
1
6
1
2
23,054
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesStdioLogWriter
from contextlib import ExitStack, contextmanager, nullcontext from abc import ABC, abstractmethod from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args from collections.abc import Iterable, Iterator, Mapping, Sequ...
class PipesStdioLogWriter(PipesLogWriter[T_LogChannel]): '''Log writers which collects stdout and stderr of the current process should inherit from this class.''' @abstractmethod def make_channel(self, params: PipesParams, stream: Literal['stdout', 'stderr']) -> T_LogChannel: pass @contextmanag...
5
1
6
1
6
0
1
0.07
1
2
0
2
2
0
2
27
18
3
14
10
7
1
10
5
7
1
5
1
2
23,055
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesStdioLogWriterChannel
from abc import ABC, abstractmethod import os from collections.abc import Iterable, Iterator, Mapping, Sequence import tempfile from contextlib import ExitStack, contextmanager, nullcontext from queue import Queue import time from io import StringIO, TextIOWrapper from threading import Event, Thread import subprocess i...
class PipesStdioLogWriterChannel(PipesLogWriterChannel): '''A base class for log writer channels that capture stdout and stderr of the current process.''' def __init__(self, stream: Literal['stdout', 'stderr'], interval: float, name: str): pass @property def name(self) -> str: pass ...
11
1
16
3
12
1
2
0.12
1
11
1
2
6
4
6
27
110
24
77
31
61
9
53
19
46
6
5
4
14
23,056
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesStreamMessageWriterChannel
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args import json class PipesStreamMessageWriterChannel(PipesMessageWriterChannel): """Message writer channel that writes one message per line to a `TextIO` str...
class PipesStreamMessageWriterChannel(PipesMessageWriterChannel): '''Message writer channel that writes one message per line to a `TextIO` stream.''' def __init__(self, stream: TextIO): pass def write_message(self, message: PipesMessage) -> None: pass
3
1
2
0
2
0
1
0.2
1
2
1
0
2
1
2
23
8
2
5
4
2
1
5
4
2
1
5
0
2
23,057
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes.PipesTimeWindow
from typing import IO, TYPE_CHECKING, Any, ClassVar, Dict, Generic, List, Literal, Optional, Set, TextIO, Type, TypedDict, TypeVar, Union, cast, final, get_args class PipesTimeWindow(TypedDict): """A span of time delimited by a start and end timestamp. This is defined for time-based partitioning schemes.""" st...
class PipesTimeWindow(TypedDict): '''A span of time delimited by a start and end timestamp. This is defined for time-based partitioning schemes.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
5
1
3
1
2
3
3
1
2
0
1
0
0
23,058
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes._PipesLogger
import logging class _PipesLogger(logging.Logger): def __init__(self, context: 'PipesContext') -> None: super().__init__(name='dagster-pipes') self.addHandler(_PipesLoggerHandler(context))
class _PipesLogger(logging.Logger): def __init__(self, context: 'PipesContext') -> None: pass
2
0
3
0
3
0
1
0
1
2
1
0
1
0
1
29
4
0
4
2
2
0
4
2
2
1
3
0
1
23,059
dagster-io/dagster
dagster-io_dagster/python_modules/dagster-pipes/dagster_pipes/__init__.py
dagster_pipes._PipesLoggerHandler
import logging class _PipesLoggerHandler(logging.Handler): def __init__(self, context: 'PipesContext') -> None: super().__init__() self._context = context def emit(self, record: logging.LogRecord) -> None: self._context._write_message('log', {'message': record.getMessage(), 'level': r...
class _PipesLoggerHandler(logging.Handler): def __init__(self, context: 'PipesContext') -> None: pass def emit(self, record: logging.LogRecord) -> None: pass
3
0
4
0
4
1
1
0.13
1
2
0
0
2
1
2
22
9
1
8
4
5
1
6
4
3
1
3
0
2
23,060
dagster-io/dagster
dagster-io_dagster/examples/docs_snippets/docs_snippets/guides/dagster/dagster_pipes/dagster_pipes_details_and_customization/custom_bootstrap_loader.py
dagster_pipes_details_and_customization.custom_bootstrap_loader.MyCustomParamsLoader
from dagster_pipes import DAGSTER_PIPES_CONTEXT_ENV_VAR, DAGSTER_PIPES_MESSAGES_ENV_VAR, PipesParams, PipesParamsLoader from cloud_service import METADATA class MyCustomParamsLoader(PipesParamsLoader): def is_dagster_pipes_process(self) -> bool: return DAGSTER_PIPES_CONTEXT_ENV_VAR in METADATA def lo...
class MyCustomParamsLoader(PipesParamsLoader): def is_dagster_pipes_process(self) -> bool: pass def load_context_params(self) -> PipesParams: pass def load_messages_params(self) -> PipesParams: pass
4
0
2
0
2
0
1
0
1
1
0
0
3
0
3
26
9
2
7
4
3
0
7
4
3
1
5
0
3
23,061
dagster-io/dagster
dagster-io_dagster/examples/docs_snippets/docs_snippets/guides/dagster/dagster_pipes/dagster_pipes_details_and_customization/custom_context_injector.py
dagster_pipes_details_and_customization.custom_context_injector.MyCustomCloudServiceContextInjector
from dagster_pipes import PipesContextData, PipesParams from dagster import PipesContextInjector from collections.abc import Iterator from contextlib import contextmanager import cloud_service import json import random import string class MyCustomCloudServiceContextInjector(PipesContextInjector): @contextmanager ...
class MyCustomCloudServiceContextInjector(PipesContextInjector): @contextmanager def inject_context(self, context_data: 'PipesContextData') -> Iterator[PipesParams]: pass def no_messages_debug_text(self) -> str: pass
4
0
5
0
5
0
1
0.17
1
2
0
0
2
0
2
2
15
1
12
5
8
2
7
4
4
1
1
0
2
23,062
dagster-io/dagster
dagster-io_dagster/examples/docs_snippets/docs_snippets/guides/dagster/dagster_pipes/dagster_pipes_details_and_customization/custom_context_loader.py
dagster_pipes_details_and_customization.custom_context_loader.MyCustomCloudServiceContextLoader
from collections.abc import Iterator from contextlib import contextmanager import json import cloud_service from dagster_pipes import PipesContextData, PipesContextLoader, PipesParams class MyCustomCloudServiceContextLoader(PipesContextLoader): @contextmanager def load_context(self, params: PipesParams) -> It...
class MyCustomCloudServiceContextLoader(PipesContextLoader): @contextmanager def load_context(self, params: PipesParams) -> Iterator[PipesContextData]: pass
3
0
5
0
4
1
1
0.17
1
2
1
0
1
0
1
22
7
0
6
5
3
1
5
4
3
1
5
0
1
23,063
dagster-io/dagster
dagster-io_dagster/examples/docs_snippets/docs_snippets/guides/dagster/dagster_pipes/dagster_pipes_details_and_customization/custom_message_reader.py
dagster_pipes_details_and_customization.custom_message_reader.MyCustomCloudServiceMessageReader
from collections.abc import Iterator from dagster_pipes import PipesParams from random import random import cloud_service from dagster import PipesBlobStoreMessageReader import string import os from typing import Optional class MyCustomCloudServiceMessageReader(PipesBlobStoreMessageReader): def get_params(self) -...
class MyCustomCloudServiceMessageReader(PipesBlobStoreMessageReader): def get_params(self) -> Iterator[PipesParams]: pass def download_messages_chunk(self, index: int, params: PipesParams) -> Optional[str]: pass def no_messages_debug_text(self) -> str: pass
4
0
5
0
4
0
1
0.07
1
3
0
0
3
0
3
3
17
2
14
7
10
1
10
7
6
1
1
0
3
23,064
dagster-io/dagster
dagster-io_dagster/examples/docs_snippets/docs_snippets/guides/dagster/dagster_pipes/dagster_pipes_details_and_customization/custom_message_writer.py
dagster_pipes_details_and_customization.custom_message_writer.MyCustomCloudServiceMessageWriter
from dagster_pipes import PipesBlobStoreMessageWriter, PipesBlobStoreMessageWriterChannel, PipesParams class MyCustomCloudServiceMessageWriter(PipesBlobStoreMessageWriter): def make_channel(self, params: PipesParams) -> 'MyCustomCloudServiceMessageWriterChannel': key_prefix = params['key_prefix'] ...
class MyCustomCloudServiceMessageWriter(PipesBlobStoreMessageWriter): def make_channel(self, params: PipesParams) -> 'MyCustomCloudServiceMessageWriterChannel': pass
2
0
6
0
5
1
1
0.17
1
1
1
0
1
0
1
29
7
0
6
5
2
1
4
3
2
1
6
0
1
23,065
dagster-io/dagster
dagster-io_dagster/examples/docs_snippets/docs_snippets/guides/dagster/dagster_pipes/dagster_pipes_details_and_customization/custom_message_writer.py
dagster_pipes_details_and_customization.custom_message_writer.MyCustomCloudServiceMessageWriterChannel
from dagster_pipes import PipesBlobStoreMessageWriter, PipesBlobStoreMessageWriterChannel, PipesParams import cloud_service import json from typing import IO class MyCustomCloudServiceMessageWriterChannel(PipesBlobStoreMessageWriterChannel): def __init__(self, key_prefix: str): super().__init__() ...
class MyCustomCloudServiceMessageWriterChannel(PipesBlobStoreMessageWriterChannel): def __init__(self, key_prefix: str): pass def upload_messages_chunk(self, payload: IO, index: int) -> None: pass
3
0
3
0
3
0
1
0.14
1
4
0
0
2
1
2
29
9
1
7
5
4
1
7
5
4
1
6
0
2
23,066
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-postgres/dagster_postgres/event_log/event_log.py
dagster_postgres.event_log.event_log.PostgresEventLogStorage
from contextlib import contextmanager from collections.abc import Iterator, Mapping, Sequence from dagster._core.storage.sqlalchemy_compat import db_select from sqlalchemy.engine import Connection from dagster._core.storage.sql import AlembicVersion, check_alembic_revision, create_engine, run_alembic_upgrade, stamp_ale...
class PostgresEventLogStorage(SqlEventLogStorage, ConfigurableClass): '''Postgres-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...
30
3
11
1
9
2
2
0.3
2
13
4
0
21
6
24
232
323
55
210
78
164
64
131
47
106
4
6
3
41
23,067
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-postgres/dagster_postgres/run_storage/run_storage.py
dagster_postgres.run_storage.run_storage.PostgresRunStorage
from typing import ContextManager, Optional from collections.abc import Mapping from dagster._serdes import ConfigurableClass, ConfigurableClassData, serialize_value import zlib from sqlalchemy import event from dagster._core.storage.config import PostgresStorageConfig, pg_config from dagster._core.storage.runs.sql_run...
class PostgresRunStorage(SqlRunStorage, ConfigurableClass): '''Postgres-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_...
20
1
10
0
9
1
1
0.22
2
8
3
0
12
5
15
141
199
27
141
48
112
31
70
29
54
4
6
2
21
23,068
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-postgres/dagster_postgres/schedule_storage/schedule_storage.py
dagster_postgres.schedule_storage.schedule_storage.PostgresScheduleStorage
from typing import ContextManager, Optional from dagster._core.scheduler.instigation import InstigatorState from dagster._core.definitions.asset_key import EntityKey from dagster._core.storage.config import PostgresStorageConfig, pg_config from dagster._config.config_schema import UserConfigSchema from dagster._core.de...
class PostgresScheduleStorage(SqlScheduleStorage, ConfigurableClass): '''Postgres-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 `...
17
1
11
1
11
0
1
0.19
2
8
3
0
9
4
12
93
180
24
131
48
101
25
58
27
45
3
6
2
16
23,069
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-postgres/dagster_postgres/storage.py
dagster_postgres.storage.DagsterPostgresStorage
from dagster_postgres.utils import pg_url_from_config from dagster._core.storage.schedules import ScheduleStorage from dagster._core.storage.event_log import EventLogStorage from dagster._core.storage.base_storage import DagsterStorage from dagster_postgres.run_storage import PostgresRunStorage from dagster import _che...
class DagsterPostgresStorage(DagsterStorage, ConfigurableClass): '''Postgres-backed dagster storage. Users should not directly instantiate this class; it is instantiated by internal machinery when ``dagster-webserver`` and ``dagster-daemon`` load, based on the values in the ``dagster.yaml`` file in ``$...
20
1
6
0
6
0
1
0.18
2
2
1
0
8
6
10
36
100
14
73
33
46
13
27
17
16
2
5
0
13
23,070
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-postgres/dagster_postgres/utils.py
dagster_postgres.utils.DagsterPostgresException
class DagsterPostgresException(Exception): pass
class DagsterPostgresException(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
23,071
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/resource.py
dagster_powerbi.resource.PowerBICredentials
from dagster import ConfigurableResource, Definitions, _check as check import abc class PowerBICredentials(ConfigurableResource, abc.ABC): @property def api_token(self) -> str: ...
class PowerBICredentials(ConfigurableResource, abc.ABC): @property def api_token(self) -> str: pass
3
0
1
0
1
0
1
0
2
1
0
0
1
0
1
21
3
0
3
3
1
0
3
2
1
1
4
0
1
23,072
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/resource.py
dagster_powerbi.resource.PowerBIServicePrincipal
from pydantic import Field, PrivateAttr import requests from typing import Any, Optional, Union from dagster import ConfigurableResource, Definitions, _check as check class PowerBIServicePrincipal(ConfigurableResource): """Authenticates with PowerBI using a service principal.""" client_id: str = Field(..., des...
class PowerBIServicePrincipal(ConfigurableResource): '''Authenticates with PowerBI using a service principal.''' def get_api_token(self) -> str: pass @property def api_token(self) -> str: pass
4
1
11
0
11
0
2
0.03
1
1
0
0
2
0
2
2
36
3
32
12
28
1
17
11
14
2
1
1
3
23,073
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/resource.py
dagster_powerbi.resource.PowerBIToken
from pydantic import Field, PrivateAttr from dagster import ConfigurableResource, Definitions, _check as check class PowerBIToken(ConfigurableResource): """Authenticates with PowerBI directly using an API access token.""" api_token: str = Field(..., description='An API access token used to connect to PowerBI.'...
class PowerBIToken(ConfigurableResource): '''Authenticates with PowerBI directly using an API access token.''' pass
1
1
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
4
1
2
2
1
1
2
2
1
0
1
0
0
23,074
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/resource.py
dagster_powerbi.resource.PowerBIWorkspace
from dagster import ConfigurableResource, Definitions, _check as check from dagster._annotations import beta, deprecated, public import time from urllib.parse import urlencode from functools import cached_property import requests from dagster._time import get_current_timestamp import json from dagster._config.pythonic_...
class PowerBIWorkspace(ConfigurableResource): '''Represents a workspace in PowerBI and provides utilities to interact with the PowerBI API. ''' @cached_property def _api_token(self) -> str: pass def _fetch(self, endpoint: str, method: str='GET', json: Any=None, params: Optional[dict[st...
30
12
15
1
11
2
2
0.19
1
13
6
0
16
0
16
16
287
40
208
84
157
39
93
55
75
4
1
2
30
23,075
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/resource.py
dagster_powerbi.resource.PowerBIWorkspaceDefsLoader
from dagster_powerbi.translator import DagsterPowerBITranslator, PowerBIContentData, PowerBIContentType, PowerBITagSet, PowerBITranslatorData, PowerBIWorkspaceData from dataclasses import dataclass from dagster._core.definitions.definitions_load_context import StateBackedDefinitionsLoader from dagster import Configurab...
@dataclass class PowerBIWorkspaceDefsLoader(StateBackedDefinitionsLoader[PowerBIWorkspaceData]): @property def defs_key(self) -> str: pass def fetch_state(self) -> PowerBIWorkspaceData: pass def defs_from_state(self, state: PowerBIWorkspaceData) -> Definitions: pass
6
0
8
0
8
0
1
0.04
1
3
2
0
3
0
3
30
32
4
28
8
23
1
13
6
9
1
5
1
3
23,076
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/translator.py
dagster_powerbi.translator.DagsterPowerBITranslator
from dagster._core.definitions.asset_key import AssetKey from dagster._core.definitions.utils import is_valid_asset_owner from dagster._annotations import deprecated import urllib.parse from dagster._core.definitions.metadata.metadata_value import MetadataValue from dagster import UrlMetadataValue, _check as check from...
class DagsterPowerBITranslator: '''Translator class which converts raw response data from the PowerBI API into AssetSpecs. Subclass this class to implement custom logic for each type of PowerBI content. ''' def get_asset_spec(self, data: PowerBITranslatorData) -> AssetSpec: pass @depre...
14
1
18
1
17
0
3
0.02
0
7
7
4
9
0
9
9
187
17
167
49
141
3
64
33
54
7
0
2
26
23,077
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/translator.py
dagster_powerbi.translator.PowerBIContentData
from dagster._record import record from dagster_shared.serdes import whitelist_for_serdes from typing import Any, Literal, Optional @whitelist_for_serdes @record class PowerBIContentData: """A record representing a piece of content in PowerBI. Includes the content's type and data as returned from the API. ...
@whitelist_for_serdes @record class PowerBIContentData: '''A record representing a piece of content in PowerBI. Includes the content's type and data as returned from the API. ''' pass
3
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
7
1
3
1
2
3
3
1
2
0
0
0
0
23,078
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/translator.py
dagster_powerbi.translator.PowerBIContentType
from enum import Enum from dagster_shared.serdes import whitelist_for_serdes @whitelist_for_serdes class PowerBIContentType(Enum): """Enum representing each object in PowerBI's ontology, generically referred to as "content" by the API.""" DASHBOARD = 'dashboard' REPORT = 'report' SEMANTIC_MODEL = 'sema...
@whitelist_for_serdes class PowerBIContentType(Enum): '''Enum representing each object in PowerBI's ontology, generically referred to as "content" by the API.''' pass
2
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
49
7
1
5
5
4
1
5
5
4
0
4
0
0
23,079
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/translator.py
dagster_powerbi.translator.PowerBIMetadataSet
from typing import Any, Literal, Optional from dagster import UrlMetadataValue, _check as check from dagster._core.definitions.metadata.metadata_set import NamespacedMetadataSet, TableMetadataSet class PowerBIMetadataSet(NamespacedMetadataSet): web_url: Optional[UrlMetadataValue] = None id: Optional[str] = Non...
class PowerBIMetadataSet(NamespacedMetadataSet): @classmethod def namespace(cls) -> str: pass
3
0
2
0
2
0
1
0
1
1
0
0
0
0
1
98
7
1
6
4
3
0
5
3
3
1
8
0
1
23,080
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/translator.py
dagster_powerbi.translator.PowerBITagSet
from typing import Any, Literal, Optional from dagster._core.definitions.tags.tag_set import NamespacedTagSet class PowerBITagSet(NamespacedTagSet): asset_type: Optional[Literal['dashboard', 'report', 'semantic_model', 'data_source']] = None @classmethod def namespace(cls) -> str: return 'dagster-...
class PowerBITagSet(NamespacedTagSet): @classmethod def namespace(cls) -> str: pass
3
0
2
0
2
0
1
0
1
1
0
0
0
0
1
97
6
1
5
4
2
0
4
3
2
1
8
0
1
23,081
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/translator.py
dagster_powerbi.translator.PowerBITranslatorData
from typing import Any, Literal, Optional from dagster._record import record @record class PowerBITranslatorData: """A record representing a piece of content in PowerBI and the PowerBI workspace data. Includes the content's type and data as returned from the API. """ content_data: 'PowerBIContentData' ...
@record class PowerBITranslatorData: '''A record representing a piece of content in PowerBI and the PowerBI workspace data. Includes the content's type and data as returned from the API. ''' @property def content_type(self) -> PowerBIContentType: pass @property def properties(self) -...
6
1
2
0
2
0
1
0.33
0
4
1
0
2
0
2
2
15
3
9
5
4
3
7
3
4
1
0
0
2
23,082
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-powerbi/dagster_powerbi/translator.py
dagster_powerbi.translator.PowerBIWorkspaceData
from dagster._record import record from dagster_shared.serdes import whitelist_for_serdes from collections.abc import Sequence @whitelist_for_serdes @record class PowerBIWorkspaceData: """A record representing all content in a PowerBI workspace. Provided as context for the translator so that it can resolve de...
@whitelist_for_serdes @record class PowerBIWorkspaceData: '''A record representing all content in a PowerBI workspace. Provided as context for the translator so that it can resolve dependencies between content. ''' @classmethod def from_content_data(cls, workspace_id: str, content_data: Sequence[Pow...
5
1
26
0
26
0
1
0.09
0
4
2
0
0
0
1
1
39
3
33
5
28
3
8
2
6
1
0
0
1
23,083
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-prometheus/dagster_prometheus/resources.py
dagster_prometheus.resources.PrometheusClient
class PrometheusClient: """Integrates with Prometheus via the prometheus_client library."""
class PrometheusClient: '''Integrates with Prometheus via the prometheus_client library.''' pass
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
2
0
1
1
0
1
1
1
0
0
0
0
0
23,084
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-prometheus/dagster_prometheus/resources.py
dagster_prometheus.resources.PrometheusResource
from dagster._core.execution.context.init import InitResourceContext from dagster import ConfigurableResource, resource import prometheus_client from pydantic import Field, PrivateAttr from dagster._annotations import beta from prometheus_client.exposition import default_handler @beta class PrometheusResource(Configur...
@beta class PrometheusResource(ConfigurableResource): '''This resource is used to send metrics to a Prometheus Pushgateway. **Example:** .. code-block:: python from dagster_prometheus import PrometheusResource from dagster import Definitions, job, op @op def example_prometheu...
10
4
15
0
5
10
1
1.6
1
3
1
0
5
0
6
6
135
14
47
12
38
75
16
10
9
1
1
0
6
23,085
dagster-io/dagster
dagster-io_dagster/examples/project_analytics/dagster_pypi/resources.py
dagster_pypi.resources.GithubLocalResource
import datetime from pydantic import Field import pandas as pd class GithubLocalResource(GithubResource): input_file: str = Field(description='Path to the sample input file') def get_github_stars(self, date) -> pd.DataFrame: print('Pretending to fetch Github data for a given date: ', date) df ...
class GithubLocalResource(GithubResource): def get_github_stars(self, date) -> pd.DataFrame: pass
2
0
5
0
5
0
1
0
1
1
0
0
1
0
1
2
8
1
7
4
5
0
7
4
5
1
2
0
1
23,086
dagster-io/dagster
dagster-io_dagster/examples/project_analytics/dagster_pypi/resources.py
dagster_pypi.resources.GithubResource
import pandas as pd from dagster import ConfigurableResource, EnvVar class GithubResource(ConfigurableResource): def get_github_stars(self, _) -> pd.DataFrame: raise NotImplementedError()
class GithubResource(ConfigurableResource): def get_github_stars(self, _) -> pd.DataFrame: pass
2
0
2
0
2
0
1
0
1
1
0
2
1
0
1
1
3
0
3
2
1
0
3
2
1
1
1
0
1
23,087
dagster-io/dagster
dagster-io_dagster/examples/project_analytics/dagster_pypi/resources.py
dagster_pypi.resources.GithubSteampipeResource
import pandas as pd from pydantic import Field class GithubSteampipeResource(GithubResource): streampipe_conn: str = Field(description='Steampipe connection string, use steampipe service status to retrieve.') def get_github_stars(self, date) -> pd.DataFrame: print('Fetching Github data from Steampipe ...
class GithubSteampipeResource(GithubResource): def get_github_stars(self, date) -> pd.DataFrame: pass
2
0
14
0
14
0
1
0
1
0
0
0
1
0
1
2
19
1
18
5
16
0
7
5
5
1
2
0
1
23,088
dagster-io/dagster
dagster-io_dagster/examples/project_analytics/dagster_pypi/resources.py
dagster_pypi.resources.PyPiBigQueryResource
from google.cloud import bigquery from pydantic import Field import pandas as pd class PyPiBigQueryResource(PyPiResource): table: str = Field(description='BigQuery public table to query') def get_pypi_download_counts(self, date) -> pd.DataFrame: print('Fetching from bigquery for a given date: ', date)...
class PyPiBigQueryResource(PyPiResource): def get_pypi_download_counts(self, date) -> pd.DataFrame: pass
2
0
18
2
16
0
1
0
1
0
0
0
1
0
1
2
21
3
18
5
16
0
7
5
5
1
2
0
1
23,089
dagster-io/dagster
dagster-io_dagster/examples/project_analytics/dagster_pypi/resources.py
dagster_pypi.resources.PyPiLocalResource
import pandas as pd from pydantic import Field import datetime class PyPiLocalResource(PyPiResource): input_file: str = Field(description='Path to the sample pypi input file') def get_pypi_download_counts(self, date) -> pd.DataFrame: print('Pretending to fetch for a given date: ', date) df = p...
class PyPiLocalResource(PyPiResource): def get_pypi_download_counts(self, date) -> pd.DataFrame: pass
2
0
5
0
5
0
1
0
1
1
0
0
1
0
1
2
8
1
7
4
5
0
7
4
5
1
2
0
1
23,090
dagster-io/dagster
dagster-io_dagster/examples/project_analytics/dagster_pypi/resources.py
dagster_pypi.resources.PyPiResource
from dagster import ConfigurableResource, EnvVar import pandas as pd class PyPiResource(ConfigurableResource): def get_pypi_download_counts(self, _) -> pd.DataFrame: raise NotImplementedError()
class PyPiResource(ConfigurableResource): def get_pypi_download_counts(self, _) -> pd.DataFrame: pass
2
0
2
0
2
0
1
0
1
1
0
2
1
0
1
1
3
0
3
2
1
0
3
2
1
1
1
0
1
23,091
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pyspark/dagster_pyspark/resources.py
dagster_pyspark.resources.LazyPySparkResource
import dagster._check as check from pydantic import PrivateAttr from dagster import ConfigurableResource, resource from typing import Any from dagster_spark.configs_spark import spark_config class LazyPySparkResource(ConfigurableResource): """This resource provides access to a lazily-created PySpark SparkSession ...
class LazyPySparkResource(ConfigurableResource): '''This resource provides access to a lazily-created PySpark SparkSession for executing PySpark code within Dagster, avoiding the creation of a SparkSession object until the .spark_session attribute of the resource is accessed. This is helpful for avoiding ...
8
1
3
0
3
0
1
1.29
1
2
0
0
3
0
4
4
47
8
17
9
9
22
14
6
9
2
1
1
5
23,092
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-pyspark/dagster_pyspark/resources.py
dagster_pyspark.resources.PySparkResource
from dagster import ConfigurableResource, resource from typing import Any from pydantic import PrivateAttr from dagster_spark.configs_spark import spark_config from dagster._core.execution.context.init import InitResourceContext class PySparkResource(ConfigurableResource): """This resource provides access to a PyS...
class PySparkResource(ConfigurableResource): '''This resource provides access to a PySpark Session for executing PySpark code within Dagster. Example: .. code-block:: python @op def my_op(pyspark: PySparkResource) spark_session = pyspark.spark_session ...
8
1
2
0
2
0
1
1.36
1
3
1
0
3
0
4
4
42
9
14
9
6
19
11
6
6
1
1
0
4
23,093
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-sigma/dagster_sigma/resource.py
dagster_sigma.resource.SigmaBaseUrl
from enum import Enum class SigmaBaseUrl(str, Enum): """Enumeration of Sigma API base URLs for different cloud providers. https://help.sigmacomputing.com/reference/get-started-sigma-api#identify-your-api-request-url """ AWS_US = 'https://aws-api.sigmacomputing.com' AWS_CANADA = 'https://api.ca.aws...
class SigmaBaseUrl(str, Enum): '''Enumeration of Sigma API base URLs for different cloud providers. https://help.sigmacomputing.com/reference/get-started-sigma-api#identify-your-api-request-url ''' pass
1
1
0
0
0
0
0
0.43
2
0
0
0
0
0
0
115
12
2
7
7
6
3
7
7
6
0
4
0
0
23,094
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-sigma/dagster_sigma/resource.py
dagster_sigma.resource.SigmaFilter
from collections.abc import Iterator, Mapping, Sequence from dagster._record import IHaveNew, record_custom from typing import AbstractSet, Any, Optional, Union @record_custom class SigmaFilter(IHaveNew): """Filters the set of Sigma objects to fetch. Args: workbook_folders (Optional[Sequence[Sequence[...
@record_custom class SigmaFilter(IHaveNew): '''Filters the set of Sigma objects to fetch. Args: workbook_folders (Optional[Sequence[Sequence[str]]]): A list of folder paths to fetch workbooks from. Each folder path is a list of folder names, starting from the root folder. All workbooks ...
3
1
15
1
14
0
1
0.61
1
5
0
0
1
0
1
3
33
4
18
10
11
11
8
5
6
1
1
0
1
23,095
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-sigma/dagster_sigma/resource.py
dagster_sigma.resource.SigmaMaterializationStatus
import enum class SigmaMaterializationStatus(str, enum.Enum): PENDING = 'pending' BUILDING = 'building' READY = 'ready'
class SigmaMaterializationStatus(str, enum.Enum): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
115
4
0
4
4
3
0
4
4
3
0
4
0
0
23,096
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-sigma/dagster_sigma/resource.py
dagster_sigma.resource.SigmaOrganization
from collections import defaultdict import time import aiohttp from dagster._core.definitions.events import AssetMaterialization import asyncio from dagster._core.definitions.definitions_class import Definitions import contextlib from typing import AbstractSet, Any, Optional, Union from dagster._annotations import beta...
class SigmaOrganization(ConfigurableResource): '''Represents a workspace in Sigma and provides utilities to interact with the Sigma API. ''' def _fetch_api_token(self) -> str: pass @property def api_token(self) -> str: pass async def _fetch_json_async(self, endpoint: str, ...
49
7
21
2
18
1
2
0.07
1
25
11
0
26
0
26
26
579
72
474
166
382
34
199
102
168
9
1
4
65
23,097
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-sigma/dagster_sigma/resource.py
dagster_sigma.resource.SigmaOrganizationDefsLoader
from dagster_sigma.translator import DagsterSigmaTranslator, SigmaDataset, SigmaDatasetTranslatorData, SigmaOrganizationData, SigmaTable, SigmaWorkbook, SigmaWorkbookMetadataSet, SigmaWorkbookTranslatorData, _inode_from_url from dagster._core.definitions.repository_definition.repository_definition import RepositoryLoad...
@dataclass class SigmaOrganizationDefsLoader(StateBackedDefinitionsLoader[SigmaOrganizationData]): @property def defs_key(self) -> str: pass def fetch_state(self) -> SigmaOrganizationData: pass def defs_from_state(self, state: SigmaOrganizationData) -> Definitions: pass
6
0
9
0
9
0
1
0.03
1
5
4
0
3
0
3
30
38
4
34
11
29
1
18
10
14
2
5
1
4
23,098
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-sigma/dagster_sigma/translator.py
dagster_sigma.translator.DagsterSigmaTranslator
from dagster import AssetKey, AssetSpec, MetadataValue, TableSchema from typing import AbstractSet, Any, Optional, Union from dagster._core.definitions.metadata.table import TableColumn from dagster._core.definitions.metadata.metadata_set import NamespacedMetadataSet, TableMetadataSet from dagster._annotations import d...
class DagsterSigmaTranslator: '''Translator class which converts raw response data from the Sigma API into AssetSpecs. Subclass this class to provide custom translation logic. ''' @deprecated(breaking_version='1.10', additional_warn_text='Use `DagsterSigmaTranslator.get_asset_spec(...).key` instead...
4
3
42
1
40
1
3
0.06
0
5
5
4
2
0
2
2
93
4
84
14
73
5
11
6
8
5
0
1
6
23,099
dagster-io/dagster
dagster-io_dagster/python_modules/libraries/dagster-sigma/dagster_sigma/translator.py
dagster_sigma.translator.SigmaDataset
from typing import AbstractSet, Any, Optional, Union from dagster._record import record from dagster_shared.serdes import whitelist_for_serdes @whitelist_for_serdes @record class SigmaDataset: """Represents a Sigma dataset, a centralized data definition which can contain aggregations or other manipulations. ...
@whitelist_for_serdes @record class SigmaDataset: '''Represents a Sigma dataset, a centralized data definition which can contain aggregations or other manipulations. https://help.sigmacomputing.com/docs/datasets ''' pass
3
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
10
2
4
1
3
4
4
1
3
0
0
0
0