id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22,500 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/secretsmanager/resources.py | dagster_aws.secretsmanager.resources.SecretsManagerSecretsResource | from dagster._core.test_utils import environ
from dagster_aws.secretsmanager.secrets import construct_secretsmanager_client, get_secrets_from_arns, get_tagged_secrets
from dagster import Field as LegacyDagsterField, resource
from dagster._utils.merger import merge_dicts
from dagster_aws.utils import ResourceWithBoto3Co... | @beta
class SecretsManagerSecretsResource(ResourceWithBoto3Configuration):
'''Resource that provides a dict which maps selected SecretsManager secrets to
their string values. Also optionally sets chosen secrets as environment variables.
Example:
.. code-block:: python
import os
... | 7 | 3 | 19 | 2 | 12 | 6 | 2 | 1.07 | 1 | 5 | 0 | 0 | 2 | 2 | 3 | 3 | 109 | 16 | 45 | 24 | 31 | 48 | 16 | 11 | 12 | 4 | 2 | 1 | 6 |
22,501 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ssm/resources.py | dagster_aws.ssm.resources.ParameterStoreResource | from dagster._utils.merger import merge_dicts
from collections.abc import Generator
from dagster_aws.ssm.parameters import construct_ssm_client, get_parameters_by_name, get_parameters_by_paths, get_parameters_by_tags
from dagster import Config, Field as LegacyDagsterField, resource
from dagster_aws.utils import Resourc... | @beta
class ParameterStoreResource(ResourceWithBoto3Configuration):
'''Resource that provides a dict which maps selected SSM Parameter Store parameters to
their string values. Optionally sets selected parameters as environment variables.
Example:
.. code-block:: python
import os
... | 7 | 3 | 28 | 1 | 20 | 7 | 4 | 0.65 | 1 | 6 | 1 | 0 | 2 | 2 | 3 | 3 | 148 | 14 | 82 | 30 | 66 | 53 | 30 | 15 | 26 | 9 | 2 | 2 | 11 |
22,502 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ssm/resources.py | dagster_aws.ssm.resources.ParameterStoreTag | from pydantic import Field
from dagster._annotations import beta
from dagster import Config, Field as LegacyDagsterField, resource
from typing import TYPE_CHECKING, Any, Optional, cast
@beta
class ParameterStoreTag(Config):
key: str = Field(description='Tag key to search for.')
values: Optional[list[str]] = Fi... | @beta
class ParameterStoreTag(Config):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
22,503 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ssm/resources.py | dagster_aws.ssm.resources.SSMResource | from dagster_aws.utils import ResourceWithBoto3Configuration
from dagster_aws.ssm.parameters import construct_ssm_client, get_parameters_by_name, get_parameters_by_paths, get_parameters_by_tags
from dagster._annotations import beta
@beta
class SSMResource(ResourceWithBoto3Configuration):
"""Resource that gives acc... | @beta
class SSMResource(ResourceWithBoto3Configuration):
'''Resource that gives access to AWS Systems Manager Parameter Store.
The underlying Parameter Store session is created by calling
:py:func:`boto3.session.Session(profile_name) <boto3:boto3.session>`.
The returned resource object is a Systems Mana... | 5 | 1 | 7 | 0 | 7 | 1 | 1 | 1.69 | 1 | 1 | 0 | 0 | 1 | 8 | 2 | 2 | 50 | 8 | 16 | 12 | 12 | 27 | 5 | 3 | 2 | 1 | 2 | 0 | 2 |
22,504 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/utils/__init__.py | dagster_aws.utils.ResourceWithBoto3Configuration | from dagster import ConfigurableResource
from typing import Optional, TypeVar
from pydantic import Field
class ResourceWithBoto3Configuration(ConfigurableResource):
region_name: Optional[str] = Field(default=None, description='Specifies a custom region for the Boto3 session')
max_attempts: int = Field(default=... |
class ResourceWithBoto3Configuration(ConfigurableResource):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 | 0 | 0 | 0 | 0 | 35 | 0 | 35 | 10 | 34 | 0 | 10 | 10 | 9 | 0 | 1 | 0 | 0 |
22,505 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/utils/mrjob/log4j.py | dagster_aws.utils.mrjob.log4j.Log4jRecord | from collections import namedtuple
class Log4jRecord(namedtuple('_Log4jRecord', 'caller_location level logger message num_lines start_line thread timestamp')):
"""Represents a Log4J log record.
caller_location -- e.g. 'YarnClientImpl.java:submitApplication(251)'
level -- e.g. 'INFO'
logger -- e.g. 'am... |
class Log4jRecord(namedtuple('_Log4jRecord', 'caller_location level logger message num_lines start_line thread timestamp')):
'''Represents a Log4J log record.
caller_location -- e.g. 'YarnClientImpl.java:submitApplication(251)'
level -- e.g. 'INFO'
logger -- e.g. 'amazon.emr.metrics.MetricsSaver'
m... | 4 | 2 | 10 | 0 | 9 | 2 | 1 | 0.61 | 1 | 1 | 0 | 0 | 1 | 0 | 2 | 7 | 40 | 3 | 23 | 10 | 13 | 14 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
22,506 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/utils/mrjob/retry.py | dagster_aws.utils.mrjob.retry.RetryWrapper | from functools import partial
import time
class RetryWrapper:
"""Handle transient errors, with configurable backoff.
This class can wrap any object. The wrapped object will behave like
the original one, except that if you call a function and it raises a
retriable exception, we'll back off for a certai... |
class RetryWrapper:
'''Handle transient errors, with configurable backoff.
This class can wrap any object. The wrapped object will behave like
the original one, except that if you call a function and it raises a
retriable exception, we'll back off for a certain number of seconds
and call the functi... | 5 | 4 | 27 | 4 | 18 | 6 | 3 | 0.6 | 0 | 4 | 0 | 0 | 3 | 7 | 3 | 3 | 102 | 17 | 53 | 25 | 39 | 32 | 39 | 15 | 34 | 4 | 0 | 3 | 12 |
22,507 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/stubbed_ecs.py | dagster_aws_tests.ecs_tests.stubbed_ecs.StubStorage | from collections import defaultdict
import threading
class StubStorage:
def __init__(self):
self.tasks = defaultdict(list)
self.task_definitions = defaultdict(list)
self.tags = defaultdict(list)
self.account_settings = {}
self.default_account_settings = {'taskLongArnFormat'... |
class StubStorage:
def __init__(self):
pass | 2 | 0 | 8 | 1 | 7 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 6 | 1 | 1 | 9 | 1 | 8 | 8 | 6 | 0 | 8 | 8 | 6 | 1 | 0 | 0 | 1 |
22,508 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/stubbed_ecs.py | dagster_aws_tests.ecs_tests.stubbed_ecs.StubbedEcs | import itertools
from botocore.exceptions import ClientError
from botocore.stub import Stubber
import re
from operator import itemgetter
import boto3
import time
import uuid
class StubbedEcs:
"""A class that stubs ECS responses using botocore's Stubber:
https://botocore.amazonaws.com/v1/documentation/api/lates... |
class StubbedEcs:
'''A class that stubs ECS responses using botocore's Stubber:
https://botocore.amazonaws.com/v1/documentation/api/latest/reference/stubber.html.
Stubs are minimally sufficient for testing existing Dagster ECS behavior;
consequently, not all endpoints are stubbed and not all stubbed en... | 35 | 6 | 19 | 2 | 15 | 1 | 2 | 0.14 | 0 | 9 | 2 | 0 | 22 | 5 | 22 | 22 | 467 | 77 | 347 | 100 | 312 | 47 | 189 | 88 | 166 | 16 | 0 | 5 | 54 |
22,509 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/stubbed_ecs.py | dagster_aws_tests.ecs_tests.stubbed_ecs.StubbedEcsError | class StubbedEcsError(Exception):
pass | class StubbedEcsError(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
22,510 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/stubbed_ecs.py | dagster_aws_tests.ecs_tests.stubbed_ecs.ThreadsafeStubbedEcs | import threading
from collections import defaultdict
import boto3
class ThreadsafeStubbedEcs:
def __init__(self, region_name):
storage = StubStorage()
self.stubs = defaultdict(lambda: StubbedEcs(boto3.Session().client('ecs', region_name=region_name), storage=storage))
def __getattr__(self, na... |
class ThreadsafeStubbedEcs:
def __init__(self, region_name):
pass
def __getattr__(self, name):
pass | 3 | 0 | 7 | 0 | 6 | 2 | 1 | 0.25 | 0 | 2 | 2 | 0 | 2 | 1 | 2 | 2 | 16 | 1 | 12 | 6 | 9 | 3 | 7 | 6 | 4 | 1 | 0 | 0 | 2 |
22,511 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/pipes_tests/fake_ecs.py | dagster_aws_tests.pipes_tests.fake_ecs.LocalECSMockClient | import time
from typing import Optional, cast
import boto3
import uuid
from datetime import datetime
import sys
from subprocess import PIPE, Popen
class LocalECSMockClient:
CONTAINER_NAME = 'test-container'
def __init__(self, ecs_client: boto3.client, cloudwatch_client: boto3.client):
self.ecs_client ... |
class LocalECSMockClient:
def __init__(self, ecs_client: boto3.client, cloudwatch_client: boto3.client):
pass
@property
def meta(self):
pass
def get_waiter(self, waiter_name: str):
pass
def register_task_definition(self, **kwargs):
pass
def describe_task_defi... | 12 | 0 | 21 | 4 | 16 | 1 | 2 | 0.07 | 0 | 9 | 2 | 0 | 10 | 3 | 10 | 10 | 218 | 48 | 161 | 42 | 149 | 12 | 98 | 40 | 87 | 6 | 0 | 4 | 23 |
22,512 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/pipes_tests/fake_ecs.py | dagster_aws_tests.pipes_tests.fake_ecs.SimulatedTaskRun | from datetime import datetime
from typing import Optional, cast
from subprocess import PIPE, Popen
from dataclasses import dataclass
@dataclass
class SimulatedTaskRun:
popen: Popen
cluster: str
task_arn: str
log_group: str
log_stream: str
created_at: datetime
runtime_id: str
stopped_rea... | @dataclass
class SimulatedTaskRun:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 | 11 | 4 | 10 | 0 | 11 | 4 | 10 | 0 | 0 | 0 | 0 |
22,513 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/pipes_tests/fake_ecs.py | dagster_aws_tests.pipes_tests.fake_ecs.WaiterMock | import botocore
import time
class WaiterMock:
def __init__(self, client: LocalECSMockClient, waiter_name: str):
self.client = client
self.waiter_name = waiter_name
def wait(self, **kwargs):
waiter_config = kwargs.pop('WaiterConfig', {'MaxAttempts': 100, 'Delay': 6})
max_attemp... |
class WaiterMock:
def __init__(self, client: LocalECSMockClient, waiter_name: str):
pass
def wait(self, **kwargs):
pass | 3 | 0 | 14 | 3 | 12 | 1 | 3 | 0.04 | 0 | 4 | 1 | 0 | 2 | 2 | 2 | 2 | 30 | 6 | 24 | 10 | 21 | 1 | 19 | 10 | 16 | 5 | 0 | 3 | 6 |
22,514 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/pipes_tests/fake_glue.py | dagster_aws_tests.pipes_tests.fake_glue.LocalGlueMockClient | from typing import Literal, Optional
import tempfile
from subprocess import PIPE, Popen
import sys
import warnings
import boto3
import time
class LocalGlueMockClient:
def __init__(self, aws_endpoint_url: str, s3_client: boto3.client, glue_client: boto3.client, pipes_messages_backend: Literal['s3', 'cloudwatch'], ... |
class LocalGlueMockClient:
def __init__(self, aws_endpoint_url: str, s3_client: boto3.client, glue_client: boto3.client, pipes_messages_backend: Literal['s3', 'cloudwatch'], cloudwatch_client: Optional[boto3.client]=None):
'''This class wraps moto3 clients for S3 and Glue, and provides a way to "run" Glue... | 9 | 1 | 23 | 3 | 18 | 4 | 3 | 0.23 | 0 | 7 | 1 | 0 | 7 | 7 | 7 | 7 | 170 | 26 | 126 | 43 | 110 | 29 | 76 | 34 | 68 | 7 | 0 | 4 | 22 |
22,515 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/pipes_tests/fake_glue.py | dagster_aws_tests.pipes_tests.fake_glue.SimulatedJobRun | from dataclasses import dataclass
import tempfile
from subprocess import PIPE, Popen
@dataclass
class SimulatedJobRun:
popen: Popen
job_run_id: str
log_group: str
local_script: tempfile._TemporaryFileWrapper
stopped: bool = False | @dataclass
class SimulatedJobRun:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 2 | 5 | 0 | 6 | 2 | 5 | 0 | 0 | 0 | 0 |
22,516 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/pipes_tests/fake_lambda.py | dagster_aws_tests.pipes_tests.fake_lambda.FakeLambdaClient | import tempfile
import os
import io
from typing import Any
import subprocess
import base64
import sys
class FakeLambdaClient:
def invoke(self, **kwargs):
with tempfile.TemporaryDirectory() as tempdir:
in_path = os.path.join(tempdir, 'in.json')
out_path = os.path.join(tempdir, 'out.... |
class FakeLambdaClient:
def invoke(self, **kwargs):
pass | 2 | 0 | 56 | 13 | 40 | 5 | 5 | 0.12 | 0 | 4 | 0 | 0 | 1 | 0 | 1 | 1 | 57 | 13 | 41 | 14 | 39 | 5 | 28 | 11 | 26 | 5 | 0 | 4 | 5 |
22,517 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/pipes_tests/fake_lambda.py | dagster_aws_tests.pipes_tests.fake_lambda.FakeLambdaContext | class FakeLambdaContext:
pass | class FakeLambdaContext:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
22,518 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws_tests/pipes_tests/fake_lambda.py | dagster_aws_tests.pipes_tests.fake_lambda.LambdaFunctions | import boto3
from dagster_pipes import PipesMappingParamsLoader, PipesS3MessageWriter, open_dagster_pipes
import sys
class LambdaFunctions:
@staticmethod
def trunc_logs(event, context):
sys.stdout.write('O' * 1024 * 3)
sys.stderr.write('E' * 1024 * 3)
@staticmethod
def small_logs(even... |
class LambdaFunctions:
@staticmethod
def trunc_logs(event, context):
pass
@staticmethod
def small_logs(event, context):
pass
@staticmethod
def pipes_basic(event, _lambda_context):
pass
@staticmethod
def pipes_messy_logs(event, _lambda_context):
pass
... | 13 | 0 | 5 | 0 | 5 | 0 | 1 | 0.06 | 0 | 3 | 2 | 0 | 0 | 0 | 6 | 6 | 41 | 5 | 35 | 17 | 22 | 2 | 19 | 8 | 12 | 1 | 0 | 1 | 6 |
22,519 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/adls2/file_manager.py | dagster_azure.adls2.file_manager.ADLS2FileHandle | import dagster._check as check
from dagster._core.storage.file_manager import FileHandle, FileManager, TempfileManager, check_file_like_obj
class ADLS2FileHandle(FileHandle):
"""A reference to a file on ADLS2."""
def __init__(self, account: str, file_system: str, key: str):
self._account = check.str_p... |
class ADLS2FileHandle(FileHandle):
'''A reference to a file on ADLS2.'''
def __init__(self, account: str, file_system: str, key: str):
pass
@property
def account(self) -> str:
'''str: The name of the ADLS2 account.'''
pass
@property
def file_system(self) -> str:
... | 12 | 6 | 3 | 0 | 2 | 1 | 1 | 0.3 | 1 | 1 | 0 | 0 | 6 | 3 | 6 | 27 | 32 | 6 | 20 | 15 | 8 | 6 | 15 | 10 | 8 | 1 | 5 | 0 | 6 |
22,520 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/adls2/file_manager.py | dagster_azure.adls2.file_manager.ADLS2FileManager | from contextlib import contextmanager
import io
import dagster._check as check
from typing import Any, Optional
import uuid
from dagster_azure.adls2.utils import DataLakeServiceClient
from dagster._core.storage.file_manager import FileHandle, FileManager, TempfileManager, check_file_like_obj
class ADLS2FileManager(Fil... |
class ADLS2FileManager(FileManager):
def __init__(self, adls2_client: DataLakeServiceClient, file_system: str, prefix: str):
pass
def copy_handle_to_local_temp(self, file_handle: ADLS2FileHandle):
pass
def _download_if_not_cached(self, file_handle: ADLS2FileHandle):
pass
@con... | 13 | 0 | 5 | 0 | 5 | 0 | 1 | 0.02 | 1 | 4 | 2 | 0 | 11 | 5 | 11 | 37 | 68 | 13 | 54 | 28 | 41 | 1 | 48 | 24 | 36 | 2 | 5 | 2 | 14 |
22,521 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/adls2/io_manager.py | dagster_azure.adls2.io_manager.ADLS2PickleIOManager | from dagster._utils.cached_method import cached_method
from typing import Any, Union
from dagster_azure.adls2.resources import ADLS2Resource
from dagster import InputContext, OutputContext, ResourceDependency, _check as check, io_manager
from pydantic import Field
from dagster._config.pythonic_config import Configurabl... |
class ADLS2PickleIOManager(ConfigurableIOManager):
'''Persistent IO manager using Azure Data Lake Storage Gen2 for storage.
Serializes objects via pickling. Suitable for objects storage for distributed executors, so long
as each execution node has network connectivity and credentials for ADLS and the backi... | 8 | 1 | 4 | 0 | 4 | 0 | 1 | 2 | 1 | 3 | 1 | 1 | 3 | 0 | 4 | 141 | 104 | 20 | 28 | 10 | 20 | 56 | 13 | 8 | 8 | 1 | 10 | 0 | 4 |
22,522 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/adls2/io_manager.py | dagster_azure.adls2.io_manager.ConfigurablePickledObjectADLS2IOManager | from dagster._annotations import deprecated
@deprecated(breaking_version='2.0', additional_warn_text='Please use ADLS2PickleIOManager instead.')
class ConfigurablePickledObjectADLS2IOManager(ADLS2PickleIOManager):
"""Renamed to ADLS2PickleIOManager. See ADLS2PickleIOManager for documentation."""
pass | @deprecated(breaking_version='2.0', additional_warn_text='Please use ADLS2PickleIOManager instead.')
class ConfigurablePickledObjectADLS2IOManager(ADLS2PickleIOManager):
'''Renamed to ADLS2PickleIOManager. See ADLS2PickleIOManager for documentation.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 141 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 11 | 0 | 0 |
22,523 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/adls2/io_manager.py | dagster_azure.adls2.io_manager.PickledObjectADLS2IOManager | from dagster_azure.adls2.utils import DataLakeLeaseClient, DataLakeServiceClient, ResourceNotFoundError
from collections.abc import Iterator
from typing import Any, Union
from dagster._utils import PICKLE_PROTOCOL
from contextlib import contextmanager
from dagster import InputContext, OutputContext, ResourceDependency,... |
class PickledObjectADLS2IOManager(UPathIOManager):
def __init__(self, file_system: str, adls2_client: DataLakeServiceClient, blob_client: BlobServiceClient, lease_client_constructor: Union[type[DataLakeLeaseClient], type[BlobLeaseClient]], prefix: str='dagster', lease_duration: int=60):
pass
def get_... | 13 | 0 | 6 | 0 | 6 | 0 | 1 | 0.04 | 1 | 7 | 0 | 0 | 11 | 7 | 11 | 65 | 83 | 13 | 67 | 39 | 46 | 3 | 57 | 28 | 45 | 2 | 7 | 2 | 16 |
22,524 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/adls2/resources.py | dagster_azure.adls2.resources.ADLS2BaseResource | from dagster import Config, ConfigurableResource, Field as DagsterField, Permissive, Selector, StringSource, resource
from typing import Any, Union
from pydantic import Field
class ADLS2BaseResource(ConfigurableResource):
storage_account: str = Field(description='The storage account name.')
credential: Union[A... |
class ADLS2BaseResource(ConfigurableResource):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 3 | 4 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
22,525 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/adls2/resources.py | dagster_azure.adls2.resources.ADLS2DefaultAzureCredential | from typing import Any, Union
from typing_extensions import Literal
from dagster import Config, ConfigurableResource, Field as DagsterField, Permissive, Selector, StringSource, resource
class ADLS2DefaultAzureCredential(Config):
credential_type: Literal['default_azure_credential'] = 'default_azure_credential'
... |
class ADLS2DefaultAzureCredential(Config):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 2 | 2 | 0 | 3 | 2 | 2 | 0 | 1 | 0 | 0 |
22,526 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/adls2/resources.py | dagster_azure.adls2.resources.ADLS2Key | from dagster import Config, ConfigurableResource, Field as DagsterField, Permissive, Selector, StringSource, resource
from typing_extensions import Literal
class ADLS2Key(Config):
credential_type: Literal['key'] = 'key'
key: str |
class ADLS2Key(Config):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 2 | 2 | 0 | 3 | 2 | 2 | 0 | 1 | 0 | 0 |
22,527 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/adls2/resources.py | dagster_azure.adls2.resources.ADLS2Resource | from dagster_azure.adls2.utils import DataLakeServiceClient, create_adls2_client
from azure.identity import DefaultAzureCredential
from azure.storage.filedatalake import DataLakeLeaseClient
from dagster_azure.blob.utils import BlobServiceClient, create_blob_client
from typing import Any, Union
from dagster._utils.cache... |
class ADLS2Resource(ADLS2BaseResource):
'''Resource containing clients to access Azure Data Lake Storage Gen2.
Contains a client for both the Data Lake and Blob APIs, to work around the limitations
of each.
Example usage:
Attach this resource to your Definitions to be used by assets and jobs.
.... | 14 | 1 | 3 | 0 | 3 | 0 | 1 | 2 | 1 | 4 | 2 | 0 | 4 | 0 | 5 | 5 | 92 | 20 | 24 | 11 | 10 | 48 | 14 | 6 | 8 | 3 | 2 | 1 | 7 |
22,528 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/adls2/resources.py | dagster_azure.adls2.resources.ADLS2SASToken | from typing_extensions import Literal
from dagster import Config, ConfigurableResource, Field as DagsterField, Permissive, Selector, StringSource, resource
class ADLS2SASToken(Config):
credential_type: Literal['sas'] = 'sas'
token: str |
class ADLS2SASToken(Config):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 2 | 2 | 0 | 3 | 2 | 2 | 0 | 1 | 0 | 0 |
22,529 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/blob/compute_log_manager.py | dagster_azure.blob.compute_log_manager.AzureBlobComputeLogManager | from collections.abc import Iterator, Mapping, Sequence
from dagster_azure.blob.utils import create_blob_client, generate_blob_sas
from dagster._core.storage.local_compute_log_manager import IO_TYPE_EXTENSION, LocalComputeLogManager
import os
from azure.storage.blob import BlobSasPermissions, BlobServiceClient, UserDel... |
class AzureBlobComputeLogManager(TruncatingCloudStorageComputeLogManager, ConfigurableClass):
'''Logs op compute function stdout and stderr to Azure Blob Storage.
This is also compatible with Azure Data Lake Storage.
Users should not instantiate this class directly. Instead, use a YAML block in ``dagster.y... | 28 | 2 | 12 | 1 | 11 | 0 | 2 | 0.31 | 2 | 17 | 5 | 0 | 19 | 13 | 21 | 83 | 355 | 48 | 236 | 112 | 181 | 73 | 136 | 76 | 114 | 6 | 6 | 2 | 38 |
22,530 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/blob/fake_blob_client.py | dagster_azure.blob.fake_blob_client.FakeBlob | from dataclasses import dataclass
@dataclass
class FakeBlob:
name: str
url: str | @dataclass
class FakeBlob:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
22,531 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/blob/fake_blob_client.py | dagster_azure.blob.fake_blob_client.FakeBlobClient | from dagster_azure.blob.utils import ResourceNotFoundError
import io
import random
from contextlib import contextmanager
class FakeBlobClient:
"""Stateful mock of an Blob blob client for testing."""
def __init__(self):
self.contents = None
self.lease = None
def start_copy_from_url(self, u... |
class FakeBlobClient:
'''Stateful mock of an Blob blob client for testing.'''
def __init__(self):
pass
def start_copy_from_url(self, url):
pass
def get_blob_properties(self):
pass
def upload_blob(self, contents, overwrite=False, lease=None):
pass
@property
... | 10 | 1 | 6 | 0 | 6 | 0 | 3 | 0.05 | 0 | 6 | 1 | 0 | 7 | 2 | 7 | 7 | 53 | 7 | 44 | 12 | 34 | 2 | 35 | 10 | 27 | 9 | 0 | 2 | 18 |
22,532 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/blob/fake_blob_client.py | dagster_azure.blob.fake_blob_client.FakeBlobContainerClient | class FakeBlobContainerClient:
"""Stateful mock of an Blob container client for testing."""
def __init__(self, account_name, container_name):
self._container = {}
self._account_name = account_name
self._container_name = container_name
@property
def account_name(self):
r... | class FakeBlobContainerClient:
'''Stateful mock of an Blob container client for testing.'''
def __init__(self, account_name, container_name):
pass
@property
def account_name(self):
pass
@property
def container_name(self):
pass
@property
def url(self):
pas... | 16 | 1 | 3 | 0 | 3 | 0 | 2 | 0.05 | 0 | 4 | 2 | 0 | 12 | 3 | 12 | 12 | 56 | 12 | 42 | 24 | 26 | 2 | 38 | 21 | 25 | 3 | 0 | 2 | 19 |
22,533 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/blob/fake_blob_client.py | dagster_azure.blob.fake_blob_client.FakeBlobDownloader | class FakeBlobDownloader:
"""Mock of a Blob file downloader for testing."""
def __init__(self, contents):
self.contents = contents
def readall(self):
return self.contents
def readinto(self, fileobj):
fileobj.write(self.contents) | class FakeBlobDownloader:
'''Mock of a Blob file downloader for testing.'''
def __init__(self, contents):
pass
def readall(self):
pass
def readinto(self, fileobj):
pass | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.14 | 0 | 0 | 0 | 0 | 3 | 1 | 3 | 3 | 11 | 3 | 7 | 5 | 3 | 1 | 7 | 5 | 3 | 1 | 0 | 0 | 3 |
22,534 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/blob/fake_blob_client.py | dagster_azure.blob.fake_blob_client.FakeBlobServiceClient | from unittest import mock
class FakeBlobServiceClient:
"""Stateful mock of an Blob service client for testing.
Wraps a ``mock.MagicMock``. Containers are implemented using an in-memory dict.
"""
def __init__(self, account_name, credential='fake-creds'):
self._account_name = account_name
... |
class FakeBlobServiceClient:
'''Stateful mock of an Blob service client for testing.
Wraps a ``mock.MagicMock``. Containers are implemented using an in-memory dict.
'''
def __init__(self, account_name, credential='fake-creds'):
pass
@property
def account_name(self):
pass
@p... | 12 | 1 | 3 | 0 | 3 | 0 | 1 | 0.13 | 0 | 2 | 1 | 0 | 7 | 3 | 7 | 7 | 35 | 8 | 24 | 15 | 12 | 3 | 18 | 11 | 10 | 1 | 0 | 0 | 7 |
22,535 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/fakes/fake_adls2_resource.py | dagster_azure.fakes.fake_adls2_resource.FakeADLS2FileClient | import io
from dagster_azure.adls2.utils import ResourceNotFoundError
class FakeADLS2FileClient:
"""Stateful mock of an ADLS2 file client for testing."""
def __init__(self, name, fs_client):
self.name = name
self.contents = None
self._lease = None
self.fs_client = fs_client
... |
class FakeADLS2FileClient:
'''Stateful mock of an ADLS2 file client for testing.'''
def __init__(self, name, fs_client):
pass
@property
def lease(self):
pass
def get_file_properties(self):
pass
def upload_data(self, contents, overwrite=False, lease=None):
pass... | 8 | 1 | 6 | 0 | 6 | 0 | 3 | 0.03 | 0 | 4 | 1 | 1 | 6 | 4 | 6 | 6 | 45 | 6 | 38 | 13 | 30 | 1 | 33 | 12 | 26 | 8 | 0 | 2 | 19 |
22,536 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/fakes/fake_adls2_resource.py | dagster_azure.fakes.fake_adls2_resource.FakeADLS2FileDownloader | class FakeADLS2FileDownloader:
"""Mock of an ADLS2 file downloader for testing."""
def __init__(self, contents):
self.contents = contents
def readall(self):
return self.contents
def readinto(self, fileobj):
fileobj.write(self.contents) | class FakeADLS2FileDownloader:
'''Mock of an ADLS2 file downloader for testing.'''
def __init__(self, contents):
pass
def readall(self):
pass
def readinto(self, fileobj):
pass | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.14 | 0 | 0 | 0 | 1 | 3 | 1 | 3 | 3 | 11 | 3 | 7 | 5 | 3 | 1 | 7 | 5 | 3 | 1 | 0 | 0 | 3 |
22,537 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/fakes/fake_adls2_resource.py | dagster_azure.fakes.fake_adls2_resource.FakeADLS2FilesystemClient | class FakeADLS2FilesystemClient:
"""Stateful mock of an ADLS2 filesystem client for testing."""
def __init__(self, account_name, file_system_name):
self._file_system: dict[str, FakeADLS2FileClient] = {}
self._account_name = account_name
self._file_system_name = file_system_name
@pr... | class FakeADLS2FilesystemClient:
'''Stateful mock of an ADLS2 filesystem client for testing.'''
def __init__(self, account_name, file_system_name):
pass
@property
def account_name(self):
pass
@property
def file_system_name(self):
pass
def keys(self):
pass
... | 12 | 1 | 3 | 0 | 3 | 0 | 1 | 0.15 | 0 | 5 | 1 | 1 | 9 | 3 | 9 | 9 | 40 | 9 | 27 | 16 | 15 | 4 | 25 | 14 | 15 | 3 | 0 | 2 | 11 |
22,538 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/fakes/fake_adls2_resource.py | dagster_azure.fakes.fake_adls2_resource.FakeADLS2Resource | from typing import Any, Optional
from dagster._config.pythonic_config import ConfigurableResource
from dagster_azure.blob import FakeBlobServiceClient
from dagster._utils.cached_method import cached_method
class FakeADLS2Resource(ConfigurableResource):
"""Stateful mock of an ADLS2Resource for testing.
Wraps a... |
class FakeADLS2Resource(ConfigurableResource):
'''Stateful mock of an ADLS2Resource for testing.
Wraps a ``mock.MagicMock``. Containers are implemented using an in-memory dict.
'''
@classmethod
def _is_dagster_maintained(cls) -> bool:
pass
@property
@cached_method
def adls2_clie... | 11 | 1 | 2 | 0 | 2 | 0 | 1 | 0.18 | 1 | 4 | 2 | 1 | 3 | 0 | 4 | 130 | 26 | 6 | 17 | 10 | 6 | 3 | 11 | 6 | 6 | 1 | 9 | 0 | 4 |
22,539 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/fakes/fake_adls2_resource.py | dagster_azure.fakes.fake_adls2_resource.FakeADLS2ServiceClient | from unittest import mock
class FakeADLS2ServiceClient:
"""Stateful mock of an ADLS2 service client for testing.
Wraps a ``mock.MagicMock``. Containers are implemented using an in-memory dict.
"""
def __init__(self, account_name, credential='fake-creds'):
self._account_name = account_name
... |
class FakeADLS2ServiceClient:
'''Stateful mock of an ADLS2 service client for testing.
Wraps a ``mock.MagicMock``. Containers are implemented using an in-memory dict.
'''
def __init__(self, account_name, credential='fake-creds'):
pass
@property
def account_name(self):
pass
... | 10 | 1 | 3 | 0 | 3 | 0 | 1 | 0.14 | 0 | 2 | 1 | 1 | 6 | 3 | 6 | 6 | 31 | 7 | 21 | 13 | 11 | 3 | 16 | 10 | 9 | 1 | 0 | 0 | 6 |
22,540 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-azure/dagster_azure/fakes/fake_adls2_resource.py | dagster_azure.fakes.fake_adls2_resource.FakeLeaseClient | import random
class FakeLeaseClient:
def __init__(self, client):
self.client = client
self.id = None
self.client._lease = self
def acquire(self, lease_duration=-1):
if self.id is None:
self.id = random.randint(0, 2 ** 9)
else:
raise Exception('L... |
class FakeLeaseClient:
def __init__(self, client):
pass
def acquire(self, lease_duration=-1):
pass
def release(self):
pass
def is_valid(self, lease):
pass | 5 | 0 | 5 | 0 | 4 | 1 | 2 | 0.19 | 0 | 1 | 0 | 1 | 4 | 2 | 4 | 4 | 22 | 4 | 16 | 7 | 11 | 3 | 15 | 7 | 10 | 2 | 0 | 1 | 6 |
22,541 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-celery/dagster_celery/config.py | dagster_celery.config.dict_wrapper | class dict_wrapper:
"""Wraps a dict to convert `obj['attr']` to `obj.attr`."""
def __init__(self, dictionary):
self.__dict__ = dictionary | class dict_wrapper:
'''Wraps a dict to convert `obj['attr']` to `obj.attr`.'''
def __init__(self, dictionary):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.33 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 5 | 1 | 3 | 3 | 1 | 1 | 3 | 3 | 1 | 1 | 0 | 0 | 1 |
22,542 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-celery/dagster_celery/executor.py | dagster_celery.executor.CeleryExecutor | from dagster_celery.defaults import broker_url, result_backend
from dagster._core.execution.retries import RetryMode, get_retries_config
from dagster_celery.config import DEFAULT_CONFIG, dict_wrapper
from dagster import Executor, Field, Noneable, Permissive, StringSource, _check as check, executor, multiple_process_exe... |
class CeleryExecutor(Executor):
def __init__(self, retries, broker=None, backend=None, include=None, config_source=None):
pass
@property
def retries(self):
pass
def execute(self, plan_context, execution_plan):
pass
@staticmethod
def for_cli(broker=None, backend=None, i... | 8 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 4 | 5 | 5 | 5 | 46 | 5 | 41 | 21 | 25 | 0 | 16 | 12 | 9 | 1 | 1 | 0 | 5 |
22,543 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-celery/dagster_celery/launcher.py | dagster_celery.launcher.CeleryRunLauncher | from dagster_celery.tags import DAGSTER_CELERY_QUEUE_TAG, DAGSTER_CELERY_RUN_PRIORITY_TAG, DAGSTER_CELERY_TASK_ID_TAG
from dagster._core.events import EngineEventData
from typing import TYPE_CHECKING, Any, Optional
from dagster._serdes import ConfigurableClass, ConfigurableClassData, pack_value
from dagster._grpc.types... |
class CeleryRunLauncher(RunLauncher, ConfigurableClass):
'''Dagster [Run Launcher](https://docs.dagster.io/guides/deploy/execution/run-launchers) which
starts runs as Celery tasks.
'''
def __init__(self, default_queue: str, broker: Optional[str]=None, backend: Optional[str]=None, include: Optional[lis... | 20 | 1 | 15 | 2 | 14 | 0 | 1 | 0.02 | 2 | 9 | 2 | 0 | 11 | 7 | 13 | 45 | 225 | 34 | 187 | 67 | 150 | 4 | 70 | 44 | 56 | 4 | 5 | 1 | 17 |
22,544 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-celery-docker/dagster_celery_docker/executor.py | dagster_celery_docker.executor.CeleryDockerExecutor | from dagster import DagsterInstance, Executor, Field, Permissive, StringSource, _check as check, executor, multiple_process_executor_requirements
from dagster_celery.defaults import broker_url, result_backend
from dagster_celery.config import DEFAULT_CONFIG, dict_wrapper
from dagster._core.execution.retries import Retr... |
class CeleryDockerExecutor(Executor):
def __init__(self, retries, docker_config, broker=None, backend=None, include=None, config_source=None):
pass
@property
def retries(self):
pass
def execute(self, plan_context, execution_plan):
pass
def app_args(self):
pass | 6 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 4 | 6 | 4 | 4 | 36 | 3 | 33 | 20 | 19 | 0 | 14 | 11 | 9 | 1 | 1 | 0 | 4 |
22,545 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-celery-k8s/dagster_celery_k8s/executor.py | dagster_celery_k8s.executor.CeleryK8sJobExecutor | from dagster import DagsterEvent, DagsterEventType, DagsterInstance, Executor, _check as check, executor, multiple_process_executor_requirements
from dagster_celery.config import DEFAULT_CONFIG, dict_wrapper
from dagster_k8s import DagsterK8sJobConfig, construct_dagster_k8s_job
from dagster._core.execution.retries impo... |
class CeleryK8sJobExecutor(Executor):
def __init__(self, retries, broker=None, backend=None, include=None, config_source=None, job_config=None, job_namespace=None, load_incluster_config=False, kubeconfig_file=None, repo_location_name=None, job_wait_timeout=None, per_step_k8s_config=None):
pass
@proper... | 6 | 0 | 15 | 1 | 14 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 4 | 12 | 4 | 4 | 64 | 7 | 57 | 33 | 36 | 0 | 24 | 18 | 18 | 2 | 1 | 1 | 5 |
22,546 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-celery-k8s/dagster_celery_k8s/launcher.py | dagster_celery_k8s.launcher.CeleryK8sRunLauncher | from dagster._serdes import ConfigurableClass, ConfigurableClassData
from dagster._utils.merger import merge_dicts
from dagster_k8s.client import DagsterKubernetesClient
import sys
import kubernetes
from typing import TYPE_CHECKING, Optional, cast
from dagster._core.launcher.base import CheckRunHealthResult, WorkerStat... | null | 15 | 1 | 28 | 3 | 24 | 1 | 2 | 0.11 | 2 | 13 | 9 | 0 | 8 | 20 | 10 | 42 | 319 | 47 | 249 | 85 | 208 | 28 | 103 | 57 | 90 | 5 | 5 | 2 | 21 |
22,547 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-census/dagster_census/resources.py | dagster_census.resources.CensusResource | import time
from requests.auth import HTTPBasicAuth
from typing import Any, Optional
import datetime
import json
from dagster import Failure, Field, StringSource, __version__, get_dagster_logger, resource
from requests.exceptions import RequestException
from dagster_census.types import CensusOutput
import requests
from... |
class CensusResource:
'''This class exposes methods on top of the Census REST API.'''
def __init__(self, api_key: str, request_max_retries: int=3, request_retry_delay: float=0.25, log: logging.Logger=get_dagster_logger()):
pass
@property
def _api_key(self):
pass
@property
def a... | 14 | 9 | 19 | 3 | 11 | 5 | 2 | 0.47 | 0 | 13 | 1 | 0 | 11 | 4 | 11 | 11 | 228 | 40 | 128 | 53 | 95 | 60 | 67 | 31 | 55 | 6 | 0 | 3 | 20 |
22,548 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-census/dagster_census/types.py | dagster_census.types.CensusOutput | from collections.abc import Mapping
from typing import Any, NamedTuple
class CensusOutput(NamedTuple('_CensusOutput', [('sync_run', Mapping[str, Any]), ('source', Mapping[str, Any]), ('destination', Mapping[str, Any])])):
"""Contains recorded information about the state of a Census sync after a sync completes.
... |
class CensusOutput(NamedTuple('_CensusOutput', [('sync_run', Mapping[str, Any]), ('source', Mapping[str, Any]), ('destination', Mapping[str, Any])])):
'''Contains recorded information about the state of a Census sync after a sync completes.
Args:
sync_run (Dict[str, Any]):
The details of th... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 1 | 10 | 10 | 0 | 9 | 1 | 1 | 0 | 0 | 1 | 0 | 0 |
22,549 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dask/dagster_dask/executor.py | dagster_dask.executor.DaskExecutor | from dagster._core.execution.plan.plan import ExecutionPlan
from dagster import Executor, Field, Permissive, Selector, StringSource, _check as check, multiple_process_executor_requirements
import dask
from dagster._core.errors import raise_execution_interrupts
import dask.distributed
from dagster._utils import iterate_... |
class DaskExecutor(Executor):
def __init__(self, cluster_type, cluster_configuration):
pass
@property
def retries(self):
pass
def execute(self, plan_context: PlanOrchestrationContext, execution_plan: ExecutionPlan):
pass
def build_dict(self, job_name):
'''Returns ... | 6 | 1 | 38 | 8 | 25 | 5 | 6 | 0.19 | 1 | 5 | 4 | 0 | 4 | 2 | 4 | 4 | 156 | 33 | 103 | 40 | 87 | 20 | 67 | 38 | 52 | 18 | 1 | 5 | 25 |
22,550 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dask/dagster_dask/resources.py | dagster_dask.resources.DaskResource | from dask.distributed import Client
class DaskResource:
def __init__(self, context):
cluster_config = context.resource_config.get('cluster', None)
if cluster_config:
from importlib import import_module
cluster_type, cluster_opts = next(iter(cluster_config.items()))
... |
class DaskResource:
def __init__(self, context):
pass
@property
def cluster(self):
pass
@property
def client(self):
pass
def close(self):
pass | 7 | 0 | 9 | 1 | 7 | 2 | 2 | 0.21 | 0 | 2 | 0 | 0 | 4 | 2 | 4 | 4 | 42 | 8 | 29 | 16 | 21 | 6 | 26 | 14 | 20 | 4 | 0 | 2 | 8 |
22,551 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/databricks.py | dagster_databricks.databricks.AuthTypeEnum | from enum import Enum
class AuthTypeEnum(Enum):
OAUTH_M2M = 'oauth-m2m'
PAT = 'pat'
AZURE_CLIENT_SECRET = 'azure-client-secret'
DEFAULT = 'default' |
class AuthTypeEnum(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
22,552 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/databricks.py | dagster_databricks.databricks.DatabricksClient | import time
from dagster._annotations import public
import dagster._check as check
from databricks.sdk import WorkspaceClient
from typing import IO, Any, Final, Optional
from dagster_databricks.types import DatabricksRunState
import logging
import base64
class DatabricksClient:
"""A thin wrapper over the Databrick... |
class DatabricksClient:
'''A thin wrapper over the Databricks REST API.'''
def __init__(self, host: Optional[str]=None, token: Optional[str]=None, oauth_client_id: Optional[str]=None, oauth_client_secret: Optional[str]=None, azure_client_id: Optional[str]=None, azure_client_secret: Optional[str]=None, azure_t... | 10 | 5 | 23 | 3 | 16 | 4 | 3 | 0.26 | 0 | 10 | 3 | 0 | 7 | 3 | 7 | 7 | 175 | 29 | 116 | 53 | 80 | 30 | 64 | 26 | 56 | 6 | 0 | 2 | 19 |
22,553 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/databricks.py | dagster_databricks.databricks.DatabricksError | class DatabricksError(Exception):
pass | class DatabricksError(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
22,554 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/databricks.py | dagster_databricks.databricks.DatabricksJobRunner | import dagster_pyspark
import dagster
from importlib.metadata import version
from databricks.sdk.service import jobs
from typing import IO, Any, Final, Optional
from collections.abc import Mapping
import logging
import requests.exceptions
import dagster_databricks
import dagster._check as check
import time
class Datab... |
class DatabricksJobRunner:
'''Submits jobs created using Dagster config to Databricks, and monitors their progress.
Args:
host (str): Databricks host, e.g. https://uksouth.azuredatabricks.net.
token (str): Databricks authentication token.
poll_interval_sec (float): How often to poll Dat... | 7 | 5 | 44 | 3 | 38 | 3 | 5 | 0.1 | 0 | 10 | 1 | 0 | 5 | 5 | 5 | 5 | 233 | 22 | 191 | 54 | 163 | 20 | 80 | 32 | 74 | 16 | 0 | 3 | 25 |
22,555 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/databricks.py | dagster_databricks.databricks.WorkspaceClientFactory | from databricks.sdk import WorkspaceClient
from dagster_databricks.version import __version__
import os
from databricks.sdk.core import Config, DefaultCredentials, azure_service_principal, oauth_service_principal, pat_auth
from typing import IO, Any, Final, Optional
class WorkspaceClientFactory:
def __init__(self... |
class WorkspaceClientFactory:
def __init__(self, host: Optional[str], token: Optional[str], oauth_client_id: Optional[str], oauth_client_secret: Optional[str], azure_client_id: Optional[str], azure_client_secret: Optional[str], azure_tenant_id: Optional[str]):
'''Initialize the Databricks Workspace client... | 10 | 3 | 27 | 0 | 24 | 3 | 3 | 0.14 | 0 | 3 | 1 | 0 | 3 | 1 | 6 | 6 | 170 | 7 | 145 | 47 | 105 | 20 | 41 | 13 | 34 | 6 | 0 | 2 | 19 |
22,556 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/databricks_pyspark_step_launcher.py | dagster_databricks.databricks_pyspark_step_launcher.DatabricksConfig | import os.path
from collections.abc import Iterator, Mapping, Sequence
from typing import Any, Optional, cast
class DatabricksConfig:
"""Represents configuration required by Databricks to run jobs.
Instances of this class will be created when a Databricks step is launched and will contain
all configuratio... |
class DatabricksConfig:
'''Represents configuration required by Databricks to run jobs.
Instances of this class will be created when a Databricks step is launched and will contain
all configuration and secrets required to set up storage and environment variables within
the Databricks environment. The i... | 7 | 7 | 13 | 1 | 8 | 4 | 2 | 0.8 | 0 | 4 | 0 | 0 | 6 | 3 | 6 | 6 | 96 | 17 | 46 | 25 | 34 | 37 | 33 | 20 | 26 | 3 | 0 | 1 | 10 |
22,557 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/databricks_pyspark_step_launcher.py | dagster_databricks.databricks_pyspark_step_launcher.DatabricksPySparkStepLauncher | from dagster._core.log_manager import DagsterLogManager
from dagster_pyspark.utils import build_pyspark_zip
import time
import os.path
from typing import Any, Optional, cast
from dagster._core.events.log import EventLogEntry
from dagster._core.definitions.step_launcher import StepLauncher, StepRunRef, _step_launcher_su... | @_step_launcher_supersession
class DatabricksPySparkStepLauncher(StepLauncher):
def __init__(self, run_config: Mapping[str, Any], permissions: Mapping[str, Any], databricks_host: Optional[str], secrets_to_env_variables: Sequence[Mapping[str, Any]], staging_prefix: str, wait_for_logs: bool, max_completion_wait_time... | 21 | 4 | 21 | 1 | 19 | 2 | 2 | 0.09 | 1 | 28 | 11 | 0 | 18 | 13 | 18 | 39 | 416 | 35 | 348 | 110 | 297 | 33 | 187 | 75 | 167 | 8 | 5 | 5 | 46 |
22,558 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/pipes.py | dagster_databricks.pipes.PipesDatabricksClient | from dagster._core.execution.context.op_execution_context import OpExecutionContext
from databricks.sdk.service import files, jobs
from dagster._core.definitions.resource_annotation import TreatAsResourceParam
from collections.abc import Iterator, Mapping, Sequence
from dagster._core.pipes.client import PipesClient, Pi... |
class PipesDatabricksClient(BasePipesDatabricksClient, TreatAsResourceParam):
'''Pipes client for databricks.
Args:
client (WorkspaceClient): A databricks `WorkspaceClient` object.
env (Optional[Mapping[str,str]]: An optional dict of environment
variables to pass to the databricks j... | 8 | 2 | 24 | 3 | 18 | 3 | 3 | 0.25 | 2 | 19 | 11 | 0 | 9 | 5 | 10 | 31 | 269 | 38 | 187 | 61 | 153 | 46 | 89 | 36 | 78 | 6 | 5 | 4 | 30 |
22,559 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/pipes.py | dagster_databricks.pipes.PipesDbfsContextInjector | import json
from dagster._core.pipes.client import PipesClient, PipesClientCompletedInvocation, PipesContextInjector, PipesMessageReader
from contextlib import ExitStack, contextmanager
from dagster_pipes import PipesBlobStoreMessageWriter, PipesContextData, PipesExtras, PipesParams
import base64
import os
from databri... |
class PipesDbfsContextInjector(PipesContextInjector):
'''A context injector that injects context into a Databricks job by writing a JSON file to DBFS.
Args:
client (WorkspaceClient): A databricks `WorkspaceClient` object.
'''
def __init__(self, *, client: WorkspaceClient):
pass
@co... | 5 | 2 | 8 | 1 | 5 | 3 | 1 | 0.71 | 1 | 3 | 0 | 0 | 3 | 1 | 3 | 25 | 35 | 6 | 17 | 9 | 12 | 12 | 12 | 7 | 8 | 1 | 5 | 1 | 3 |
22,560 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/pipes.py | dagster_databricks.pipes.PipesDbfsLogReader | from databricks.sdk import WorkspaceClient
from typing import Any, Literal, Optional, TextIO, Union
from dagster._core.pipes.utils import PipesBlobStoreMessageReader, PipesChunkedLogReader, PipesLogReader, open_pipes_session
from databricks.sdk.service import files, jobs
import base64
from dagster_pipes import PipesBlo... |
class PipesDbfsLogReader(PipesChunkedLogReader):
'''Reader that reads a log file from DBFS.
Args:
interval (float): interval in seconds between attempts to download a log chunk
remote_log_name (Literal["stdout", "stderr"]): The name of the log file to read.
target_stream (TextIO): The s... | 9 | 1 | 11 | 0 | 10 | 0 | 2 | 0.19 | 1 | 7 | 0 | 0 | 6 | 6 | 6 | 40 | 83 | 8 | 64 | 31 | 47 | 12 | 44 | 21 | 37 | 6 | 6 | 3 | 14 |
22,561 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/pipes.py | dagster_databricks.pipes.PipesDbfsMessageReader | from collections.abc import Iterator, Mapping, Sequence
from typing import Any, Literal, Optional, TextIO, Union
from contextlib import ExitStack, contextmanager
from databricks.sdk import WorkspaceClient
from databricks.sdk.service import files, jobs
import dagster._check as check
import base64
from dagster._core.pipe... |
class PipesDbfsMessageReader(PipesBlobStoreMessageReader):
'''Message reader that reads messages by periodically reading message chunks from an
automatically-generated temporary directory on DBFS.
If `log_readers` is passed, this reader will also start the passed readers
when the first message is recei... | 7 | 1 | 10 | 0 | 9 | 1 | 1 | 0.38 | 1 | 12 | 2 | 0 | 5 | 2 | 5 | 43 | 69 | 7 | 45 | 21 | 31 | 17 | 26 | 12 | 20 | 2 | 7 | 1 | 7 |
22,562 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/resources.py | dagster_databricks.resources.AzureServicePrincipalCredentials | from pydantic import Field, model_validator
from dagster import Config, ConfigurableResource, IAttachDifferentObjectToOpContext, resource
class AzureServicePrincipalCredentials(Config):
"""Azure service principal credentials for Azure Databricks.
See https://learn.microsoft.com/en-us/azure/databricks/dev-tool... |
class AzureServicePrincipalCredentials(Config):
'''Azure service principal credentials for Azure Databricks.
See https://learn.microsoft.com/en-us/azure/databricks/dev-tools/auth#--azure-service-principal-authentication.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 2 | 4 | 4 | 3 | 3 | 4 | 4 | 3 | 0 | 1 | 0 | 0 |
22,563 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/resources.py | dagster_databricks.resources.DatabricksClientResource | from dagster_databricks.databricks import DatabricksClient
from pydantic import Field, model_validator
from typing import Any, Optional
from dagster import Config, ConfigurableResource, IAttachDifferentObjectToOpContext, resource
class DatabricksClientResource(ConfigurableResource, IAttachDifferentObjectToOpContext):
... |
class DatabricksClientResource(ConfigurableResource, IAttachDifferentObjectToOpContext):
'''Resource which provides a Python client for interacting with Databricks within an
op or asset.
'''
@model_validator(mode='before')
def has_token_or_oauth_credentials(cls, values: dict[str, Any]) -> dict[str,... | 7 | 1 | 11 | 1 | 10 | 0 | 2 | 0.09 | 2 | 6 | 1 | 0 | 3 | 0 | 4 | 4 | 80 | 7 | 70 | 21 | 63 | 6 | 33 | 19 | 28 | 3 | 1 | 1 | 8 |
22,564 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/resources.py | dagster_databricks.resources.OauthCredentials | from dagster import Config, ConfigurableResource, IAttachDifferentObjectToOpContext, resource
from pydantic import Field, model_validator
class OauthCredentials(Config):
"""OAuth credentials for Databricks.
See https://docs.databricks.com/dev-tools/api/latest/authentication.html#oauth-2-0.
"""
client_... |
class OauthCredentials(Config):
'''OAuth credentials for Databricks.
See https://docs.databricks.com/dev-tools/api/latest/authentication.html#oauth-2-0.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 2 | 3 | 3 | 2 | 3 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
22,565 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/types.py | dagster_databricks.types.DatabricksRunLifeCycleState | from enum import Enum
class DatabricksRunLifeCycleState(str, Enum):
"""See https://docs.databricks.com/dev-tools/api/2.0/jobs.html#jobsrunlifecyclestate."""
BLOCKED = 'BLOCKED'
INTERNAL_ERROR = 'INTERNAL_ERROR'
QUEUED = 'QUEUED'
PENDING = 'PENDING'
RUNNING = 'RUNNING'
SKIPPED = 'SKIPPED'
... |
class DatabricksRunLifeCycleState(str, Enum):
'''See https://docs.databricks.com/dev-tools/api/2.0/jobs.html#jobsrunlifecyclestate.'''
def has_terminated(self) -> bool:
pass
def is_skipped(self) -> bool:
pass | 3 | 1 | 5 | 0 | 5 | 0 | 1 | 0.05 | 2 | 1 | 0 | 0 | 2 | 0 | 2 | 117 | 23 | 3 | 19 | 12 | 16 | 1 | 14 | 12 | 11 | 1 | 4 | 0 | 2 |
22,566 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/types.py | dagster_databricks.types.DatabricksRunResultState | from enum import Enum
class DatabricksRunResultState(str, Enum):
"""See https://docs.databricks.com/dev-tools/api/2.0/jobs.html#runresultstate."""
CANCELED = 'CANCELED'
FAILED = 'FAILED'
SUCCESS = 'SUCCESS'
TIMEDOUT = 'TIMEDOUT'
def is_successful(self) -> bool:
return self == Databrick... |
class DatabricksRunResultState(str, Enum):
'''See https://docs.databricks.com/dev-tools/api/2.0/jobs.html#runresultstate.'''
def is_successful(self) -> bool:
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.14 | 2 | 1 | 0 | 0 | 1 | 0 | 1 | 116 | 10 | 2 | 7 | 6 | 5 | 1 | 7 | 6 | 5 | 1 | 4 | 0 | 1 |
22,567 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-databricks/dagster_databricks/types.py | dagster_databricks.types.DatabricksRunState | from typing import NamedTuple, Optional
from databricks.sdk.service import jobs
class DatabricksRunState(NamedTuple):
"""Represents the state of a Databricks job run."""
life_cycle_state: Optional['DatabricksRunLifeCycleState']
result_state: Optional['DatabricksRunResultState']
state_message: Optional[... |
class DatabricksRunState(NamedTuple):
'''Represents the state of a Databricks job run.'''
def has_terminated(self) -> bool:
'''Has the job terminated?'''
pass
def is_skipped(self) -> bool:
pass
def is_successful(self) -> bool:
'''Was the job successful?'''
pas... | 6 | 3 | 6 | 0 | 5 | 1 | 2 | 0.12 | 1 | 3 | 2 | 0 | 3 | 0 | 4 | 4 | 33 | 5 | 25 | 6 | 19 | 3 | 12 | 5 | 7 | 3 | 1 | 0 | 6 |
22,568 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-datadog/dagster_datadog/resources.py | dagster_datadog.resources.DatadogClient | from datadog import DogStatsd, api, initialize, statsd
class DatadogClient:
OK, WARNING, CRITICAL, UNKNOWN = (DogStatsd.OK, DogStatsd.WARNING, DogStatsd.CRITICAL, DogStatsd.UNKNOWN)
def __init__(self, api_key: str, app_key: str):
self.api_key = api_key
self.app_key = app_key
initialize... |
class DatadogClient:
def __init__(self, api_key: str, app_key: str):
pass | 2 | 0 | 21 | 2 | 18 | 1 | 2 | 0.08 | 0 | 1 | 0 | 0 | 1 | 3 | 1 | 1 | 30 | 3 | 25 | 7 | 23 | 2 | 9 | 7 | 7 | 2 | 0 | 1 | 2 |
22,569 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-datadog/dagster_datadog/resources.py | dagster_datadog.resources.DatadogResource | from dagster._annotations import beta
from dagster import ConfigurableResource, resource
from pydantic import Field
@beta
class DatadogResource(ConfigurableResource):
"""This resource is a thin wrapper over the
`dogstatsd library <https://datadogpy.readthedocs.io/en/latest/>`_.
As such, we directly mirror... | @beta
class DatadogResource(ConfigurableResource):
'''This resource is a thin wrapper over the
`dogstatsd library <https://datadogpy.readthedocs.io/en/latest/>`_.
As such, we directly mirror the public API methods of DogStatsd here; you can refer to the
`Datadog documentation <https://docs.datadoghq.com... | 5 | 1 | 2 | 0 | 2 | 0 | 1 | 1.82 | 1 | 2 | 1 | 0 | 1 | 0 | 2 | 2 | 59 | 11 | 17 | 6 | 13 | 31 | 7 | 5 | 4 | 1 | 1 | 0 | 2 |
22,570 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-datahub/dagster_datahub/resources.py | dagster_datahub.resources.DatahubConnection | from typing import Any, Optional
from pydantic import Field
from dagster._config.pythonic_config import Config, ConfigurableResource
class DatahubConnection(Config):
bootstrap: str = Field(description='Kafka Boostrap Servers. Comma delimited')
schema_registry_url: str = Field(description='Schema Registry Locat... |
class DatahubConnection(Config):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 4 | 5 | 0 | 4 | 4 | 3 | 0 | 1 | 0 | 0 |
22,571 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-datahub/dagster_datahub/resources.py | dagster_datahub.resources.DatahubKafkaEmitterResource | from pydantic import Field
from datahub.emitter.kafka_emitter import DEFAULT_MCE_KAFKA_TOPIC, DEFAULT_MCP_KAFKA_TOPIC, MCE_KEY, MCP_KEY, DatahubKafkaEmitter, KafkaEmitterConfig
from dagster._config.pythonic_config import Config, ConfigurableResource
class DatahubKafkaEmitterResource(ConfigurableResource):
connecti... |
class DatahubKafkaEmitterResource(ConfigurableResource):
@classmethod
def _is_dagster_maintained(cls) -> bool:
pass
def get_emitter(self) -> DatahubKafkaEmitter:
pass | 4 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 2 | 128 | 19 | 2 | 17 | 5 | 13 | 0 | 7 | 4 | 4 | 1 | 9 | 0 | 2 |
22,572 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-datahub/dagster_datahub/resources.py | dagster_datahub.resources.DatahubRESTEmitterResource | from pydantic import Field
from dagster._config.pythonic_config import Config, ConfigurableResource
from datahub.emitter.rest_emitter import DatahubRestEmitter
from typing import Any, Optional
class DatahubRESTEmitterResource(ConfigurableResource):
connection: str = Field(description='Datahub GMS Server')
toke... |
class DatahubRESTEmitterResource(ConfigurableResource):
@classmethod
def _is_dagster_maintained(cls) -> bool:
pass
def get_emitter(self) -> DatahubRestEmitter:
pass | 4 | 0 | 8 | 0 | 8 | 0 | 1 | 0.04 | 1 | 1 | 0 | 0 | 1 | 0 | 2 | 128 | 30 | 2 | 28 | 15 | 24 | 1 | 16 | 14 | 13 | 1 | 9 | 0 | 2 |
22,573 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/cloud/asset_defs.py | dagster_dbt.cloud.asset_defs.DbtCloudCacheableAssetsDefinition | from typing import Any, Callable, Optional, Union, cast
import json
from dagster._core.definitions.assets.definition.asset_spec import AssetSpec
import dagster._check as check
import shlex
from dagster_dbt.asset_specs import build_dbt_asset_specs
from dagster_dbt.asset_utils import DAGSTER_DBT_UNIQUE_ID_METADATA_KEY, d... |
class DbtCloudCacheableAssetsDefinition(CacheableAssetsDefinition):
def __init__(self, dbt_cloud_resource_def: Union[DbtCloudClientResource, ResourceDefinition], job_id: int, node_info_to_asset_key: Callable[[Mapping[str, Any]], AssetKey], node_info_to_group_fn: Callable[[Mapping[str, Any]], Optional[str]], node_... | 30 | 2 | 30 | 3 | 21 | 5 | 2 | 0.21 | 1 | 22 | 7 | 0 | 10 | 13 | 13 | 41 | 483 | 63 | 346 | 122 | 286 | 74 | 145 | 84 | 123 | 5 | 5 | 2 | 39 |
22,574 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/cloud/ops.py | dagster_dbt.cloud.ops.DbtCloudRunOpConfig | from dagster_dbt.cloud.resources import DEFAULT_POLL_INTERVAL
from dagster import Config, In, Nothing, Out, Output, op
from typing import Optional
from pydantic import Field
class DbtCloudRunOpConfig(Config):
job_id: int = Field(description='The integer ID of the relevant dbt Cloud job. You can find this value by ... |
class DbtCloudRunOpConfig(Config):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 35 | 1 | 34 | 6 | 33 | 1 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
22,575 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/cloud/resources.py | dagster_dbt.cloud.resources.DbtCloudClient | import json
import time
from dagster_dbt.cloud.types import DbtCloudOutput
import logging
from collections.abc import Mapping, Sequence
import requests
import datetime
from urllib.parse import urlencode, urljoin
from dagster._utils.merger import deep_merge_dicts
from requests.exceptions import RequestException
from typ... |
class DbtCloudClient:
'''This class exposes methods on top of the dbt Cloud REST API v2.
For a complete set of documentation on the dbt Cloud Administrative REST API, including expected
response JSON schemae, see the `dbt Cloud API Docs <https://docs.getdbt.com/dbt-cloud/api-v2>`_.
'''
def __init_... | 25 | 18 | 23 | 2 | 12 | 10 | 2 | 0.83 | 0 | 15 | 2 | 1 | 22 | 8 | 22 | 22 | 541 | 71 | 257 | 100 | 189 | 214 | 122 | 54 | 99 | 8 | 0 | 3 | 44 |
22,576 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/cloud/resources.py | dagster_dbt.cloud.resources.DbtCloudClientResource | from typing import Any, Optional, cast
from dagster import ConfigurableResource, Failure, IAttachDifferentObjectToOpContext, MetadataValue, __version__, _check as check, get_dagster_logger, resource
from pydantic import Field
from dagster._annotations import beta
@beta
class DbtCloudClientResource(ConfigurableResource... | @beta
class DbtCloudClientResource(ConfigurableResource, IAttachDifferentObjectToOpContext):
'''This resource helps interact with dbt Cloud connectors.'''
@classmethod
def _is_dagster_maintained(cls) -> bool:
pass
def get_dbt_client(self) -> DbtCloudClient:
pass
def get_object_to_s... | 6 | 1 | 6 | 0 | 5 | 0 | 1 | 0.05 | 2 | 3 | 1 | 0 | 2 | 0 | 3 | 3 | 63 | 5 | 57 | 12 | 52 | 3 | 15 | 11 | 11 | 1 | 1 | 0 | 3 |
22,577 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/cloud/resources.py | dagster_dbt.cloud.resources.DbtCloudResource | from dagster._annotations import beta
@beta
class DbtCloudResource(DbtCloudClient):
pass | @beta
class DbtCloudResource(DbtCloudClient):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
22,578 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/cloud/resources.py | dagster_dbt.cloud.resources.DbtCloudRunStatus | from enum import Enum
class DbtCloudRunStatus(str, Enum):
QUEUED = 'Queued'
STARTING = 'Starting'
RUNNING = 'Running'
SUCCESS = 'Success'
ERROR = 'Error'
CANCELLED = 'Cancelled' |
class DbtCloudRunStatus(str, Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 7 | 0 | 7 | 7 | 6 | 0 | 7 | 7 | 6 | 0 | 4 | 0 | 0 |
22,579 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/cloud/types.py | dagster_dbt.cloud.types.DbtCloudOutput | from collections.abc import Mapping
from datetime import datetime
from typing import Any, Optional
from dagster._annotations import beta
from dagster._vendored.dateutil.parser import isoparse
import dagster._check as check
@beta
class DbtCloudOutput:
"""The results of executing a dbt Cloud job, along with addition... | @beta
class DbtCloudOutput:
'''The results of executing a dbt Cloud job, along with additional metadata produced from the
job run.
Note that users should not construct instances of this class directly. This class is intended
to be constructed from the JSON output of dbt Cloud commands.
Args:
... | 25 | 1 | 3 | 0 | 3 | 0 | 1 | 0.33 | 0 | 5 | 0 | 0 | 12 | 2 | 12 | 12 | 74 | 14 | 45 | 32 | 17 | 15 | 30 | 17 | 17 | 2 | 0 | 1 | 14 |
22,580 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/core/dbt_cli_event.py | dagster_dbt.core.dbt_cli_event.DbtCliEventMessage | from pathlib import Path
from dagster_dbt.asset_utils import default_metadata_from_dbt_resource_props, get_asset_check_key_for_test, get_checks_on_sources_upstream_of_selected_assets
from dagster_dbt.dbt_project import DbtProject
from functools import cached_property
import dateutil.parser
from dagster_dbt.dagster_dbt_... | null | 36 | 5 | 35 | 3 | 27 | 5 | 3 | 0.21 | 0 | 11 | 2 | 0 | 6 | 1 | 7 | 7 | 267 | 32 | 195 | 56 | 170 | 40 | 78 | 38 | 70 | 16 | 0 | 3 | 23 |
22,581 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/core/dbt_cli_event.py | dagster_dbt.core.dbt_cli_event.EventHistoryMetadata | from typing import AbstractSet, Any, NamedTuple, Optional, TypedDict, Union, cast
class EventHistoryMetadata(NamedTuple):
columns: dict[str, dict[str, Any]]
parents: dict[str, dict[str, Any]] |
class EventHistoryMetadata(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
22,582 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/core/dbt_cli_invocation.py | dagster_dbt.core.dbt_cli_invocation.DbtCliInvocation | from dagster_dbt.compat import BaseAdapter, BaseColumn, BaseRelation
from dagster_dbt.errors import DagsterDbtCliRuntimeError
import copy
from dagster import AssetCheckEvaluation, AssetCheckResult, AssetExecutionContext, AssetMaterialization, AssetObservation, OpExecutionContext, Output, get_dagster_logger
from dagster... | @dataclass
class DbtCliInvocation:
'''The representation of an invoked dbt command.
Args:
process (subprocess.Popen): The process running the dbt command.
manifest (Mapping[str, Any]): The dbt manifest blob.
project (Optional[DbtProject]): The dbt project.
project_dir (Path): The... | 23 | 13 | 26 | 5 | 14 | 7 | 2 | 0.48 | 0 | 19 | 7 | 0 | 12 | 0 | 13 | 13 | 391 | 77 | 212 | 80 | 163 | 102 | 109 | 45 | 95 | 6 | 0 | 5 | 31 |
22,583 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/core/dbt_cli_invocation.py | dagster_dbt.core.dbt_cli_invocation.RelationData | from typing import Any, Final, NamedTuple, Optional, Union, cast
from dagster_dbt.compat import BaseAdapter, BaseColumn, BaseRelation
class RelationData(NamedTuple):
"""Relation metadata queried from a database."""
name: str
columns: list[BaseColumn] |
class RelationData(NamedTuple):
'''Relation metadata queried from a database.'''
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 |
22,584 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/core/dbt_cli_invocation.py | dagster_dbt.core.dbt_cli_invocation.RelationKey | from typing import Any, Final, NamedTuple, Optional, Union, cast
class RelationKey(NamedTuple):
"""Hashable representation of the information needed to identify a relation in a database."""
database: str
schema: str
identifier: str |
class RelationKey(NamedTuple):
'''Hashable representation of the information needed to identify a relation in a database.'''
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 |
22,585 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/core/dbt_event_iterator.py | dagster_dbt.core.dbt_event_iterator.DbtEventIterator | from dagster_dbt.compat import DBT_PYTHON_VERSION
from dagster._core.definitions.asset_checks.asset_check_evaluation import AssetCheckEvaluation
from dagster._annotations import public
from dagster import AssetCheckResult, AssetMaterialization, AssetObservation, Output, _check as check, get_dagster_logger
from typing i... |
class DbtEventIterator(Iterator[T]):
'''A wrapper around an iterator of dbt events which contains additional methods for
post-processing the events, such as fetching row counts for materialized tables.
'''
def __init__(self, events: Iterator[T], dbt_cli_invocation: 'DbtCliInvocation') -> None:
... | 14 | 5 | 22 | 2 | 14 | 6 | 2 | 0.48 | 1 | 6 | 1 | 0 | 7 | 2 | 7 | 32 | 195 | 25 | 116 | 52 | 72 | 56 | 42 | 19 | 29 | 5 | 5 | 2 | 16 |
22,586 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/core/resource.py | dagster_dbt.core.resource.DbtCliResource | from functools import cache, cached_property
from dagster_dbt.asset_utils import DBT_INDIRECT_SELECTION_ENV, get_updated_cli_invocation_params_for_context
import re
from pathlib import Path
from dagster._utils import pushd
from dagster._core.execution.context.init import InitResourceContext
from dagster_dbt.core.dbt_cl... |
class DbtCliResource(ConfigurableResource):
'''A resource used to execute dbt CLI commands.
Args:
project_dir (str): The path to the dbt project directory. This directory should contain a
`dbt_project.yml`. See https://docs.getdbt.com/reference/dbt_project.yml for more
informati... | 29 | 8 | 32 | 6 | 17 | 10 | 3 | 0.64 | 1 | 17 | 5 | 0 | 13 | 0 | 15 | 15 | 638 | 128 | 317 | 91 | 263 | 203 | 156 | 59 | 134 | 11 | 1 | 3 | 49 |
22,587 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/dagster_dbt_translator.py | dagster_dbt.dagster_dbt_translator.DagsterDbtTranslator | from dagster_dbt.asset_utils import DAGSTER_DBT_MANIFEST_METADATA_KEY, DAGSTER_DBT_PROJECT_METADATA_KEY, DAGSTER_DBT_TRANSLATOR_METADATA_KEY, DAGSTER_DBT_UNIQUE_ID_METADATA_KEY, default_asset_check_fn, default_asset_key_fn, default_auto_materialize_policy_fn, default_code_version_fn, default_description_fn, default_fre... |
class DagsterDbtTranslator:
'''Holds a set of methods that derive Dagster asset definition metadata given a representation
of a dbt resource (models, tests, sources, etc).
This class is exposed so that methods can be overriden to customize how Dagster asset metadata
is derived.
'''
def __init_... | 33 | 15 | 34 | 10 | 3 | 20 | 1 | 4.57 | 0 | 6 | 2 | 24 | 14 | 1 | 14 | 14 | 508 | 157 | 63 | 42 | 20 | 288 | 33 | 18 | 18 | 2 | 0 | 1 | 16 |
22,588 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/dagster_dbt_translator.py | dagster_dbt.dagster_dbt_translator.DagsterDbtTranslatorSettings | from dataclasses import dataclass
from dagster.components.resolved.base import Resolvable
@dataclass(frozen=True)
class DagsterDbtTranslatorSettings(Resolvable):
"""Settings to enable Dagster features for your dbt project.
Args:
enable_asset_checks (bool): Whether to load dbt tests as Dagster asset ch... | @dataclass(frozen=True)
class DagsterDbtTranslatorSettings(Resolvable):
'''Settings to enable Dagster features for your dbt project.
Args:
enable_asset_checks (bool): Whether to load dbt tests as Dagster asset checks.
Defaults to True.
enable_duplicate_source_asset_keys (bool): Wheth... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 2.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 18 | 2 | 5 | 5 | 4 | 11 | 5 | 5 | 4 | 0 | 0 | 0 | 0 |
22,589 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/dagster_dbt_translator.py | dagster_dbt.dagster_dbt_translator.DbtManifestWrapper | from typing import TYPE_CHECKING, Any, Optional
from dataclasses import dataclass
from collections.abc import Mapping, Sequence
@dataclass
class DbtManifestWrapper:
"""Wrapper around parsed DBT manifest json to provide convenient and efficient access."""
manifest: Mapping[str, Any] | @dataclass
class DbtManifestWrapper:
'''Wrapper around parsed DBT manifest json to provide convenient and efficient access.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
22,590 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/dbt_manifest_asset_selection.py | dagster_dbt.dbt_manifest_asset_selection.DbtManifestAssetSelection | from dagster_dbt.asset_utils import DBT_DEFAULT_EXCLUDE, DBT_DEFAULT_SELECT, DBT_DEFAULT_SELECTOR, get_asset_check_key_for_test, get_node, is_non_asset_node
from dagster._core.definitions.assets.graph.base_asset_graph import BaseAssetGraph
from typing import AbstractSet, Any, Optional
from dagster._record import record... | @record
class DbtManifestAssetSelection(AssetSelection):
'''Defines a selection of assets from a dbt manifest wrapper and a dbt selection string.
Args:
manifest (Mapping[str, Any]): The dbt manifest blob.
select (str): A dbt selection string to specify a set of dbt resources.
exclude (Op... | 7 | 1 | 19 | 2 | 16 | 1 | 3 | 0.23 | 1 | 7 | 3 | 0 | 3 | 0 | 4 | 4 | 106 | 19 | 71 | 28 | 54 | 16 | 34 | 16 | 29 | 4 | 1 | 2 | 11 |
22,591 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/dbt_project.py | dagster_dbt.dbt_project.DagsterDbtProjectPreparer | from dagster._utils import run_with_concurrent_update_guard
from typing import Optional, Union
from collections.abc import Sequence
from dagster._annotations import public
from dagster_dbt.errors import DagsterDbtManifestNotFoundError, DagsterDbtProfilesDirectoryNotFoundError, DagsterDbtProjectNotFoundError, DagsterDbt... |
class DagsterDbtProjectPreparer(DbtProjectPreparer):
def __init__(self, generate_cli_args: Optional[Sequence[str]]=None):
'''The default DbtProjectPreparer, this handler provides an experience of:
* During development, reload the manifest at run time to pick up any changes.
* When ... | 8 | 3 | 15 | 2 | 9 | 5 | 2 | 0.54 | 1 | 4 | 2 | 0 | 5 | 1 | 5 | 8 | 84 | 13 | 46 | 14 | 33 | 25 | 18 | 9 | 10 | 3 | 1 | 2 | 8 |
22,592 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/dbt_project.py | dagster_dbt.dbt_project.DbtProject | import yaml
from pathlib import Path
from dagster._annotations import public
from typing import Optional, Union
from dagster._record import IHaveNew, record_custom
from dagster_dbt.errors import DagsterDbtManifestNotFoundError, DagsterDbtProfilesDirectoryNotFoundError, DagsterDbtProjectNotFoundError, DagsterDbtProjectY... | @record_custom
class DbtProject(IHaveNew):
'''Representation of a dbt project and related settings that assist with managing the project preparation.
Using this helps achieve a setup where the dbt manifest file
and dbt dependencies are available and up-to-date:
* during development, pull the dependencie... | 5 | 2 | 47 | 8 | 29 | 11 | 5 | 1.06 | 1 | 7 | 4 | 0 | 2 | 0 | 2 | 4 | 180 | 36 | 70 | 23 | 56 | 74 | 37 | 11 | 34 | 8 | 1 | 1 | 10 |
22,593 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/dbt_project.py | dagster_dbt.dbt_project.DbtProjectPreparer | from dagster._annotations import public
class DbtProjectPreparer:
"""The abstract class of a preparer for a DbtProject representation.
When implemented, this handler should provide an experience of:
* The behavior expected during development and at run time, in the `on_load` method.
* The impl... |
class DbtProjectPreparer:
'''The abstract class of a preparer for a DbtProject representation.
When implemented, this handler should provide an experience of:
* The behavior expected during development and at run time, in the `on_load` method.
* The implementation of the preparation process, in... | 7 | 4 | 3 | 0 | 1 | 2 | 1 | 1.25 | 0 | 1 | 0 | 1 | 3 | 0 | 3 | 3 | 22 | 4 | 8 | 7 | 1 | 10 | 5 | 4 | 1 | 1 | 0 | 0 | 3 |
22,594 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/errors.py | dagster_dbt.errors.DagsterDbtCliRuntimeError | from abc import ABC
class DagsterDbtCliRuntimeError(DagsterDbtError, ABC):
"""Represents an error while executing a dbt CLI command.""" |
class DagsterDbtCliRuntimeError(DagsterDbtError, ABC):
'''Represents an error while executing a dbt CLI command.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
22,595 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/errors.py | dagster_dbt.errors.DagsterDbtCloudJobInvariantViolationError | from dagster import DagsterInvariantViolationError, Failure
class DagsterDbtCloudJobInvariantViolationError(DagsterDbtError, DagsterInvariantViolationError):
"""Represents an error when a dbt Cloud job is not supported by the ``dagster-dbt`` library.""" |
class DagsterDbtCloudJobInvariantViolationError(DagsterDbtError, DagsterInvariantViolationError):
'''Represents an error when a dbt Cloud job is not supported by the ``dagster-dbt`` library.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
22,596 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/errors.py | dagster_dbt.errors.DagsterDbtError | from abc import ABC
from dagster import DagsterInvariantViolationError, Failure
class DagsterDbtError(Failure, ABC):
"""The base exception of the ``dagster-dbt`` library.""" |
class DagsterDbtError(Failure, ABC):
'''The base exception of the ``dagster-dbt`` library.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 6 | 0 | 0 | 0 | 20 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
22,597 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/errors.py | dagster_dbt.errors.DagsterDbtManifestNotFoundError | class DagsterDbtManifestNotFoundError(DagsterDbtError):
"""Error when we expect manifest.json to generated already but it is absent.""" | class DagsterDbtManifestNotFoundError(DagsterDbtError):
'''Error when we expect manifest.json to generated already but it is absent.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
22,598 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/errors.py | dagster_dbt.errors.DagsterDbtProfilesDirectoryNotFoundError | class DagsterDbtProfilesDirectoryNotFoundError(DagsterDbtError):
"""Error when the specified profiles directory can not be found.""" | class DagsterDbtProfilesDirectoryNotFoundError(DagsterDbtError):
'''Error when the specified profiles directory can not be found.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
22,599 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/errors.py | dagster_dbt.errors.DagsterDbtProjectNotFoundError | class DagsterDbtProjectNotFoundError(DagsterDbtError):
"""Error when the specified project directory can not be found.""" | class DagsterDbtProjectNotFoundError(DagsterDbtError):
'''Error when the specified project directory can not be found.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.