id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21,000 | dagster-io/dagster | dagster-io_dagster/examples/experimental/assets_yaml_dsl/assets_yaml_dsl/domain_specific_dsl/stocks_dsl.py | assets_yaml_dsl.domain_specific_dsl.stocks_dsl.StockAssets | from typing import Any, NamedTuple
class StockAssets(NamedTuple):
stock_infos: list[StockInfo]
index_strategy: IndexStrategy
forecast: Forecast |
class StockAssets(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
21,001 | dagster-io/dagster | dagster-io_dagster/examples/experimental/assets_yaml_dsl/assets_yaml_dsl/domain_specific_dsl/stocks_dsl.py | assets_yaml_dsl.domain_specific_dsl.stocks_dsl.StockInfo | from typing import Any, NamedTuple
class StockInfo(NamedTuple):
ticker: str |
class StockInfo(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,002 | dagster-io/dagster | dagster-io_dagster/examples/experimental/assets_yaml_dsl/assets_yaml_dsl/pure_assets_dsl/sql_script.py | assets_yaml_dsl.pure_assets_dsl.sql_script.SomeSqlClient | import sys
class SomeSqlClient:
def query(self, query_str: str) -> None:
sys.stderr.write(f'Querying "{query_str}"\n') |
class SomeSqlClient:
def query(self, query_str: str) -> None:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
21,003 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/docker/dagster_docker.py | automation.docker.dagster_docker.DagsterDockerImage | from automation.docker.ecr import ecr_image, get_aws_account_id, get_aws_region
import os
from automation.docker.utils import execute_docker_build, execute_docker_push, execute_docker_tag, python_version_image_tag
import dagster._check as check
import yaml
from typing import Any, Callable, NamedTuple, Optional
class D... |
class DagsterDockerImage(NamedTuple('_DagsterDockerImage', [('image', str), ('images_path', str), ('build_cm', Callable)])):
'''Represents a Dagster image.
Properties:
image (str): Name of the image
images_path (Optional(str)): The base folder for the images.
build_cm (function): functi... | 13 | 8 | 14 | 2 | 11 | 2 | 2 | 0.2 | 1 | 6 | 0 | 0 | 10 | 1 | 10 | 10 | 168 | 26 | 118 | 48 | 87 | 24 | 68 | 23 | 57 | 4 | 1 | 2 | 16 |
21,004 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/graphql/python_client/utils.py | automation.graphql.python_client.utils.LegacyQueryHistoryInfo | import os
from typing import AbstractSet, NamedTuple, cast
from pathlib import Path
class LegacyQueryHistoryInfo(NamedTuple):
directory: str
legacy_queries: AbstractSet[str]
@staticmethod
def get() -> 'LegacyQueryHistoryInfo':
directory = Path(__file__).parent.joinpath('../../../../dagster-gra... |
class LegacyQueryHistoryInfo(NamedTuple):
@staticmethod
def get() -> 'LegacyQueryHistoryInfo':
pass | 3 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 12 | 1 | 11 | 5 | 8 | 0 | 7 | 4 | 5 | 1 | 1 | 0 | 1 |
21,005 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/parse_dataproc_configs.py | automation.parse_dataproc_configs.ConfigParser | from automation.printer import IndentingBufferPrinter
class ConfigParser:
def __init__(self, schemas):
self.schemas = schemas
self.all_enums = {}
def extract_config(self, base_field, suffix):
with IndentingBufferPrinter() as printer:
printer.write_header()
prin... |
class ConfigParser:
def __init__(self, schemas):
pass
def extract_config(self, base_field, suffix):
pass
def extract_enums(self):
pass
def parse_object(self, obj, name=None, depth=0, enum_descriptions=None):
pass
def extract_schema_for_object(self, object_name, ... | 6 | 0 | 19 | 3 | 13 | 3 | 3 | 0.22 | 0 | 6 | 5 | 0 | 5 | 2 | 5 | 5 | 100 | 19 | 67 | 16 | 61 | 15 | 52 | 14 | 46 | 9 | 0 | 2 | 16 |
21,006 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/parse_dataproc_configs.py | automation.parse_dataproc_configs.Enum | class Enum:
def __init__(self, name, enum_names, enum_descriptions):
self.name = name
self.enum_names = enum_names
self.enum_descriptions = enum_descriptions
def write(self, printer):
capitalized_name = self.name[0].upper() + self.name[1:]
printer.line(capitalized_name ... | class Enum:
def __init__(self, name, enum_names, enum_descriptions):
pass
def write(self, printer):
pass | 3 | 0 | 10 | 1 | 10 | 0 | 3 | 0 | 0 | 1 | 0 | 0 | 2 | 3 | 2 | 2 | 22 | 2 | 20 | 8 | 17 | 0 | 19 | 8 | 16 | 4 | 0 | 4 | 5 |
21,007 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/parse_dataproc_configs.py | automation.parse_dataproc_configs.Field | import pprint
class Field:
"""Field represents a field type that we're going to write out as a dagster config field, once
we've pre-processed all custom types.
"""
def __init__(self, fields, is_required, description):
self.fields = fields
self.is_required = is_required
self.des... |
class Field:
'''Field represents a field type that we're going to write out as a dagster config field, once
we've pre-processed all custom types.
'''
def __init__(self, fields, is_required, description):
pass
def __repr__(self):
pass
def _print_fields(self, printer):
... | 5 | 2 | 16 | 1 | 13 | 3 | 3 | 0.25 | 0 | 3 | 2 | 0 | 4 | 3 | 4 | 4 | 72 | 8 | 51 | 9 | 46 | 13 | 43 | 9 | 38 | 7 | 0 | 6 | 13 |
21,008 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/parse_dataproc_configs.py | automation.parse_dataproc_configs.List | class List:
def __init__(self, inner_type):
self.inner_type = inner_type | class List:
def __init__(self, inner_type):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 3 | 0 | 3 | 3 | 1 | 0 | 3 | 3 | 1 | 1 | 0 | 0 | 1 |
21,009 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/parse_dataproc_configs.py | automation.parse_dataproc_configs.ParsedConfig | from collections import namedtuple
import os
class ParsedConfig(namedtuple('_ParsedConfig', 'name configs enums')):
def __new__(cls, name, configs, enums):
return super().__new__(cls, name, configs, enums)
def write_configs(self, base_path):
configs_filename = f'configs_{self.name}.py'
... |
class ParsedConfig(namedtuple('_ParsedConfig', 'name configs enums')):
def __new__(cls, name, configs, enums):
pass
def write_configs(self, base_path):
pass | 3 | 0 | 6 | 1 | 5 | 1 | 1 | 0.09 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 7 | 13 | 2 | 11 | 6 | 8 | 1 | 11 | 5 | 8 | 1 | 1 | 1 | 2 |
21,010 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/parse_spark_configs.py | automation.parse_spark_configs.ConfigType | from enum import Enum
class ConfigType(Enum):
STRING = 'StringSource'
INT = 'IntSource'
FLOAT = 'Float'
BOOL = 'Bool'
MEMORY = 'StringSource'
TIME = 'StringSource' |
class ConfigType(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 7 | 0 | 7 | 7 | 6 | 2 | 7 | 7 | 6 | 0 | 4 | 0 | 0 |
21,011 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/parse_spark_configs.py | automation.parse_spark_configs.SparkConfig | from typing import Any, NamedTuple, Optional, Union, cast
import re
from automation.printer import IndentingBufferPrinter
class SparkConfig(NamedTuple('_SparkConfig', [('path', str), ('default', str), ('meaning', str)])):
def __new__(cls, path: str, default: object, meaning: str):
return super().__new__(c... |
class SparkConfig(NamedTuple('_SparkConfig', [('path', str), ('default', str), ('meaning', str)])):
def __new__(cls, path: str, default: object, meaning: str):
pass
@property
def split_path(self) -> list[str]:
pass
def write(self, printer: IndentingBufferPrinter) -> None:
pass | 5 | 0 | 8 | 1 | 7 | 1 | 1 | 0.09 | 1 | 6 | 2 | 0 | 3 | 0 | 3 | 3 | 28 | 4 | 22 | 6 | 17 | 2 | 16 | 5 | 12 | 1 | 1 | 1 | 3 |
21,012 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/parse_spark_configs.py | automation.parse_spark_configs.SparkConfigNode | from typing import Any, NamedTuple, Optional, Union, cast
from automation.printer import IndentingBufferPrinter
class SparkConfigNode:
value: Optional[SparkConfig]
children: dict[str, Any]
def __init__(self, value: Optional[SparkConfig]=None):
self.value = value
self.children = {}
def... |
class SparkConfigNode:
def __init__(self, value: Optional[SparkConfig]=None):
pass
def write(self, printer: IndentingBufferPrinter) -> str:
pass | 3 | 0 | 17 | 1 | 16 | 0 | 3 | 0 | 0 | 4 | 2 | 0 | 2 | 0 | 2 | 2 | 38 | 4 | 34 | 4 | 31 | 0 | 32 | 4 | 29 | 4 | 0 | 6 | 5 |
21,013 | dagster-io/dagster | dagster-io_dagster/python_modules/automation/automation/printer.py | automation.printer.IndentingBufferPrinter | from io import StringIO
import os
from dagster._utils.indenting_printer import IndentingPrinter
import sys
from typing import Any, Callable
class IndentingBufferPrinter(IndentingPrinter):
"""Subclass of IndentingPrinter wrapping a StringIO."""
buffer: StringIO
def __init__(self, indent_level: int=4, curre... |
class IndentingBufferPrinter(IndentingPrinter):
'''Subclass of IndentingPrinter wrapping a StringIO.'''
def __init__(self, indent_level: int=4, current_indent: int=0):
pass
def __enter__(self) -> 'IndentingBufferPrinter':
pass
def __exit__(self, _exception_type: type[BaseException], ... | 6 | 2 | 6 | 0 | 6 | 0 | 1 | 0.06 | 1 | 7 | 0 | 0 | 5 | 1 | 5 | 15 | 39 | 6 | 31 | 13 | 20 | 2 | 24 | 8 | 18 | 1 | 1 | 0 | 5 |
21,014 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster-webserver/dagster_webserver_tests/webserver/conftest.py | conftest.TestDagsterWebserver | from starlette.responses import JSONResponse
from dagster_webserver.webserver import DagsterWebserver
from starlette.routing import Route
from starlette.requests import Request
class TestDagsterWebserver(DagsterWebserver):
def test_req_ctx_endpoint(self, request: Request):
with self.request_context(reques... |
class TestDagsterWebserver(DagsterWebserver):
def test_req_ctx_endpoint(self, request: Request):
pass
def build_routes(self):
pass | 3 | 0 | 5 | 0 | 5 | 1 | 1 | 0.1 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 57 | 12 | 1 | 10 | 5 | 7 | 1 | 7 | 5 | 4 | 1 | 6 | 0 | 2 |
21,015 | dagster-io/dagster | dagster-io_dagster/examples/docs_snippets/docs_snippets/tutorial/connecting/resources/__init__.py | connecting.resources.DataGeneratorResource | from dagster import ConfigurableResource
class DataGeneratorResource(ConfigurableResource):
num_days: int = 4
def get_signups(self):
return [1, 2, 3, 4, 5] |
class DataGeneratorResource(ConfigurableResource):
def get_signups(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
21,016 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/kitchen-sink/kitchen_sink/airflow_dags/custom_callback.py | custom_callback.CustomProxyTaskToDagsterOperator | from dagster_airlift.in_airflow import DefaultProxyTaskToDagsterOperator, proxying_to_dagster
from dagster_airlift.in_airflow.task_proxy_operator import BaseProxyTaskToDagsterOperator, build_dagster_task
from airflow.models import BaseOperator
class CustomProxyTaskToDagsterOperator(DefaultProxyTaskToDagsterOperator):
... |
class CustomProxyTaskToDagsterOperator(DefaultProxyTaskToDagsterOperator):
@classmethod
def build_from_task(cls, original_task: BaseOperator) -> BaseProxyTaskToDagsterOperator:
'''A custom callback to construct a new operator for the given task. In our case, we add retries to the affected_dag.'''
... | 3 | 1 | 7 | 0 | 6 | 1 | 2 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 45 | 9 | 0 | 8 | 4 | 5 | 1 | 7 | 3 | 5 | 2 | 7 | 1 | 2 |
21,017 | dagster-io/dagster | dagster-io_dagster/examples/docs_snippets/docs_snippets/integrations/airlift/equivalents/custom_operator.py | custom_operator.UploadToS3Operator | from pathlib import Path
from airflow.operators.python import PythonOperator
import boto3
class UploadToS3Operator(PythonOperator):
def __init__(self, path: str, *args, **kwargs) -> None:
super().__init__(*args, python_callable=self.upload_to_s3, op_args=[path], **kwargs)
def upload_to_s3(self, path:... |
class UploadToS3Operator(PythonOperator):
def __init__(self, path: str, *args, **kwargs) -> None:
pass
def upload_to_s3(self, path: str) -> None:
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 0 | 0 | 2 | 0 | 2 | 2 | 10 | 1 | 9 | 3 | 6 | 0 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
21,018 | dagster-io/dagster | dagster-io_dagster/examples/docs_snippets/docs_snippets/integrations/looker/customize-looker-assets.py | customize-looker-assets.CustomDagsterLookerApiTranslator | import dagster as dg
from dagster_looker import DagsterLookerApiTranslator, LookerApiTranslatorStructureData, LookerResource, LookerStructureType, load_looker_asset_specs
class CustomDagsterLookerApiTranslator(DagsterLookerApiTranslator):
def get_asset_spec(self, looker_structure: LookerApiTranslatorStructureData... |
class CustomDagsterLookerApiTranslator(DagsterLookerApiTranslator):
def get_asset_spec(self, looker_structure: LookerApiTranslatorStructureData) -> dg.AssetSpec:
pass | 2 | 0 | 15 | 0 | 12 | 3 | 2 | 0.23 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 9 | 16 | 0 | 13 | 5 | 9 | 3 | 4 | 3 | 2 | 2 | 1 | 0 | 2 |
21,019 | dagster-io/dagster | dagster-io_dagster/examples/docs_snippets/docs_snippets/integrations/power-bi/customize-power-bi-asset-defs.py | customize-power-bi-asset-defs.MyCustomPowerBITranslator | from dagster_powerbi import DagsterPowerBITranslator, PowerBIServicePrincipal, PowerBIWorkspace, load_powerbi_asset_specs
from dagster_powerbi.translator import PowerBIContentType, PowerBITranslatorData
import dagster as dg
class MyCustomPowerBITranslator(DagsterPowerBITranslator):
def get_asset_spec(self, data: ... |
class MyCustomPowerBITranslator(DagsterPowerBITranslator):
def get_asset_spec(self, data: PowerBITranslatorData) -> dg.AssetSpec:
pass | 2 | 0 | 13 | 0 | 10 | 3 | 2 | 0.27 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 10 | 14 | 0 | 11 | 3 | 9 | 3 | 4 | 3 | 2 | 2 | 1 | 0 | 2 |
21,020 | dagster-io/dagster | dagster-io_dagster/examples/docs_snippets/docs_snippets/integrations/sigma/customize-sigma-asset-defs.py | customize-sigma-asset-defs.MyCustomSigmaTranslator | import dagster as dg
from dagster_sigma import DagsterSigmaTranslator, SigmaBaseUrl, SigmaOrganization, SigmaWorkbookTranslatorData, load_sigma_asset_specs
class MyCustomSigmaTranslator(DagsterSigmaTranslator):
def get_asset_spec(self, data: SigmaWorkbookTranslatorData) -> dg.AssetSpec:
default_spec = sup... |
class MyCustomSigmaTranslator(DagsterSigmaTranslator):
def get_asset_spec(self, data: SigmaWorkbookTranslatorData) -> dg.AssetSpec:
pass | 2 | 0 | 5 | 0 | 3 | 2 | 1 | 0.5 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 3 | 6 | 0 | 4 | 3 | 2 | 2 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
21,021 | dagster-io/dagster | dagster-io_dagster/examples/docs_snippets/docs_snippets/integrations/tableau/customize-tableau-asset-defs.py | customize-tableau-asset-defs.MyCustomTableauTranslator | import dagster as dg
from dagster_tableau import DagsterTableauTranslator, TableauCloudWorkspace, TableauContentType, TableauTranslatorData, load_tableau_asset_specs
class MyCustomTableauTranslator(DagsterTableauTranslator):
def get_asset_spec(self, data: TableauTranslatorData) -> dg.AssetSpec:
default_sp... |
class MyCustomTableauTranslator(DagsterTableauTranslator):
def get_asset_spec(self, data: TableauTranslatorData) -> dg.AssetSpec:
pass | 2 | 0 | 14 | 0 | 11 | 3 | 2 | 0.25 | 1 | 3 | 2 | 0 | 1 | 0 | 1 | 9 | 15 | 0 | 12 | 3 | 10 | 3 | 4 | 3 | 2 | 2 | 1 | 0 | 2 |
21,022 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/kitchen-sink/kitchen_sink/airflow_dags/dag_level_custom_callback.py | dag_level_custom_callback.CustomProxyDagToDagsterOperator | from dagster_airlift.in_airflow import DefaultProxyDAGToDagsterOperator, proxying_to_dagster
class CustomProxyDagToDagsterOperator(DefaultProxyDAGToDagsterOperator):
@classmethod
def build_from_dag(cls, dag):
return CustomProxyDagToDagsterOperator(dag=dag, task_id='OVERRIDDEN') |
class CustomProxyDagToDagsterOperator(DefaultProxyDAGToDagsterOperator):
@classmethod
def build_from_dag(cls, dag):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 46 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
21,023 | dagster-io/dagster | dagster-io_dagster/examples/airlift-migration-tutorial/tutorial_example/airflow_dags/dags.py | dags.ExportDuckDBToCSV | from pathlib import Path
from tutorial_example.shared.export_duckdb_to_csv import ExportDuckDbToCsvArgs, export_duckdb_to_csv
from typing import Optional
from airflow.models.operator import BaseOperator
class ExportDuckDBToCSV(BaseOperator):
def __init__(self, table_name: str, csv_path: Path, duckdb_path: Path, d... |
class ExportDuckDBToCSV(BaseOperator):
def __init__(self, table_name: str, csv_path: Path, duckdb_path: Path, duckdb_database_name: str, *args, duckdb_schema: Optional[str]=None, **kwargs):
pass
def execute(self, context) -> None:
pass | 3 | 0 | 13 | 0 | 13 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 2 | 5 | 2 | 2 | 27 | 1 | 26 | 17 | 14 | 0 | 10 | 8 | 7 | 1 | 1 | 0 | 2 |
21,024 | dagster-io/dagster | dagster-io_dagster/examples/airlift-migration-tutorial/tutorial_example/airflow_dags/dags.py | dags.LoadCSVToDuckDB | from tutorial_example.shared.load_csv_to_duckdb import LoadCsvToDuckDbArgs, load_csv_to_duckdb
from airflow.models.operator import BaseOperator
from pathlib import Path
class LoadCSVToDuckDB(BaseOperator):
def __init__(self, table_name: str, csv_path: Path, duckdb_path: Path, column_names: list[str], duckdb_schem... |
class LoadCSVToDuckDB(BaseOperator):
def __init__(self, table_name: str, csv_path: Path, duckdb_path: Path, column_names: list[str], duckdb_schema: str, duckdb_database_name: str, *args, **kwargs):
pass
def execute(self, context) -> None:
pass | 3 | 0 | 15 | 0 | 15 | 0 | 1 | 0 | 1 | 5 | 1 | 0 | 2 | 6 | 2 | 2 | 31 | 1 | 30 | 19 | 17 | 0 | 11 | 9 | 8 | 1 | 1 | 0 | 2 |
21,025 | dagster-io/dagster | dagster-io_dagster/examples/starlift-demo/dbt_example/migrating_airflow_dags/dags.py | dags.LoadToLakehouseOperator | from pathlib import Path
from dbt_example.shared.lakehouse_utils import get_min_value, load_csv_to_duckdb
import json
from airflow.models.operator import BaseOperator
class LoadToLakehouseOperator(BaseOperator):
def __init__(self, csv_path: Path, db_path: Path, columns: list[str], columns_for_min: list[str], *arg... |
class LoadToLakehouseOperator(BaseOperator):
def __init__(self, csv_path: Path, db_path: Path, columns: list[str], columns_for_min: list[str], *args, **kwargs):
pass
def execute(self, context) -> None:
pass | 3 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 2 | 3 | 2 | 2 | 13 | 1 | 12 | 6 | 9 | 0 | 8 | 6 | 5 | 1 | 1 | 0 | 2 |
21,026 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_builtins.py | dagster._builtins.BuiltinEnum | class BuiltinEnum:
ANY = Any
BOOL = Bool
FLOAT = Float
INT = Int
NOTHING = Nothing
STRING = String
@classmethod
def contains(cls, value: object) -> bool:
for ttype in [cls.ANY, cls.BOOL, cls.FLOAT, cls.INT, cls.STRING, cls.NOTHING]:
if value == ttype:
... | class BuiltinEnum:
@classmethod
def contains(cls, value: object) -> bool:
pass | 3 | 0 | 6 | 1 | 5 | 0 | 3 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | 15 | 2 | 13 | 10 | 10 | 0 | 12 | 9 | 10 | 3 | 0 | 2 | 3 |
21,027 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_cli/project.py | dagster._cli.project.PackageConflictCheckResult | from typing import NamedTuple, Optional, Union
class PackageConflictCheckResult(NamedTuple):
request_error_msg: Optional[str]
conflict_exists: bool = False |
class PackageConflictCheckResult(NamedTuple):
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 |
21,028 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_schema.py | dagster._config.config_schema.ConfigSchema | from dagster._annotations import public
@public
class ConfigSchema:
"""Placeholder type for config schemas.
Any time that it appears in documentation, it means that any of the following types are
acceptable:
#. A Python scalar type that resolves to a Dagster config type
(:py:class:`~python:int... | @public
class ConfigSchema:
'''Placeholder type for config schemas.
Any time that it appears in documentation, it means that any of the following types are
acceptable:
#. A Python scalar type that resolves to a Dagster config type
(:py:class:`~python:int`, :py:class:`~python:float`, :py:class:`~p... | 3 | 1 | 4 | 0 | 4 | 0 | 1 | 8.8 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 66 | 17 | 5 | 2 | 3 | 44 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
21,029 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.Any | class Any(ConfigType):
def __init__(self):
super().__init__(key='Any', given_name='Any', kind=ConfigTypeKind.ANY) | class Any(ConfigType):
def __init__(self):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 8 | 7 | 0 | 7 | 2 | 5 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
21,030 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.Array | from collections.abc import Iterator, Sequence
from dagster._annotations import public
from typing import TYPE_CHECKING, Optional, cast
@public
class Array(ConfigType):
"""Defines an array (list) configuration type that contains values of type ``inner_type``.
Args:
inner_type (type):
The t... | @public
class Array(ConfigType):
'''Defines an array (list) configuration type that contains values of type ``inner_type``.
Args:
inner_type (type):
The type of the values that this configuration type can contain.
'''
def __init__(self, inner_type: object):
pass
@public
... | 7 | 2 | 5 | 0 | 4 | 0 | 1 | 0.38 | 1 | 5 | 1 | 0 | 3 | 1 | 3 | 10 | 27 | 5 | 16 | 7 | 9 | 6 | 10 | 6 | 5 | 1 | 1 | 0 | 3 |
21,031 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.Bool | class Bool(BuiltinConfigScalar):
def __init__(self):
super().__init__(scalar_kind=ConfigScalarKind.BOOL, description='') | class Bool(BuiltinConfigScalar):
def __init__(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 10 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 3 | 0 | 1 |
21,032 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.BuiltinConfigScalar | class BuiltinConfigScalar(ConfigScalar):
def __init__(self, scalar_kind, description=None):
super().__init__(key=type(self).__name__, given_name=type(self).__name__, scalar_kind=scalar_kind, description=description) | class BuiltinConfigScalar(ConfigScalar):
def __init__(self, scalar_kind, description=None):
pass | 2 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 2 | 0 | 4 | 1 | 0 | 1 | 9 | 8 | 0 | 8 | 2 | 6 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
21,033 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.ConfigScalar | import typing
import dagster._check as check
from typing import TYPE_CHECKING, Optional, cast
class ConfigScalar(ConfigType):
def __init__(self, key: str, given_name: Optional[str], scalar_kind: ConfigScalarKind, **kwargs: typing.Any):
self.scalar_kind = check.inst_param(scalar_kind, 'scalar_kind', Config... |
class ConfigScalar(ConfigType):
def __init__(self, key: str, given_name: Optional[str], scalar_kind: ConfigScalarKind, **kwargs: typing.Any):
pass | 2 | 0 | 9 | 0 | 9 | 0 | 1 | 0 | 1 | 5 | 2 | 3 | 1 | 1 | 1 | 8 | 10 | 0 | 10 | 9 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
21,034 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.ConfigScalarKind | from dagster._serdes import whitelist_for_serdes
from enum import Enum as PythonEnum
@whitelist_for_serdes
class ConfigScalarKind(PythonEnum):
INT = 'INT'
STRING = 'STRING'
FLOAT = 'FLOAT'
BOOL = 'BOOL' | @whitelist_for_serdes
class ConfigScalarKind(PythonEnum):
pass | 2 | 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 |
21,035 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.ConfigType | from typing import TYPE_CHECKING, Optional, cast
from dagster._builtins import BuiltinEnum
from collections.abc import Iterator, Sequence
import typing
from functools import cached_property
import dagster._check as check
class ConfigType:
"""The class backing DagsterTypes as they are used processing configuration ... |
class ConfigType:
'''The class backing DagsterTypes as they are used processing configuration data.'''
def __init__(self, key: str, kind: ConfigTypeKind, given_name: Optional[str]=None, description: Optional[str]=None, type_params: Optional[Sequence['ConfigType']]=None):
pass
@property
def des... | 12 | 2 | 6 | 0 | 5 | 1 | 1 | 0.18 | 0 | 7 | 3 | 6 | 6 | 5 | 7 | 7 | 55 | 9 | 39 | 26 | 18 | 7 | 22 | 15 | 12 | 2 | 0 | 0 | 8 |
21,036 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.ConfigTypeKind | from dagster._serdes import whitelist_for_serdes
from enum import Enum as PythonEnum
import dagster._check as check
@whitelist_for_serdes
class ConfigTypeKind(PythonEnum):
ANY = 'ANY'
SCALAR = 'SCALAR'
ENUM = 'ENUM'
SELECTOR = 'SELECTOR'
STRICT_SHAPE = 'STRICT_SHAPE'
PERMISSIVE_SHAPE = 'PERMISS... | @whitelist_for_serdes
class ConfigTypeKind(PythonEnum):
@staticmethod
def has_fields(kind: 'ConfigTypeKind') -> bool:
pass
@staticmethod
def is_closed_generic(kind: 'ConfigTypeKind') -> bool:
pass
@staticmethod
def is_shape(kind: 'ConfigTypeKind') -> bool:
pass
@stat... | 10 | 0 | 4 | 0 | 4 | 0 | 1 | 0.03 | 1 | 1 | 0 | 0 | 0 | 0 | 4 | 53 | 40 | 7 | 32 | 19 | 23 | 1 | 23 | 15 | 18 | 1 | 4 | 0 | 4 |
21,037 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.Enum | from dagster._annotations import public
from collections.abc import Iterator, Sequence
from enum import Enum as PythonEnum
import typing
import dagster._check as check
@public
class Enum(ConfigType):
"""Defines a enum configuration type that allows one of a defined set of possible values.
Args:
name (... | @public
class Enum(ConfigType):
'''Defines a enum configuration type that allows one of a defined set of possible values.
Args:
name (str):
The name of the enum configuration type.
enum_values (List[EnumValue]):
The set of possible values for the enum configuration type.
... | 11 | 3 | 13 | 2 | 5 | 6 | 2 | 1.94 | 1 | 6 | 2 | 0 | 4 | 3 | 6 | 13 | 112 | 21 | 31 | 14 | 21 | 60 | 28 | 11 | 21 | 4 | 1 | 2 | 11 |
21,038 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.EnumValue | from dagster._annotations import public
import dagster._check as check
from typing import TYPE_CHECKING, Optional, cast
@public
class EnumValue:
"""Define an entry in a :py:class:`Enum`.
Args:
config_value (str):
The string representation of the config to accept when passed.
python... | @public
class EnumValue:
'''Define an entry in a :py:class:`Enum`.
Args:
config_value (str):
The string representation of the config to accept when passed.
python_value (Optional[Any]):
The python value to convert the enum entry in to. Defaults to the ``config_value``.
... | 3 | 1 | 9 | 0 | 9 | 0 | 2 | 0.9 | 0 | 2 | 0 | 0 | 1 | 3 | 1 | 1 | 22 | 3 | 10 | 10 | 3 | 9 | 5 | 5 | 3 | 2 | 0 | 0 | 2 |
21,039 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.Float | class Float(BuiltinConfigScalar):
def __init__(self):
super().__init__(scalar_kind=ConfigScalarKind.FLOAT, description='')
def post_process(self, value):
return float(value) | class Float(BuiltinConfigScalar):
def __init__(self):
pass
def post_process(self, value):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 11 | 6 | 1 | 5 | 3 | 2 | 0 | 5 | 3 | 2 | 1 | 3 | 0 | 2 |
21,040 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.Int | class Int(BuiltinConfigScalar):
def __init__(self):
super().__init__(scalar_kind=ConfigScalarKind.INT, description='') | class Int(BuiltinConfigScalar):
def __init__(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 10 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 3 | 0 | 1 |
21,041 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.Noneable | from collections.abc import Iterator, Sequence
from typing import TYPE_CHECKING, Optional, cast
from dagster._annotations import public
@public
class Noneable(ConfigType):
"""Defines a configuration type that is the union of ``NoneType`` and the type ``inner_type``.
Args:
inner_type (type):
... | @public
class Noneable(ConfigType):
'''Defines a configuration type that is the union of ``NoneType`` and the type ``inner_type``.
Args:
inner_type (type):
The type of the values that this configuration type can contain.
**Examples:**
.. code-block:: python
config_schema={"nam... | 4 | 1 | 6 | 1 | 6 | 0 | 1 | 0.92 | 1 | 4 | 1 | 0 | 2 | 1 | 2 | 9 | 31 | 8 | 12 | 5 | 8 | 11 | 8 | 5 | 4 | 1 | 1 | 0 | 2 |
21,042 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.ScalarUnion | from collections.abc import Iterator, Sequence
from dagster._config import UserConfigSchema
import typing
import dagster._check as check
from typing import TYPE_CHECKING, Optional, cast
from dagster._annotations import public
@public
class ScalarUnion(ConfigType):
"""Defines a configuration type that accepts a sca... | @public
class ScalarUnion(ConfigType):
'''Defines a configuration type that accepts a scalar value OR a non-scalar value like a
:py:class:`~dagster.List`, :py:class:`~dagster.Dict`, or :py:class:`~dagster.Selector`.
This allows runtime scalars to be configured without a dictionary with the key ``value`` and... | 4 | 1 | 16 | 2 | 14 | 1 | 1 | 1.11 | 1 | 5 | 1 | 0 | 2 | 2 | 2 | 9 | 75 | 16 | 28 | 12 | 19 | 31 | 13 | 7 | 9 | 1 | 1 | 0 | 2 |
21,043 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/config_type.py | dagster._config.config_type.String | class String(BuiltinConfigScalar):
def __init__(self):
super().__init__(scalar_kind=ConfigScalarKind.STRING, description='') | class String(BuiltinConfigScalar):
def __init__(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 10 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 3 | 0 | 1 |
21,044 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/errors.py | dagster._config.errors.DagsterEvaluationErrorReason | from enum import Enum
class DagsterEvaluationErrorReason(Enum):
RUNTIME_TYPE_MISMATCH = 'RUNTIME_TYPE_MISMATCH'
MISSING_REQUIRED_FIELD = 'MISSING_REQUIRED_FIELD'
MISSING_REQUIRED_FIELDS = 'MISSING_REQUIRED_FIELDS'
FIELD_NOT_DEFINED = 'FIELD_NOT_DEFINED'
FIELDS_NOT_DEFINED = 'FIELDS_NOT_DEFINED'
... |
class DagsterEvaluationErrorReason(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 9 | 0 | 9 | 9 | 8 | 0 | 9 | 9 | 8 | 0 | 4 | 0 | 0 |
21,045 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/errors.py | dagster._config.errors.EvaluationError | from dagster._config.stack import EvaluationStackEntry, get_friendly_path_info, get_friendly_path_msg
from dagster._record import IHaveNew, record, record_custom
@record
class EvaluationError:
stack: EvaluationStackEntry
reason: DagsterEvaluationErrorReason
message: str
error_data: ERROR_DATA_UNION | @record
class EvaluationError:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 0 | 0 | 0 |
21,046 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/errors.py | dagster._config.errors.FieldAliasCollisionErrorData | from dagster._record import IHaveNew, record, record_custom
@record
class FieldAliasCollisionErrorData:
field_name: str
aliased_field_name: str | @record
class FieldAliasCollisionErrorData:
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 |
21,047 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/errors.py | dagster._config.errors.FieldNotDefinedErrorData | from dagster._record import IHaveNew, record, record_custom
@record
class FieldNotDefinedErrorData:
field_name: str | @record
class FieldNotDefinedErrorData:
pass | 2 | 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 |
21,048 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/errors.py | dagster._config.errors.FieldsNotDefinedErrorData | from dagster._record import IHaveNew, record, record_custom
from collections.abc import Mapping, Sequence
@record
class FieldsNotDefinedErrorData:
field_names: Sequence[str] | @record
class FieldsNotDefinedErrorData:
pass | 2 | 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 |
21,049 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/errors.py | dagster._config.errors.MissingFieldErrorData | from dagster._config.snap import ConfigFieldSnap, ConfigTypeSnap, minimal_config_for_type_snap
from dagster._record import IHaveNew, record, record_custom
@record
class MissingFieldErrorData:
field_name: str
field_snap: ConfigFieldSnap | @record
class MissingFieldErrorData:
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 |
21,050 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/errors.py | dagster._config.errors.MissingFieldsErrorData | from collections.abc import Mapping, Sequence
from dagster._config.snap import ConfigFieldSnap, ConfigTypeSnap, minimal_config_for_type_snap
from dagster._record import IHaveNew, record, record_custom
@record
class MissingFieldsErrorData:
field_names: Sequence[str]
field_snaps: Sequence[ConfigFieldSnap] | @record
class MissingFieldsErrorData:
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 |
21,051 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/errors.py | dagster._config.errors.PostProcessingError | class PostProcessingError(Exception):
"""This is part of the formal API for implementing post_process
methods on config types. Throw this error to indicate a
that post processing cannot happen, and that the user
must make a configuration and environment change in
order resolve.
""" | class PostProcessingError(Exception):
'''This is part of the formal API for implementing post_process
methods on config types. Throw this error to indicate a
that post processing cannot happen, and that the user
must make a configuration and environment change in
order resolve.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 7 | 0 | 1 | 1 | 0 | 6 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
21,052 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/errors.py | dagster._config.errors.RuntimeMismatchErrorData | from dagster._config.snap import ConfigFieldSnap, ConfigTypeSnap, minimal_config_for_type_snap
from dagster._record import IHaveNew, record, record_custom
@record
class RuntimeMismatchErrorData:
config_type_snap: ConfigTypeSnap
value_rep: str | @record
class RuntimeMismatchErrorData:
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 |
21,053 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/errors.py | dagster._config.errors.SelectorTypeErrorData | import dagster._check as check
from collections.abc import Mapping, Sequence
from dagster._config.config_type import ConfigTypeKind
from dagster._config.snap import ConfigFieldSnap, ConfigTypeSnap, minimal_config_for_type_snap
from dagster._record import IHaveNew, record, record_custom
@record_custom
class SelectorTyp... | @record_custom
class SelectorTypeErrorData(IHaveNew):
def __new__(cls, *, config_type_snap: ConfigTypeSnap, incoming_fields: Sequence[str]):
pass | 3 | 0 | 13 | 0 | 13 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 3 | 17 | 1 | 16 | 7 | 9 | 0 | 7 | 2 | 5 | 1 | 1 | 0 | 1 |
21,054 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/evaluate_value_result.py | dagster._config.evaluate_value_result.EvaluateValueResult | from dagster._record import record
from typing import Any, Generic, Optional, TypeVar
from collections.abc import Generator, Sequence
import dagster._check as check
from dagster._config.errors import EvaluationError
@record
class EvaluateValueResult(Generic[T]):
success: bool
value: Optional[T]
errors: Opt... | @record
class EvaluateValueResult(Generic[T]):
@staticmethod
def for_error(error: EvaluationError) -> 'EvaluateValueResult[Any]':
pass
@staticmethod
def for_errors(errors: Sequence[EvaluationError]) -> 'EvaluateValueResult[Any]':
pass
@staticmethod
def for_value(value: T) -> 'Ev... | 10 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 5 | 1 | 0 | 2 | 0 | 5 | 7 | 27 | 5 | 22 | 12 | 11 | 0 | 17 | 7 | 11 | 3 | 1 | 2 | 7 |
21,055 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/field.py | dagster._config.field.Field | from dagster._core.errors import DagsterInvalidConfigError, DagsterInvalidDefinitionError
from dagster._utils import is_enum_value
import dagster._check as check
from typing import Any, Optional, Union, cast, overload
from dagster._serdes import serialize_value
from dagster._config.field_utils import FIELD_NO_DEFAULT_P... | @public
class Field:
'''Defines the schema for a configuration field.
Fields are used in config schema instead of bare types when one wants to add a description,
a default value, or to mark it as not required.
Config fields are parsed according to their schemas in order to yield values available at
... | 19 | 5 | 14 | 2 | 11 | 2 | 3 | 0.73 | 0 | 3 | 0 | 0 | 8 | 4 | 8 | 8 | 201 | 39 | 94 | 30 | 67 | 69 | 51 | 19 | 39 | 10 | 0 | 3 | 20 |
21,056 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/field_utils.py | dagster._config.field_utils.EnvVar | from typing import TYPE_CHECKING, Any, Optional, Union
import os
from dagster._annotations import public
@public
class EnvVar(str):
"""Class used to represent an environment variable in the Dagster config system.
This class is intended to be used to populate config fields or resources.
The environment var... | @public
class EnvVar(str):
'''Class used to represent an environment variable in the Dagster config system.
This class is intended to be used to populate config fields or resources.
The environment variable will be resolved to a string value when the config is
loaded.
To access the value of the envi... | 8 | 4 | 4 | 0 | 2 | 2 | 1 | 1.18 | 1 | 2 | 1 | 0 | 3 | 0 | 4 | 70 | 30 | 6 | 11 | 7 | 4 | 13 | 9 | 5 | 4 | 1 | 2 | 0 | 4 |
21,057 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/field_utils.py | dagster._config.field_utils.IntEnvVar | from typing import TYPE_CHECKING, Any, Optional, Union
import os
class IntEnvVar(int):
"""Class used to represent an environment variable in the Dagster config system.
The environment variable will be resolved to an int value when the config is
loaded.
"""
name: str
@classmethod
def creat... |
class IntEnvVar(int):
'''Class used to represent an environment variable in the Dagster config system.
The environment variable will be resolved to an int value when the config is
loaded.
'''
@classmethod
def create(cls, name: str) -> 'IntEnvVar':
pass
def __int__(self) -> int:
... | 8 | 4 | 4 | 0 | 3 | 1 | 1 | 0.65 | 1 | 1 | 0 | 0 | 4 | 0 | 5 | 60 | 35 | 7 | 17 | 10 | 9 | 11 | 15 | 8 | 9 | 2 | 2 | 0 | 6 |
21,058 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/field_utils.py | dagster._config.field_utils.Map | from typing import TYPE_CHECKING, Any, Optional, Union
import dagster._check as check
from dagster._config.config_type import Array, ConfigType, ConfigTypeKind
from dagster._annotations import public
from collections.abc import Iterator, Mapping, Sequence
@public
class Map(ConfigType):
"""Defines a config dict wit... | @public
class Map(ConfigType):
'''Defines a config dict with arbitrary scalar keys and typed values.
A map can contrain arbitrary keys of the specified scalar type, each of which has
type checked values. Unlike :py:class:`Shape` and :py:class:`Permissive`, scalar
keys other than strings can be used, and... | 7 | 2 | 11 | 1 | 9 | 1 | 1 | 0.7 | 1 | 3 | 0 | 0 | 3 | 3 | 3 | 3 | 62 | 11 | 30 | 9 | 23 | 21 | 17 | 8 | 12 | 2 | 1 | 0 | 4 |
21,059 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/field_utils.py | dagster._config.field_utils.Permissive | from dagster._config.config_type import Array, ConfigType, ConfigTypeKind
from dagster._annotations import public
@public
class Permissive(_ConfigHasFields):
"""Defines a config dict with a partially specified schema.
A permissive dict allows partial specification of the config schema. Any fields with a
s... | @public
class Permissive(_ConfigHasFields):
'''Defines a config dict with a partially specified schema.
A permissive dict allows partial specification of the config schema. Any fields with a
specified schema will be type checked. Other fields will be allowed, but will be ignored by
the type checker.
... | 4 | 1 | 11 | 1 | 10 | 1 | 3 | 0.65 | 1 | 2 | 0 | 0 | 2 | 1 | 2 | 4 | 41 | 8 | 20 | 4 | 17 | 13 | 9 | 4 | 6 | 3 | 2 | 1 | 5 |
21,060 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/field_utils.py | dagster._config.field_utils.Selector | from dagster._annotations import public
from dagster._config.config_type import Array, ConfigType, ConfigTypeKind
@public
class Selector(_ConfigHasFields):
"""Define a config field requiring the user to select one option.
Selectors are used when you want to be able to present several different options in conf... | @public
class Selector(_ConfigHasFields):
'''Define a config field requiring the user to select one option.
Selectors are used when you want to be able to present several different options in config but
allow only one to be selected. For example, a single input might be read in from either a csv
file or... | 4 | 1 | 10 | 1 | 9 | 1 | 2 | 1.83 | 1 | 1 | 0 | 0 | 2 | 1 | 2 | 4 | 61 | 10 | 18 | 4 | 15 | 33 | 9 | 4 | 6 | 2 | 2 | 1 | 3 |
21,061 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/field_utils.py | dagster._config.field_utils.Shape | import dagster._check as check
from dagster._annotations import public
from dagster._config.config_type import Array, ConfigType, ConfigTypeKind
@public
class Shape(_ConfigHasFields):
"""Schema for configuration data with string keys and typed values via :py:class:`Field`.
Unlike :py:class:`Permissive`, unspe... | @public
class Shape(_ConfigHasFields):
'''Schema for configuration data with string keys and typed values via :py:class:`Field`.
Unlike :py:class:`Permissive`, unspecified fields are not allowed and will throw a
:py:class:`~dagster.DagsterInvalidConfigError`.
Args:
fields (Dict[str, Field]):
... | 4 | 1 | 16 | 1 | 15 | 1 | 2 | 0.39 | 1 | 2 | 0 | 0 | 2 | 2 | 2 | 4 | 48 | 5 | 31 | 15 | 18 | 12 | 10 | 5 | 7 | 2 | 2 | 1 | 3 |
21,062 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/field_utils.py | dagster._config.field_utils._ConfigHasFields | from dagster._config.config_type import Array, ConfigType, ConfigTypeKind
from collections.abc import Iterator, Mapping, Sequence
class _ConfigHasFields(ConfigType):
def __init__(self, fields, **kwargs):
self.fields = expand_fields_dict(fields)
super().__init__(**kwargs)
def type_iterator(sel... |
class _ConfigHasFields(ConfigType):
def __init__(self, fields, **kwargs):
pass
def type_iterator(self) -> Iterator['ConfigType']:
pass | 3 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 1 | 2 | 0 | 3 | 2 | 1 | 2 | 2 | 9 | 1 | 8 | 5 | 5 | 0 | 8 | 5 | 5 | 2 | 1 | 1 | 3 |
21,063 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/field_utils.py | dagster._config.field_utils.__FieldValueSentinel | class __FieldValueSentinel:
pass | class __FieldValueSentinel:
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 |
21,064 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/field_utils.py | dagster._config.field_utils.__InferOptionalCompositeFieldSentinel | class __InferOptionalCompositeFieldSentinel:
pass | class __InferOptionalCompositeFieldSentinel:
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 |
21,065 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/attach_other_object_to_context.py | dagster._config.pythonic_config.attach_other_object_to_context.IAttachDifferentObjectToOpContext | from typing import Any
class IAttachDifferentObjectToOpContext:
"""Utility interface which adjusts the type of the bare object attached to the execution context
by a resource. Useful when migrating function-style resources to class-style ConfigurableResources.
For example, the following function-style res... |
class IAttachDifferentObjectToOpContext:
'''Utility interface which adjusts the type of the bare object attached to the execution context
by a resource. Useful when migrating function-style resources to class-style ConfigurableResources.
For example, the following function-style resource is consumed by an ... | 2 | 2 | 3 | 0 | 2 | 1 | 1 | 8.33 | 0 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 39 | 11 | 3 | 2 | 1 | 25 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
21,066 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/config.py | dagster._config.pythonic_config.config.Config | from typing import Any, Optional, cast
from dagster._annotations import public
from dagster._config import Field as DagsterField, Shape
from enum import Enum
from dagster._config.pythonic_config.conversion_utils import _convert_pydantic_field, safe_is_subclass
from dagster._config.pythonic_config.typing_utils import Ba... | @public
class Config(MakeConfigCacheable, metaclass=BaseConfigMeta):
'''Base class for Dagster configuration models, used to specify config schema for
ops and assets. Subclasses :py:class:`pydantic.BaseModel`.
Example definition:
.. code-block:: python
from pydantic import Field
class My... | 11 | 6 | 22 | 2 | 16 | 5 | 4 | 0.49 | 2 | 9 | 1 | 2 | 3 | 1 | 6 | 91 | 170 | 29 | 98 | 30 | 84 | 48 | 56 | 23 | 49 | 14 | 6 | 3 | 23 |
21,067 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/config.py | dagster._config.pythonic_config.config.MakeConfigCacheable | from dagster._core.errors import DagsterInvalidConfigDefinitionError, DagsterInvalidDefinitionError, DagsterInvalidInvocationError, DagsterInvalidPythonicConfigDefinitionError
import dagster._check as check
from typing import Any, Optional, cast
from dagster_shared.dagster_model.pydantic_compat_layer import ModelFieldC... |
class MakeConfigCacheable(BaseModel):
'''This class centralizes and implements all the chicanery we need in order
to support caching decorators. If we decide this is a bad idea we can remove it
all in one go.
'''
def __setattr__(self, name: str, value: Any):
pass | 2 | 1 | 50 | 3 | 44 | 3 | 7 | 0.21 | 1 | 6 | 1 | 2 | 1 | 0 | 1 | 84 | 63 | 5 | 48 | 7 | 45 | 10 | 20 | 6 | 17 | 7 | 5 | 3 | 7 |
21,068 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/config.py | dagster._config.pythonic_config.config.PermissiveConfig | from pydantic import BaseModel, ConfigDict
from dagster_shared.dagster_model.pydantic_compat_layer import ModelFieldCompat, PydanticUndefined, model_config, model_fields
from dagster._annotations import public
@public
class PermissiveConfig(Config):
"""Subclass of :py:class:`Config` that allows arbitrary extra fie... | @public
class PermissiveConfig(Config):
'''Subclass of :py:class:`Config` that allows arbitrary extra fields. This is useful for
config classes which may have open-ended inputs.
Example definition:
.. code-block:: python
class MyPermissiveOpConfig(PermissiveConfig):
my_explicit_param... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 12 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 91 | 36 | 10 | 2 | 2 | 1 | 24 | 2 | 2 | 1 | 0 | 7 | 0 | 0 |
21,069 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/io_manager.py | dagster._config.pythonic_config.io_manager.ConfigurableIOManager | from dagster._core.storage.io_manager import IOManager, IOManagerDefinition
from dagster._annotations import public
@public
class ConfigurableIOManager(ConfigurableIOManagerFactory, IOManager):
"""Base class for Dagster IO managers that utilize structured config.
This class is a subclass of both :py:class:`IO... | @public
class ConfigurableIOManager(ConfigurableIOManagerFactory, IOManager):
'''Base class for Dagster IO managers that utilize structured config.
This class is a subclass of both :py:class:`IOManagerDefinition`, :py:class:`Config`,
and :py:class:`IOManager`. Implementers must provide an implementation of ... | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 7 | 2 | 0 | 0 | 20 | 1 | 0 | 1 | 137 | 34 | 10 | 3 | 2 | 1 | 21 | 3 | 2 | 1 | 1 | 9 | 0 | 1 |
21,070 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/io_manager.py | dagster._config.pythonic_config.io_manager.ConfigurableIOManagerFactory | from dagster._utils.cached_method import cached_method
from typing import Any, Generic, Optional, Union, cast
from dagster._config.pythonic_config.conversion_utils import TResValue
from dagster._config.pythonic_config.config import Config
from abc import abstractmethod
from dagster._core.definitions.definition_config_s... | @public
class ConfigurableIOManagerFactory(ConfigurableResourceFactory, Generic[TResValue]):
'''Base class for Dagster IO managers that utilize structured config. This base class
is useful for cases in which the returned IO manager is not the same as the class itself
(e.g. when it is a wrapper around the ac... | 14 | 3 | 5 | 0 | 4 | 1 | 1 | 1.03 | 2 | 4 | 2 | 7 | 4 | 5 | 7 | 132 | 88 | 19 | 34 | 22 | 17 | 35 | 15 | 8 | 7 | 1 | 8 | 0 | 7 |
21,071 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/io_manager.py | dagster._config.pythonic_config.io_manager.ConfigurableIOManagerFactoryResourceDefinition | from dagster._core.definitions.definition_config_schema import CoercableToConfigSchema
from collections.abc import Mapping
from typing import Any, Generic, Optional, Union, cast
from dagster._config.pythonic_config.config import Config
from dagster._core.definitions.resource_definition import ResourceFunction
from dags... |
class ConfigurableIOManagerFactoryResourceDefinition(NestedResourcesResourceDefinition, IOManagerDefinition):
def __init__(self, configurable_resource_cls: type, resource_fn: ResourceFunction, config_schema: Any, description: Optional[str], nested_resources: Mapping[str, Any], nested_partial_resources: Mapping[st... | 8 | 0 | 11 | 0 | 11 | 0 | 2 | 0 | 2 | 6 | 1 | 0 | 4 | 4 | 4 | 36 | 53 | 3 | 50 | 32 | 24 | 0 | 15 | 11 | 10 | 3 | 5 | 0 | 6 |
21,072 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/io_manager.py | dagster._config.pythonic_config.io_manager.ConfigurableLegacyIOManagerAdapter | from dagster._utils.cached_method import cached_method
from dagster._core.storage.io_manager import IOManager, IOManagerDefinition
from abc import abstractmethod
class ConfigurableLegacyIOManagerAdapter(ConfigurableIOManagerFactory):
"""Adapter base class for wrapping a decorated, function-style I/O manager
wi... |
class ConfigurableLegacyIOManagerAdapter(ConfigurableIOManagerFactory):
'''Adapter base class for wrapping a decorated, function-style I/O manager
with structured config.
To use this class, subclass it, define config schema fields using Pydantic,
and implement the ``wrapped_io_manager`` method.
Exa... | 7 | 1 | 5 | 0 | 5 | 0 | 1 | 0.95 | 1 | 4 | 3 | 0 | 3 | 5 | 3 | 135 | 49 | 10 | 20 | 11 | 13 | 19 | 7 | 4 | 3 | 1 | 9 | 0 | 3 |
21,073 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/io_manager.py | dagster._config.pythonic_config.io_manager.PartialIOManager | from dagster._config.pythonic_config.type_check_utils import safe_is_subclass
from dagster._utils.cached_method import cached_method
from dagster._config.pythonic_config.conversion_utils import TResValue
from dagster._config.pythonic_config.resource import CoercibleToResource, ConfigurableResourceFactory, NestedResourc... |
class PartialIOManager(PartialResource[TResValue], Generic[TResValue]):
@cached_method
def get_resource_definition(self) -> ConfigurableIOManagerFactoryResourceDefinition:
pass | 3 | 0 | 21 | 1 | 20 | 1 | 2 | 0.04 | 2 | 2 | 2 | 0 | 1 | 1 | 1 | 91 | 26 | 1 | 25 | 10 | 19 | 1 | 9 | 5 | 7 | 2 | 7 | 1 | 2 |
21,074 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.ConfigurableLegacyResourceAdapter | from dagster._core.definitions.resource_definition import ResourceDefinition, ResourceFunction, ResourceFunctionWithContext, ResourceFunctionWithoutContext, has_at_least_one_parameter
from dagster._utils.cached_method import cached_method
from abc import ABC, abstractmethod
class ConfigurableLegacyResourceAdapter(Conf... |
class ConfigurableLegacyResourceAdapter(ConfigurableResource, ABC):
'''Adapter base class for wrapping a decorated, function-style resource
with structured config.
To use this class, subclass it, define config schema fields using Pydantic,
and implement the ``wrapped_resource`` method.
Example:
... | 7 | 1 | 5 | 0 | 5 | 0 | 1 | 1 | 2 | 2 | 1 | 0 | 3 | 5 | 3 | 129 | 46 | 10 | 18 | 11 | 11 | 18 | 7 | 4 | 3 | 1 | 9 | 0 | 3 |
21,075 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.ConfigurableResource | from dagster._config.pythonic_config.conversion_utils import TResValue, _curry_config_schema
from typing import AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
from dagster._core.execution.context.init import InitResourceContext, build_init_resource_context
from dagster._annotations impo... | @public
class ConfigurableResource(ConfigurableResourceFactory[TResValue]):
'''Base class for Dagster resources that utilize structured config.
This class is a subclass of both :py:class:`ResourceDefinition` and :py:class:`Config`.
Example definition:
.. code-block:: python
class WriterResource(... | 3 | 2 | 9 | 1 | 2 | 6 | 1 | 14.67 | 1 | 0 | 0 | 57 | 1 | 0 | 1 | 126 | 67 | 20 | 3 | 2 | 1 | 44 | 3 | 2 | 1 | 1 | 8 | 0 | 1 |
21,076 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.ConfigurableResourceFactory | from typing import AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
from collections.abc import Generator, Iterator, Mapping
import contextlib
from dagster._config.pythonic_config.conversion_utils import TResValue, _curry_config_schema
import dagster._check as check
from dagster._config.f... | null | 51 | 15 | 10 | 1 | 6 | 3 | 1 | 0.58 | 5 | 13 | 3 | 11 | 23 | 3 | 28 | 125 | 385 | 67 | 210 | 99 | 134 | 121 | 93 | 48 | 61 | 3 | 7 | 2 | 31 |
21,077 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.ConfigurableResourceFactoryResourceDefinition | from typing import AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
from collections.abc import Generator, Iterator, Mapping
from dagster._core.definitions.resource_definition import ResourceDefinition, ResourceFunction, ResourceFunctionWithContext, ResourceFunctionWithoutContext, has_at_... |
class ConfigurableResourceFactoryResourceDefinition(NestedResourcesResourceDefinition):
def __init__(self, configurable_resource_cls: type, resource_fn: ResourceFunction, config_schema: Any, description: Optional[str], nested_resources: Mapping[str, Any], nested_partial_resources: Mapping[str, Any], dagster_maint... | 9 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 5 | 0 | 0 | 5 | 4 | 5 | 30 | 39 | 4 | 35 | 26 | 13 | 0 | 15 | 10 | 9 | 1 | 5 | 0 | 5 |
21,078 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.ConfigurableResourceFactoryState | from typing import AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
from collections.abc import Generator, Iterator, Mapping
from dagster._config.field import Field as DagsterField
from dagster._core.definitions.definition_config_schema import ConfiguredDefinitionConfigSchema, DefinitionC... |
class ConfigurableResourceFactoryState(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
21,079 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.NestedResourcesResourceDefinition | from dagster._core.definitions.resource_definition import ResourceDefinition, ResourceFunction, ResourceFunctionWithContext, ResourceFunctionWithoutContext, has_at_least_one_parameter
import dagster._check as check
from abc import ABC, abstractmethod
from collections.abc import Generator, Iterator, Mapping
from typing ... |
class NestedResourcesResourceDefinition(ResourceDefinition, ABC):
@property
@abstractmethod
def nested_partial_resources(self) -> Mapping[str, 'CoercibleToResource']:
pass
@property
@abstractmethod
def nested_resources(self) -> Mapping[str, Any]:
pass
@property
@abstrac... | 12 | 0 | 7 | 1 | 7 | 0 | 2 | 0 | 2 | 7 | 1 | 2 | 5 | 0 | 5 | 25 | 48 | 8 | 40 | 16 | 29 | 0 | 24 | 11 | 18 | 5 | 4 | 2 | 12 |
21,080 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.PartialResource | from dagster._utils.cached_method import cached_method
from dagster._config.pythonic_config.config import Config, MakeConfigCacheable, infer_schema_from_config_class
from collections.abc import Generator, Iterator, Mapping
from typing import AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cas... |
class PartialResource(MakeConfigCacheable, Generic[TResValue]):
def __init__(self, resource_cls: type[ConfigurableResourceFactory[TResValue]], data: dict[str, Any]):
pass
def resource_fn(context: InitResourceContext):
pass
@property
def _nested_partial_resources(self) -> M... | 9 | 0 | 11 | 1 | 10 | 2 | 1 | 0.17 | 2 | 9 | 3 | 1 | 4 | 1 | 4 | 90 | 63 | 7 | 53 | 24 | 33 | 9 | 17 | 10 | 11 | 1 | 6 | 0 | 5 |
21,081 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.PartialResourceDependencyRequirement | from collections.abc import Generator, Iterator, Mapping
from dagster._core.errors import DagsterInvalidConfigError, DagsterInvalidDefinitionError
from dagster._core.definitions.resource_requirement import ResourceRequirement
from dagster._record import record
@record
class PartialResourceDependencyRequirement(Resourc... | @record
class PartialResourceDependencyRequirement(ResourceRequirement):
def is_satisfied(self, resource_defs: Mapping[str, 'ResourceDefinition']):
pass
def ensure_satisfied(self, resource_defs: Mapping[str, 'ResourceDefinition']):
pass | 4 | 0 | 5 | 1 | 5 | 0 | 2 | 0 | 1 | 2 | 0 | 0 | 2 | 0 | 2 | 2 | 16 | 3 | 13 | 4 | 9 | 0 | 10 | 4 | 6 | 2 | 1 | 1 | 3 |
21,082 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.PartialResourceState | from dagster._config.field import Field as DagsterField
from dagster._core.execution.context.init import InitResourceContext, build_init_resource_context
from typing import AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
class PartialResourceState(NamedTuple):
nested_partial_resourc... |
class PartialResourceState(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 1 | 0 | 0 |
21,083 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.ResourceDataWithAnnotation | from typing import AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
class ResourceDataWithAnnotation(NamedTuple):
key: str
value: Any
annotation: type
annotation_metadata: list[str] |
class ResourceDataWithAnnotation(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
21,084 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.ResourceDependency | from typing import AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
class ResourceDependency(Generic[V]):
def __set_name__(self, _owner, name):
self._name = name
def __get__(self, obj: 'ConfigurableResourceFactory', owner: Any) -> V:
return getattr(obj, self._na... |
class ResourceDependency(Generic[V]):
def __set_name__(self, _owner, name):
pass
def __get__(self, obj: 'ConfigurableResourceFactory', owner: Any) -> V:
pass
def __set__(self, obj: Optional[object], value: ResourceOrPartialOrValue[V]) -> None:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 3 | 1 | 3 | 5 | 9 | 2 | 7 | 5 | 3 | 0 | 7 | 5 | 3 | 1 | 1 | 0 | 3 |
21,085 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/resource.py | dagster._config.pythonic_config.resource.SeparatedResourceParams | from typing import AbstractSet, Any, Callable, Generic, NamedTuple, Optional, TypeVar, Union, cast
class SeparatedResourceParams(NamedTuple):
resources: dict[str, Any]
non_resources: dict[str, Any] |
class SeparatedResourceParams(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
21,086 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/typing_utils.py | dagster._config.pythonic_config.typing_utils.BaseConfigMeta | from typing import TYPE_CHECKING, Annotated, Any, Generic, Optional, TypeVar, Union, cast
from pydantic import Field
from dagster._core.errors import DagsterInvalidDagsterTypeInPythonicConfigDefinitionError
from typing_extensions import Self, dataclass_transform, get_origin
@dataclass_transform(kw_only_default=True, f... | @dataclass_transform(kw_only_default=True, field_specifiers=(Field,))
class BaseConfigMeta(ModelMetaclass):
def __new__(cls, name, bases, namespaces, **kwargs) -> Any:
pass | 3 | 0 | 18 | 4 | 10 | 4 | 4 | 0.45 | 1 | 4 | 1 | 2 | 1 | 0 | 1 | 31 | 19 | 4 | 11 | 5 | 8 | 5 | 11 | 5 | 8 | 4 | 4 | 3 | 4 |
21,087 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/typing_utils.py | dagster._config.pythonic_config.typing_utils.BaseResourceMeta | from typing_extensions import Self, dataclass_transform, get_origin
from pydantic import Field
from dagster._config.pythonic_config.type_check_utils import safe_is_subclass
from typing import TYPE_CHECKING, Annotated, Any, Generic, Optional, TypeVar, Union, cast
@dataclass_transform(kw_only_default=True, field_specifi... | @dataclass_transform(kw_only_default=True, field_specifiers=(Field,))
class BaseResourceMeta(BaseConfigMeta):
'''Custom metaclass for Resource and PartialResource. This metaclass is responsible for
transforming the type annotations on the class so that Pydantic constructor-time validation
does not error whe... | 3 | 1 | 32 | 2 | 22 | 8 | 5 | 0.96 | 1 | 4 | 1 | 1 | 1 | 0 | 1 | 32 | 54 | 9 | 23 | 5 | 21 | 22 | 11 | 5 | 9 | 5 | 5 | 3 | 5 |
21,088 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/typing_utils.py | dagster._config.pythonic_config.typing_utils.LateBoundTypesForResourceTypeChecking | from typing import TYPE_CHECKING, Annotated, Any, Generic, Optional, TypeVar, Union, cast
class LateBoundTypesForResourceTypeChecking:
_TResValue = TypeVar('_TResValue')
class _Temp(Generic[_TResValue]):
pass
_ResourceDep: type = _Temp
_Resource: type = _Temp
_PartialResource: type = _Temp... |
class LateBoundTypesForResourceTypeChecking:
class _Temp(Generic[_TResValue]):
@staticmethod
def get_resource_rep_type() -> type:
pass
@staticmethod
def get_resource_type() -> type:
pass
@staticmethod
def get_partial_resource_type(base: type) -> type:
pass
@sta... | 10 | 0 | 4 | 0 | 3 | 1 | 1 | 0.17 | 0 | 1 | 0 | 0 | 0 | 0 | 4 | 4 | 33 | 6 | 23 | 16 | 11 | 4 | 17 | 10 | 11 | 1 | 0 | 0 | 4 |
21,089 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/pythonic_config/typing_utils.py | dagster._config.pythonic_config.typing_utils.TypecheckAllowPartialResourceInitParams | from typing_extensions import Self, dataclass_transform, get_origin
from typing import TYPE_CHECKING, Annotated, Any, Generic, Optional, TypeVar, Union, cast
class TypecheckAllowPartialResourceInitParams:
"""Implementation of the Python descriptor protocol (https://docs.python.org/3/howto/descriptor.html)
to a... |
class TypecheckAllowPartialResourceInitParams:
'''Implementation of the Python descriptor protocol (https://docs.python.org/3/howto/descriptor.html)
to adjust the types of resource inputs and outputs, e.g. resource dependencies can be passed in
as PartialResources or Resources, but will always be returned ... | 4 | 1 | 3 | 0 | 2 | 1 | 1 | 4.71 | 0 | 2 | 0 | 1 | 3 | 1 | 3 | 3 | 53 | 13 | 7 | 5 | 3 | 33 | 7 | 5 | 3 | 1 | 0 | 0 | 3 |
21,090 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/snap.py | dagster._config.snap.ConfigEnumValueSnap | from dagster._record import IHaveNew, record, record_custom
from dagster._serdes import whitelist_for_serdes
from typing import Any, Optional, cast
@whitelist_for_serdes
@record
class ConfigEnumValueSnap:
value: str
description: Optional[str] | @whitelist_for_serdes
@record
class ConfigEnumValueSnap:
pass | 3 | 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 |
21,091 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/snap.py | dagster._config.snap.ConfigFieldSnap | from dagster._record import IHaveNew, record, record_custom
from dagster._serdes import whitelist_for_serdes
from typing import Any, Optional, cast
@whitelist_for_serdes
@record
class ConfigFieldSnap:
name: Optional[str]
type_key: str
is_required: bool
default_provided: bool
default_value_as_json_s... | @whitelist_for_serdes
@record
class ConfigFieldSnap:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 0 | 0 | 0 |
21,092 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/snap.py | dagster._config.snap.ConfigSchemaSnapshot | import dagster._check as check
from dagster._serdes import whitelist_for_serdes
from dagster._record import IHaveNew, record, record_custom
from collections.abc import Mapping, Sequence
@whitelist_for_serdes
@record
class ConfigSchemaSnapshot:
all_config_snaps_by_key: Mapping[str, ConfigTypeSnap]
@property
... | @whitelist_for_serdes
@record
class ConfigSchemaSnapshot:
@property
def all_config_keys(self) -> Sequence[str]:
pass
def get_config_snap(self, key: str) -> ConfigTypeSnap:
pass
def has_config_snap(self, key: str) -> bool:
pass | 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 5 | 1 | 0 | 3 | 0 | 3 | 3 | 14 | 3 | 11 | 5 | 6 | 0 | 10 | 4 | 6 | 1 | 0 | 0 | 3 |
21,093 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/snap.py | dagster._config.snap.ConfigTypeSnap | from dagster._record import IHaveNew, record, record_custom
from dagster._serdes import whitelist_for_serdes
from collections.abc import Mapping, Sequence
from dagster._config.config_type import ConfigScalarKind, ConfigType, ConfigTypeKind
from typing import Any, Optional, cast
import dagster._check as check
@whitelis... | @whitelist_for_serdes(skip_when_empty_fields={'field_aliases'})
@record_custom
class ConfigTypeSnap(IHaveNew):
def __new__(cls, kind: ConfigTypeKind, key: str, given_name: Optional[str], description: Optional[str], type_param_keys: Optional[Sequence[str]], enum_values: Optional[Sequence['ConfigEnumValueSnap']], fi... | 19 | 2 | 9 | 0 | 8 | 1 | 2 | 0.16 | 1 | 9 | 2 | 0 | 11 | 0 | 11 | 13 | 130 | 14 | 105 | 37 | 77 | 17 | 62 | 21 | 50 | 3 | 1 | 2 | 20 |
21,094 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/source.py | dagster._config.source.BoolSourceType | from dagster._config.config_type import ScalarUnion
from dagster._config.field_utils import Selector
from dagster_shared.utils import get_boolean_string_value
from dagster._config.errors import PostProcessingError
import dagster._check as check
class BoolSourceType(ScalarUnion):
def __init__(self):
super(... |
class BoolSourceType(ScalarUnion):
def __init__(self):
pass
def post_process(self, value):
pass | 3 | 0 | 12 | 2 | 10 | 0 | 2 | 0 | 1 | 7 | 2 | 0 | 2 | 0 | 2 | 2 | 25 | 4 | 21 | 5 | 18 | 0 | 15 | 4 | 12 | 3 | 1 | 1 | 4 |
21,095 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/source.py | dagster._config.source.IntSourceType | from dagster._config.config_type import ScalarUnion
from dagster._config.errors import PostProcessingError
import dagster._check as check
from dagster._config.field_utils import Selector
class IntSourceType(ScalarUnion):
def __init__(self):
super().__init__(scalar_type=int, non_scalar_schema=Selector({'en... |
class IntSourceType(ScalarUnion):
def __init__(self):
pass
def post_process(self, value):
pass | 3 | 0 | 12 | 2 | 10 | 0 | 2 | 0 | 1 | 7 | 2 | 0 | 2 | 0 | 2 | 2 | 25 | 4 | 21 | 5 | 18 | 0 | 15 | 4 | 12 | 3 | 1 | 1 | 4 |
21,096 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/source.py | dagster._config.source.StringSourceType | from dagster._config.config_type import ScalarUnion
import dagster._check as check
from dagster._config.field_utils import Selector
class StringSourceType(ScalarUnion):
def __init__(self):
super().__init__(scalar_type=str, non_scalar_schema=Selector({'env': str}), _key='StringSourceType')
def post_pr... |
class StringSourceType(ScalarUnion):
def __init__(self):
pass
def post_process(self, value):
pass | 3 | 0 | 8 | 1 | 7 | 0 | 2 | 0 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 2 | 17 | 3 | 14 | 4 | 11 | 0 | 10 | 4 | 7 | 2 | 1 | 1 | 3 |
21,097 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/stack.py | dagster._config.stack.EvaluationStackEntry | from typing import Optional
from dagster._record import record
from collections.abc import Iterator, Sequence
@record
class EvaluationStackEntry:
parent: Optional['EvaluationStackEntry']
@property
def entries(self) -> Sequence['EvaluationStackEntry']:
return list(self.iter_entries())
def iter... | @record
class EvaluationStackEntry:
@property
def entries(self) -> Sequence['EvaluationStackEntry']:
pass
def iter_entries(self) -> Iterator['EvaluationStackEntry']:
pass
@property
def levels(self) -> Sequence[str]:
pass
def for_field(self, field_name: str) -> 'Evaluat... | 11 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 10 | 4 | 5 | 7 | 0 | 7 | 7 | 45 | 8 | 37 | 10 | 27 | 0 | 19 | 8 | 11 | 3 | 0 | 1 | 9 |
21,098 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/stack.py | dagster._config.stack.EvaluationStackListItemEntry | from dagster._record import record
@record
class EvaluationStackListItemEntry(EvaluationStackEntry):
list_index: int | @record
class EvaluationStackListItemEntry(EvaluationStackEntry):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
21,099 | dagster-io/dagster | dagster-io_dagster/python_modules/dagster/dagster/_config/stack.py | dagster._config.stack.EvaluationStackMapKeyEntry | from dagster._record import record
@record
class EvaluationStackMapKeyEntry(EvaluationStackEntry):
map_key: object | @record
class EvaluationStackMapKeyEntry(EvaluationStackEntry):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.