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,400 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airflow/dagster_airflow/operators/dagster_operator.py | dagster_airflow.operators.dagster_operator.DagsterCloudOperator | from dagster._annotations import superseded
@superseded(additional_warn_text='`DagsterCloudOperator` has been superseded by the functionality in the `dagster-airlift` library.')
class DagsterCloudOperator(DagsterOperator):
"""DagsterCloudOperator.
Uses the dagster cloud graphql api to run and monitor dagster ... | @superseded(additional_warn_text='`DagsterCloudOperator` has been superseded by the functionality in the `dagster-airlift` library.')
class DagsterCloudOperator(DagsterOperator):
'''DagsterCloudOperator.
Uses the dagster cloud graphql api to run and monitor dagster jobs on dagster cloud
Parameters:
... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 12 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 15 | 2 | 1 | 1 | 0 | 12 | 1 | 1 | 0 | 0 | 2 | 0 | 0 |
22,401 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airflow/dagster_airflow/operators/dagster_operator.py | dagster_airflow.operators.dagster_operator.DagsterOperator | from dagster_airflow.hooks.dagster_hook import DagsterHook
from dagster._annotations import superseded
import json
from airflow.utils.decorators import apply_defaults
from dagster_airflow.links.dagster_link import LINK_FMT, DagsterLink
from airflow.models import BaseOperator
from dagster_airflow.utils import is_airflow... | @superseded(additional_warn_text='`DagsterOperator` has been superseded by the functionality in the `dagster-airlift` library.')
class DagsterOperator(BaseOperator):
'''DagsterOperator.
Uses the dagster graphql api to run and monitor dagster jobs on remote dagster infrastructure
Parameters:
reposito... | 9 | 1 | 15 | 1 | 13 | 1 | 2 | 0.22 | 1 | 4 | 1 | 1 | 6 | 11 | 6 | 6 | 115 | 12 | 87 | 38 | 66 | 19 | 43 | 23 | 36 | 3 | 1 | 1 | 11 |
22,402 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airflow/dagster_airflow/resources/airflow_db.py | dagster_airflow.resources.airflow_db.AirflowDatabase | from dagster import DagsterInvariantViolationError, DagsterRun, _check as check
import datetime
from dagster._core.instance.utils import AIRFLOW_EXECUTION_DATE_STR
from typing import Optional
from airflow.models.dagrun import DagRun
from collections.abc import Mapping
import pendulum
from airflow.models.dag import DAG
... |
class AirflowDatabase:
'''Airflow database Dagster resource.'''
def __init__(self, dagster_run: DagsterRun, dag_run_config: Optional[dict]=None):
pass
def _parse_execution_date_for_job(self, dag: DAG, run_tags: Mapping[str, str]) -> Optional[datetime.datetime]:
pass
def _parse_execut... | 5 | 1 | 16 | 0 | 16 | 1 | 3 | 0.06 | 0 | 6 | 0 | 2 | 4 | 2 | 4 | 4 | 68 | 4 | 63 | 18 | 54 | 4 | 34 | 14 | 29 | 6 | 0 | 2 | 13 |
22,403 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airflow/dagster_airflow/resources/airflow_ephemeral_db.py | dagster_airflow.resources.airflow_ephemeral_db.AirflowEphemeralDatabase | from dagster_airflow.utils import Locker, create_airflow_connections, is_airflow_2_loaded_in_environment, serialize_connections
import os
import importlib
from typing import Optional
import tempfile
from dagster import Array, DagsterRun, Field, InitResourceContext, Noneable, ResourceDefinition, _check as check
from dag... |
class AirflowEphemeralDatabase(AirflowDatabase):
'''A ephemeral Airflow database Dagster resource.'''
def __init__(self, airflow_home_path: str, dagster_run: DagsterRun, dag_run_config: Optional[dict]=None):
pass
@staticmethod
def _initialize_database(airflow_home_path: str=os.path.join(tempfi... | 6 | 1 | 11 | 0 | 11 | 0 | 2 | 0.06 | 1 | 5 | 1 | 0 | 1 | 1 | 3 | 7 | 41 | 3 | 36 | 14 | 25 | 2 | 21 | 7 | 17 | 3 | 1 | 2 | 5 |
22,404 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airflow/dagster_airflow/resources/airflow_persistent_db.py | dagster_airflow.resources.airflow_persistent_db.AirflowPersistentDatabase | from dagster import Array, DagsterRun, Field, InitResourceContext, ResourceDefinition, StringSource, _check as check
from typing import Optional
import os
from dagster_airflow.utils import create_airflow_connections, is_airflow_2_loaded_in_environment, serialize_connections
import airflow
import importlib
from airflow.... |
class AirflowPersistentDatabase(AirflowDatabase):
'''A persistent Airflow database Dagster resource.'''
def __init__(self, dagster_run: DagsterRun, uri: str, dag_run_config: Optional[dict]=None):
pass
@staticmethod
def _initialize_database(uri: str, connections: list[Connection]=[]):
p... | 6 | 1 | 8 | 0 | 8 | 0 | 1 | 0.04 | 1 | 4 | 0 | 0 | 1 | 1 | 3 | 7 | 30 | 3 | 26 | 8 | 20 | 1 | 17 | 6 | 13 | 2 | 1 | 1 | 4 |
22,405 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airflow/dagster_airflow/utils.py | dagster_airflow.utils.DagsterAirflowError | class DagsterAirflowError(Exception):
pass | class DagsterAirflowError(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,406 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airflow/dagster_airflow/utils.py | dagster_airflow.utils.Locker | class Locker:
def __init__(self, lock_file_path='.'):
self.lock_file_path = lock_file_path
self.fp = None
def __enter__(self):
self.fp = open(f'{self.lock_file_path}/lockfile.lck', 'w+', encoding='utf-8')
portable_lock(self.fp)
def __exit__(self, _type, value, tb):
... | class Locker:
def __init__(self, lock_file_path='.'):
pass
def __enter__(self):
pass
def __exit__(self, _type, value, tb):
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 2 | 3 | 3 | 12 | 2 | 10 | 6 | 6 | 0 | 10 | 6 | 6 | 2 | 0 | 0 | 4 |
22,407 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/airflow_defs_data.py | dagster_airlift.core.airflow_defs_data.AirflowDefinitionsData | from dagster import AssetKey, AssetsDefinition, AssetSpec
from functools import cached_property
from collections import defaultdict
from dagster_airlift.core.serialization.compute import AirliftMetadataMappingInfo, build_airlift_metadata_mapping_info
from dagster._annotations import beta, public
from typing import Abst... | @beta
@record
class AirflowDefinitionsData:
'''A class that holds data about the assets that are mapped to Airflow dags and tasks, and
provides methods for retrieving information about the mappings.
The user should not instantiate this class directly. It is provided when customizing the events
that are ... | 32 | 13 | 5 | 0 | 4 | 1 | 2 | 0.31 | 0 | 8 | 3 | 0 | 10 | 0 | 10 | 10 | 81 | 13 | 52 | 33 | 30 | 16 | 41 | 23 | 30 | 4 | 0 | 3 | 19 |
22,408 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/airflow_instance.py | dagster_airlift.core.airflow_instance.AirflowAuthBackend | from dagster._annotations import beta, public
import requests
from abc import ABC
@beta
class AirflowAuthBackend(ABC):
"""An abstract class that represents an authentication backend for an Airflow instance.
Requires two methods to be implemented by subclasses:
- get_session: Returns a requests.Session obj... | @beta
class AirflowAuthBackend(ABC):
'''An abstract class that represents an authentication backend for an Airflow instance.
Requires two methods to be implemented by subclasses:
- get_session: Returns a requests.Session object that can be used to make requests to the Airflow instance, and handles authentic... | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 1.6 | 1 | 3 | 0 | 3 | 2 | 0 | 2 | 22 | 17 | 4 | 5 | 3 | 2 | 8 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
22,409 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/airflow_instance.py | dagster_airlift.core.airflow_instance.AirflowInstance | from dagster_airlift.core.filter import AirflowFilter
from dagster_airlift.core.serialization.serialized_data import DagInfo, Dataset, DatasetConsumingDag, DatasetProducingTask, TaskInfo
from dagster._core.definitions.utils import check_valid_name
from dagster_shared.error import DagsterError
from dagster_airlift.core.... | @beta
class AirflowInstance:
'''A class that represents a running Airflow Instance and provides methods for interacting with its REST API.
Args:
auth_backend (AirflowAuthBackend): The authentication backend to use when making requests to the Airflow instance.
name (str): The name of the Airflow ... | 28 | 8 | 16 | 1 | 14 | 1 | 2 | 0.13 | 0 | 15 | 6 | 1 | 18 | 4 | 18 | 18 | 316 | 29 | 255 | 71 | 216 | 33 | 99 | 51 | 80 | 5 | 0 | 4 | 37 |
22,410 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/basic_auth.py | dagster_airlift.core.basic_auth.AirflowBasicAuthBackend | import requests
from dagster._annotations import beta
from dagster_airlift.core.airflow_instance import AirflowAuthBackend
@beta
class AirflowBasicAuthBackend(AirflowAuthBackend):
"""A :py:class:`dagster_airlift.core.AirflowAuthBackend` that authenticates using basic auth.
Args:
webserver_url (str): T... | null | 5 | 1 | 3 | 0 | 3 | 0 | 1 | 1.64 | 1 | 2 | 0 | 0 | 3 | 3 | 3 | 25 | 38 | 9 | 11 | 8 | 7 | 18 | 11 | 8 | 7 | 1 | 5 | 0 | 3 |
22,411 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/load_defs.py | dagster_airlift.core.load_defs.AirflowInstanceDefsLoader | from dagster_airlift.core.utils import MappedAsset, dag_handles_for_spec, get_metadata_key, is_dag_mapped_asset_spec, is_task_mapped_asset_spec, spec_iterator, task_handles_for_spec, type_narrow_defs_assets
from dagster_airlift.core.sensor.sensor_builder import DEFAULT_AIRFLOW_SENSOR_INTERVAL_SECONDS, build_airflow_pol... | @dataclass
class AirflowInstanceDefsLoader(StateBackedDefinitionsLoader[SerializedAirflowDefinitionsData]):
@property
def defs_key(self) -> str:
pass
def fetch_state(self) -> SerializedAirflowDefinitionsData:
pass
def defs_from_state(self, serialized_airflow_data: SerializedAirflowDef... | 6 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 3 | 0 | 3 | 30 | 26 | 3 | 23 | 9 | 16 | 0 | 11 | 6 | 7 | 1 | 5 | 0 | 3 |
22,412 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/multiple_tasks.py | dagster_airlift.core.multiple_tasks.TaskHandleDict | from dagster._annotations import beta
from typing import TypedDict, Union, cast
@beta
class TaskHandleDict(TypedDict):
dag_id: str
task_id: str | @beta
class TaskHandleDict(TypedDict):
pass | 2 | 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,413 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/sensor/sensor_builder.py | dagster_airlift.core.sensor.sensor_builder.AirflowPollingSensorCursor | from dagster._record import record
from typing import Optional
from dagster_shared.serdes import whitelist_for_serdes
@whitelist_for_serdes
@record
class AirflowPollingSensorCursor:
"""A cursor that stores the last effective timestamp and the last polled dag id."""
end_date_gte: Optional[float] = None
end_... | @whitelist_for_serdes
@record
class AirflowPollingSensorCursor:
'''A cursor that stores the last effective timestamp and the last polled dag id.'''
pass | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 0 | 0 | 0 |
22,414 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/sensor/sensor_builder.py | dagster_airlift.core.sensor.sensor_builder.AirliftSensorEventTransformerError | from dagster._core.errors import DagsterInvariantViolationError, DagsterUserCodeExecutionError, user_code_error_boundary
class AirliftSensorEventTransformerError(DagsterUserCodeExecutionError):
"""Error raised when an error occurs in the event transformer function.""" |
class AirliftSensorEventTransformerError(DagsterUserCodeExecutionError):
'''Error raised when an error occurs in the event transformer function.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
22,415 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/sensor/sensor_builder.py | dagster_airlift.core.sensor.sensor_builder.BatchResult | from dagster import AssetCheckKey, AssetKey, AssetMaterialization, DefaultSensorStatus, RunRequest, SensorDefinition, SensorEvaluationContext, SensorResult, _check as check, sensor
from dagster._record import record
from collections.abc import Iterable, Iterator, Sequence
@record
class BatchResult:
idx: int
as... | @record
class BatchResult:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
22,416 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/serialization/compute.py | dagster_airlift.core.serialization.compute.AirliftMetadataMappingInfo | from collections.abc import Iterable, Sequence
from dagster import AssetKey, AssetSpec
from dagster_airlift.core.serialization.serialized_data import DagHandle, Dataset, KeyScopedDagHandles, KeyScopedTaskHandles, SerializedAirflowDefinitionsData, SerializedDagData, TaskHandle, TaskInfo
from dagster_airlift.core.utils i... | @record
class AirliftMetadataMappingInfo:
@cached_property
def mapped_task_asset_specs(self) -> list[AssetSpec]:
pass
@cached_property
def mapped_dag_asset_specs(self) -> list[AssetSpec]:
pass
@cached_property
def dag_ids(self) -> set[str]:
pass
@cached_property
... | 20 | 4 | 6 | 0 | 5 | 1 | 3 | 0.12 | 0 | 5 | 1 | 0 | 9 | 0 | 9 | 9 | 75 | 10 | 58 | 36 | 39 | 7 | 46 | 27 | 36 | 4 | 0 | 3 | 23 |
22,417 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/serialization/compute.py | dagster_airlift.core.serialization.compute.FetchedAirflowData | from collections.abc import Iterable, Sequence
from typing import TYPE_CHECKING, AbstractSet, Callable, Optional
from dagster_airlift.core.airflow_instance import AirflowInstance, DagInfo
from functools import cached_property
from dagster_airlift.core.utils import dag_handles_for_spec, is_dag_mapped_asset_spec, is_task... | @record
class FetchedAirflowData:
@cached_property
def all_mapped_tasks(self) -> dict[AssetKey, AbstractSet[TaskHandle]]:
pass
@cached_property
def all_mapped_dags(self) -> dict[AssetKey, AbstractSet[DagHandle]]:
pass | 6 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 3 | 2 | 0 | 2 | 0 | 2 | 2 | 18 | 2 | 16 | 5 | 11 | 0 | 8 | 3 | 5 | 1 | 0 | 0 | 2 |
22,418 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/serialization/serialized_data.py | dagster_airlift.core.serialization.serialized_data.DagHandle | from dagster._serdes import whitelist_for_serdes
from collections.abc import Mapping, Sequence
from dagster_airlift.constants import DAG_ID_TAG_KEY, DAG_MAPPING_METADATA_KEY, TASK_ID_TAG_KEY, TASK_MAPPING_METADATA_KEY
from typing import AbstractSet, Any, NamedTuple, Optional
@whitelist_for_serdes
class DagHandle(Named... | @whitelist_for_serdes
class DagHandle(NamedTuple):
@property
def metadata_key(self) -> str:
pass
@property
def as_dict(self) -> Mapping[str, Any]:
pass
@property
def identifying_tags(self) -> dict[str, str]:
pass | 8 | 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 |
22,419 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/serialization/serialized_data.py | dagster_airlift.core.serialization.serialized_data.DagInfo | from dagster._annotations import PublicAttr, beta
from dagster._serdes import whitelist_for_serdes
from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._record import record
@beta
@whitelist_for_serdes
@record
class DagInfo:
"""A record containing information about a given airflow dag.
Users... | @beta
@whitelist_for_serdes
@record
class DagInfo:
'''A record containing information about a given airflow dag.
Users should not instantiate this class directly. It is provided when customizing which DAGs are included
in the generated definitions using the `dag_selector_fn` argument of :py:func:`build_defs... | 8 | 1 | 2 | 0 | 2 | 0 | 1 | 0.7 | 0 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 22 | 5 | 10 | 5 | 5 | 7 | 8 | 3 | 5 | 1 | 0 | 0 | 2 |
22,420 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/serialization/serialized_data.py | dagster_airlift.core.serialization.serialized_data.KeyScopedDagHandles | from typing import AbstractSet, Any, NamedTuple, Optional
from dagster import AssetKey, _check as check
from dagster._record import record
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
@record
class KeyScopedDagHandles:
asset_key: AssetKey
mapped_dags: AbstractSet[DagHandle] | @whitelist_for_serdes
@record
class KeyScopedDagHandles:
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 |
22,421 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/serialization/serialized_data.py | dagster_airlift.core.serialization.serialized_data.KeyScopedTaskHandles | from dagster import AssetKey, _check as check
from dagster._record import record
from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
@record
class KeyScopedTaskHandles:
asset_key: AssetKey
mapped_tasks: AbstractSet[TaskHandle] | @whitelist_for_serdes
@record
class KeyScopedTaskHandles:
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 |
22,422 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/serialization/serialized_data.py | dagster_airlift.core.serialization.serialized_data.SerializedAirflowDefinitionsData | from collections import defaultdict
from functools import cached_property
from dagster import AssetKey, _check as check
from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._record import record
from dagster._serdes import whitelist_for_serdes
from collections.abc import Mapping, Sequence
@whitelist_... | @whitelist_for_serdes
@record
class SerializedAirflowDefinitionsData:
@cached_property
def all_mapped_tasks(self) -> dict[AssetKey, AbstractSet[TaskHandle]]:
pass
@cached_property
def all_mapped_dags(self) -> dict[AssetKey, AbstractSet[DagHandle]]:
pass
@cached_property
def data... | 11 | 2 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 3 | 2 | 0 | 2 | 0 | 2 | 2 | 13 | 2 | 11 | 5 | 6 | 0 | 9 | 3 | 6 | 1 | 0 | 0 | 2 |
22,423 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/serialization/serialized_data.py | dagster_airlift.core.serialization.serialized_data.SerializedDagData | from dagster import AssetKey, _check as check
from dagster._record import record
from collections.abc import Mapping, Sequence
from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
@record
class SerializedDagData:
"""A record containing pre... | @whitelist_for_serdes
@record
class SerializedDagData:
'''A record containing pre-computed data about a given airflow dag.'''
pass | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 1 | 6 | 1 | 5 | 1 | 6 | 1 | 5 | 0 | 0 | 0 | 0 |
22,424 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/serialization/serialized_data.py | dagster_airlift.core.serialization.serialized_data.TaskHandle | from dagster._serdes import whitelist_for_serdes
from typing import AbstractSet, Any, NamedTuple, Optional
from collections.abc import Mapping, Sequence
from dagster_airlift.constants import DAG_ID_TAG_KEY, DAG_MAPPING_METADATA_KEY, TASK_ID_TAG_KEY, TASK_MAPPING_METADATA_KEY
@whitelist_for_serdes
class TaskHandle(Name... | @whitelist_for_serdes
class TaskHandle(NamedTuple):
@property
def metadata_key(self) -> str:
pass
@property
def as_dict(self) -> Mapping[str, Any]:
pass
@property
def identifying_tags(self) -> dict[str, str]:
pass | 8 | 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,425 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/core/serialization/serialized_data.py | dagster_airlift.core.serialization.serialized_data.TaskInfo | from functools import cached_property
from dagster._record import record
from dagster import AssetKey, _check as check
from typing import AbstractSet, Any, NamedTuple, Optional
from dagster._serdes import whitelist_for_serdes
@whitelist_for_serdes
@record
class TaskInfo:
webserver_url: str
dag_id: str
task... | @whitelist_for_serdes
@record
class TaskInfo:
@property
def dag_url(self) -> str:
pass
@cached_property
def downstream_task_ids(self) -> list[str]:
pass | 7 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 2 | 0 | 2 | 2 | 13 | 2 | 11 | 5 | 6 | 0 | 9 | 3 | 6 | 1 | 0 | 0 | 2 |
22,426 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/base_asset_operator.py | dagster_airlift.in_airflow.base_asset_operator.BaseDagsterAssetsOperator | from dagster_airlift.in_airflow.partition_utils import PARTITION_NAME_TAG, PartitioningInformation, translate_logical_date_to_partition_key
from dagster_airlift.in_airflow.gql_queries import ASSET_NODES_QUERY, RUNS_QUERY, TRIGGER_ASSETS_MUTATION, VERIFICATION_QUERY
import os
from airflow.models import BaseOperator
from... |
class BaseDagsterAssetsOperator(BaseOperator, ABC):
'''Interface for an operator which materializes dagster assets.
This operator needs to implement the following methods:
- get_dagster_session: Returns a requests session that can be used to make requests to the Dagster API.
This is where a... | 24 | 6 | 10 | 0 | 9 | 1 | 2 | 0.13 | 2 | 14 | 2 | 3 | 20 | 1 | 20 | 40 | 239 | 29 | 186 | 71 | 140 | 24 | 101 | 46 | 80 | 5 | 4 | 2 | 34 |
22,427 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/dag_proxy_operator.py | dagster_airlift.in_airflow.dag_proxy_operator.BaseProxyDAGToDagsterOperator | from dagster_airlift.constants import DAG_MAPPING_METADATA_KEY, DEFER_ASSET_EVENTS_TAG, TASK_ID_TAG_KEY
from dagster_airlift.in_airflow.base_asset_operator import BaseDagsterAssetsOperator, Context
from collections.abc import Iterable, Mapping, Sequence
from abc import abstractmethod
from airflow import DAG
from typing... | null | 8 | 2 | 4 | 0 | 4 | 1 | 2 | 1.5 | 1 | 5 | 0 | 2 | 1 | 0 | 2 | 42 | 31 | 6 | 10 | 7 | 3 | 15 | 6 | 4 | 3 | 3 | 5 | 2 | 4 |
22,428 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/dag_proxy_operator.py | dagster_airlift.in_airflow.dag_proxy_operator.DefaultProxyDAGToDagsterOperator | from airflow import DAG
from dagster_airlift.in_airflow.base_asset_operator import BaseDagsterAssetsOperator, Context
import os
import requests
class DefaultProxyDAGToDagsterOperator(BaseProxyDAGToDagsterOperator):
"""The default task proxying operator - which opens a blank session and expects the dagster URL to b... |
class DefaultProxyDAGToDagsterOperator(BaseProxyDAGToDagsterOperator):
'''The default task proxying operator - which opens a blank session and expects the dagster URL to be set in the environment.
The dagster url is expected to be set in the environment as DAGSTER_URL.
This operator should not be instantia... | 5 | 1 | 3 | 0 | 3 | 0 | 1 | 0.45 | 1 | 2 | 0 | 1 | 2 | 0 | 3 | 45 | 20 | 4 | 11 | 5 | 6 | 5 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
22,429 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/dagster_run_utils.py | dagster_airlift.in_airflow.dagster_run_utils.DagsterRunResult | from typing import Any, NamedTuple, Optional
from collections.abc import Mapping
class DagsterRunResult(NamedTuple):
status: str
tags: Mapping[str, Any]
@property
def run_will_automatically_retry(self) -> bool:
return not self.succeeded and get_boolean_tag_value(self.tags.get(WILL_RETRY_TAG), ... |
class DagsterRunResult(NamedTuple):
@property
def run_will_automatically_retry(self) -> bool:
pass
@property
def retried_run_id(self) -> Optional[str]:
pass
@property
def succeeded(self) -> bool:
pass | 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 3 | 0 | 3 | 3 | 18 | 3 | 15 | 7 | 8 | 0 | 9 | 4 | 5 | 1 | 1 | 0 | 3 |
22,430 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/materialize_assets_operator.py | dagster_airlift.in_airflow.materialize_assets_operator.BaseMaterializeAssetsOperator | from dagster_airlift.in_airflow.base_asset_operator import BaseDagsterAssetsOperator, Context
from typing import Any, Union
from collections.abc import Iterable, Mapping, Sequence
class BaseMaterializeAssetsOperator(BaseDagsterAssetsOperator):
"""An operator base class that proxies execution to a user-provided lis... |
class BaseMaterializeAssetsOperator(BaseDagsterAssetsOperator):
'''An operator base class that proxies execution to a user-provided list of Dagster assets.
Will throw an error at runtime if not all assets can be found on the corresponding Dagster instance.
Args:
asset_key_paths (Sequence[Union[str,... | 3 | 1 | 8 | 0 | 8 | 0 | 2 | 0.5 | 1 | 9 | 0 | 1 | 2 | 1 | 2 | 42 | 27 | 3 | 16 | 7 | 11 | 8 | 9 | 5 | 6 | 2 | 5 | 1 | 4 |
22,431 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/partition_utils.py | dagster_airlift.in_airflow.partition_utils.PartitionDefinitionType | from enum import Enum
class PartitionDefinitionType(Enum):
TIME_WINDOW = 'TIME_WINDOW'
STATIC = 'STATIC'
MULTIPARTITIONED = 'MULTIPARTITIONED'
DYNAMIC = 'DYNAMIC' |
class PartitionDefinitionType(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,432 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/partition_utils.py | dagster_airlift.in_airflow.partition_utils.PartitioningInformation | from collections.abc import Mapping, Sequence
from typing import Any, NamedTuple, Optional
class PartitioningInformation(NamedTuple):
partitioning_type: PartitionDefinitionType
partition_keys: Sequence[str]
additional_info: Optional[TimeWindowPartitioningInformation]
@staticmethod
def from_asset_n... |
class PartitioningInformation(NamedTuple):
@staticmethod
def from_asset_node_graphql(asset_nodes: Sequence[Mapping[str, Any]]) -> Optional['PartitioningInformation']:
pass
@property
def time_window_partitioning_info(self) -> TimeWindowPartitioningInformation:
pass | 5 | 0 | 20 | 0 | 19 | 1 | 4 | 0.07 | 1 | 8 | 2 | 0 | 1 | 0 | 2 | 2 | 49 | 2 | 44 | 10 | 37 | 3 | 22 | 6 | 19 | 4 | 1 | 1 | 7 |
22,433 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/partition_utils.py | dagster_airlift.in_airflow.partition_utils.TimeWindowPartitioningInformation | from typing import Any, NamedTuple, Optional
class TimeWindowPartitioningInformation(NamedTuple):
fmt: str |
class TimeWindowPartitioningInformation(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 |
22,434 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/proxied_state.py | dagster_airlift.in_airflow.proxied_state.AirflowProxiedState | from collections.abc import Sequence
from typing import Any, NamedTuple, Optional
class AirflowProxiedState(NamedTuple):
"""A class to store the proxied state of dags and tasks in Airflow.
Typically, this is constructed by :py:func:`load_proxied_state_from_yaml`.
Args:
dags (Dict[str, DagProxiedSt... |
class AirflowProxiedState(NamedTuple):
'''A class to store the proxied state of dags and tasks in Airflow.
Typically, this is constructed by :py:func:`load_proxied_state_from_yaml`.
Args:
dags (Dict[str, DagProxiedState]): A dictionary of dag_id to DagProxiedState.
'''
def get_task_proxied... | 8 | 3 | 6 | 0 | 5 | 2 | 2 | 0.48 | 1 | 6 | 1 | 0 | 5 | 0 | 6 | 6 | 54 | 8 | 31 | 12 | 21 | 15 | 23 | 9 | 16 | 3 | 1 | 1 | 10 |
22,435 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/proxied_state.py | dagster_airlift.in_airflow.proxied_state.DagProxiedState | from typing import Any, NamedTuple, Optional
from collections.abc import Sequence
class DagProxiedState(NamedTuple):
"""A class to store the proxied state of tasks in a dag.
Args:
tasks (Dict[str, TaskProxiedState]): A dictionary of task_id to TaskProxiedState. If the entire dag is proxied, or proxied... |
class DagProxiedState(NamedTuple):
'''A class to store the proxied state of tasks in a dag.
Args:
tasks (Dict[str, TaskProxiedState]): A dictionary of task_id to TaskProxiedState. If the entire dag is proxied, or proxied state
is not set for a task, the task_id will not be present in this d... | 9 | 3 | 8 | 0 | 6 | 2 | 2 | 0.49 | 1 | 7 | 1 | 0 | 4 | 0 | 5 | 5 | 59 | 7 | 35 | 14 | 26 | 17 | 28 | 11 | 22 | 6 | 1 | 2 | 11 |
22,436 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/proxied_state.py | dagster_airlift.in_airflow.proxied_state.ProxiedStateParsingError | class ProxiedStateParsingError(Exception):
pass | class ProxiedStateParsingError(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,437 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/proxied_state.py | dagster_airlift.in_airflow.proxied_state.TaskProxiedState | from typing import Any, NamedTuple, Optional
class TaskProxiedState(NamedTuple):
"""A class to store the proxied state of a task.
Args:
task_id (str): The id of the task.
proxied (bool): A boolean indicating whether the task is proxied.
"""
task_id: str
proxied: bool
@staticme... |
class TaskProxiedState(NamedTuple):
'''A class to store the proxied state of a task.
Args:
task_id (str): The id of the task.
proxied (bool): A boolean indicating whether the task is proxied.
'''
@staticmethod
def from_dict(task_dict: dict[str, Any]) -> 'TaskProxiedState':
p... | 4 | 1 | 5 | 0 | 5 | 0 | 2 | 0.36 | 1 | 5 | 0 | 0 | 1 | 0 | 2 | 2 | 23 | 4 | 14 | 4 | 10 | 5 | 11 | 3 | 8 | 3 | 1 | 1 | 4 |
22,438 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/task_proxy_operator.py | dagster_airlift.in_airflow.task_proxy_operator.BaseProxyTaskToDagsterOperator | from typing import Any, Callable
from dagster_airlift.constants import DEFER_ASSET_EVENTS_TAG, TASK_MAPPING_METADATA_KEY
from collections.abc import Iterable, Mapping, Sequence
from airflow.models import BaseOperator
from dagster_airlift.in_airflow.base_asset_operator import BaseDagsterAssetsOperator, Context
class Ba... |
class BaseProxyTaskToDagsterOperator(BaseDagsterAssetsOperator):
'''An operator that proxies task execution to Dagster assets with metadata that map to this task's dag ID and task ID.
For the DAG ID and task ID that this operator proxies, it expects there to be corresponding assets
in the linked Dagster de... | 7 | 1 | 5 | 0 | 5 | 0 | 2 | 1.08 | 1 | 5 | 0 | 3 | 1 | 0 | 2 | 42 | 31 | 6 | 12 | 7 | 6 | 13 | 7 | 4 | 4 | 3 | 5 | 2 | 4 |
22,439 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/in_airflow/task_proxy_operator.py | dagster_airlift.in_airflow.task_proxy_operator.DefaultProxyTaskToDagsterOperator | from dagster_airlift.in_airflow.base_asset_operator import BaseDagsterAssetsOperator, Context
import os
import requests
class DefaultProxyTaskToDagsterOperator(BaseProxyTaskToDagsterOperator):
"""The default task proxying operator - which opens a blank session and expects the dagster URL to be set in the environme... |
class DefaultProxyTaskToDagsterOperator(BaseProxyTaskToDagsterOperator):
'''The default task proxying operator - which opens a blank session and expects the dagster URL to be set in the environment.
The dagster url is expected to be set in the environment as DAGSTER_URL.
This operator should not be instant... | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 1 | 1 | 2 | 0 | 2 | 2 | 0 | 2 | 44 | 13 | 3 | 5 | 3 | 2 | 5 | 5 | 3 | 2 | 1 | 6 | 0 | 2 |
22,440 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-airlift/dagster_airlift/mwaa/auth.py | dagster_airlift.mwaa.auth.MwaaSessionAuthBackend | from dagster_airlift.core.airflow_instance import AirflowAuthBackend
from dagster._annotations import beta
from typing import Any, Optional
import boto3
import requests
@beta
class MwaaSessionAuthBackend(AirflowAuthBackend):
"""A :py:class:`dagster_airlift.core.AirflowAuthBackend` that authenticates to AWS MWAA.
... | @beta
class MwaaSessionAuthBackend(AirflowAuthBackend):
'''A :py:class:`dagster_airlift.core.AirflowAuthBackend` that authenticates to AWS MWAA.
Under the hood, this class uses the MWAA boto3 session to request a web login token and then
uses the token to authenticate to the MWAA web server.
Args:
... | 7 | 1 | 6 | 0 | 5 | 1 | 2 | 1.19 | 1 | 4 | 0 | 0 | 3 | 3 | 4 | 26 | 58 | 12 | 21 | 13 | 15 | 25 | 20 | 12 | 15 | 2 | 5 | 1 | 6 |
22,441 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/_stubs.py | dagster_aws._stubs.ObjectTypeDef | from datetime import datetime
from typing import Literal, Optional, TypedDict
class ObjectTypeDef(TypedDict):
Key: str
LastModified: datetime
ETag: Optional[str]
ChecksumAlgorithm: Optional[list[ChecksumAlgorithmType]]
Size: Optional[int]
StorageClass: Optional[ObjectStorageClassType]
Owner... |
class ObjectTypeDef(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0 | 9 | 1 | 8 | 0 | 9 | 1 | 8 | 0 | 1 | 0 | 0 |
22,442 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/_stubs.py | dagster_aws._stubs.OwnerTypeDef | from typing import Literal, Optional, TypedDict
class OwnerTypeDef(TypedDict):
DisplayName: Optional[str]
ID: Optional[str] |
class OwnerTypeDef(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
22,443 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/_stubs.py | dagster_aws._stubs.RestoreStatusTypeDef | from typing import Literal, Optional, TypedDict
from datetime import datetime
class RestoreStatusTypeDef(TypedDict):
IsRestoreInProgress: Optional[bool]
RestoreExpiryDate: Optional[datetime] |
class RestoreStatusTypeDef(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
22,444 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/athena/resources.py | dagster_aws.athena.resources.AthenaClient | from urllib.parse import urlparse
from dagster import ConfigurableResource, _check as check, resource
import boto3
import time
import csv
class AthenaClient:
def __init__(self, client, workgroup='primary', polling_interval=5, max_polls=120):
check.invariant(polling_interval >= 0, 'polling_interval must be... |
class AthenaClient:
def __init__(self, client, workgroup='primary', polling_interval=5, max_polls=120):
pass
def execute_query(self, query, fetch_results=False):
'''Synchronously execute a single query against Athena. If fetch_results is set to true,
will return a list of rows, where ... | 5 | 1 | 17 | 2 | 12 | 4 | 3 | 0.29 | 0 | 3 | 2 | 2 | 4 | 4 | 4 | 4 | 72 | 11 | 48 | 22 | 43 | 14 | 42 | 22 | 37 | 5 | 0 | 2 | 10 |
22,445 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/athena/resources.py | dagster_aws.athena.resources.AthenaClientResource | import boto3
class AthenaClientResource(ResourceWithAthenaConfig):
"""This resource enables connecting to AWS Athena and issuing queries against it.
Example:
.. code-block:: python
from dagster import Definitions, asset
from dagster_aws.athena import AthenaClientResour... |
class AthenaClientResource(ResourceWithAthenaConfig):
'''This resource enables connecting to AWS Athena and issuing queries against it.
Example:
.. code-block:: python
from dagster import Definitions, asset
from dagster_aws.athena import AthenaClientResource
... | 4 | 2 | 8 | 0 | 7 | 1 | 1 | 0.88 | 1 | 2 | 1 | 0 | 1 | 3 | 2 | 2 | 37 | 7 | 16 | 8 | 12 | 14 | 6 | 4 | 3 | 1 | 2 | 0 | 2 |
22,446 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/athena/resources.py | dagster_aws.athena.resources.AthenaError | class AthenaError(Exception):
pass | class AthenaError(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
22,447 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/athena/resources.py | dagster_aws.athena.resources.AthenaTimeout | class AthenaTimeout(AthenaError):
pass | class AthenaTimeout(AthenaError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
22,448 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/athena/resources.py | dagster_aws.athena.resources.FakeAthenaClient | import uuid
import io
import os
from botocore.stub import Stubber
import csv
import boto3
class FakeAthenaClient(AthenaClient):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.polling_interval = 0
self.stubber = Stubber(self.client)
s3 = boto3.resource('... |
class FakeAthenaClient(AthenaClient):
def __init__(self, *args, **kwargs):
pass
def execute_query(self, query, fetch_results=False, expected_states=None, expected_results=None):
'''Fake for execute_query; stubs the expected Athena endpoints, polls against the provided
expected query e... | 6 | 1 | 18 | 2 | 13 | 4 | 2 | 0.3 | 1 | 3 | 0 | 1 | 5 | 3 | 5 | 9 | 97 | 14 | 64 | 19 | 56 | 19 | 38 | 16 | 32 | 4 | 1 | 2 | 10 |
22,449 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/athena/resources.py | dagster_aws.athena.resources.ResourceWithAthenaConfig | from dagster import ConfigurableResource, _check as check, resource
from pydantic import Field
from typing import Optional
class ResourceWithAthenaConfig(ConfigurableResource):
workgroup: str = Field(default='primary', description='The Athena WorkGroup to use. https://docs.aws.amazon.com/athena/latest/ug/manage-qu... |
class ResourceWithAthenaConfig(ConfigurableResource):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 29 | 0 | 29 | 6 | 28 | 0 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
22,450 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/cloudwatch/loggers.py | dagster_aws.cloudwatch.loggers.CloudwatchLogsHandler | from dagster._annotations import deprecated
from dagster_shared import seven
import datetime
import logging
import boto3
from typing import Optional
from dagster import Field, StringSource, _check as check, logger
@deprecated(breaking_version='0.27', additional_warn_text='Use `PipesCloudWatchLogReader` instead.')
clas... | @deprecated(breaking_version='0.27', additional_warn_text='Use `PipesCloudWatchLogReader` instead.')
class CloudwatchLogsHandler(logging.Handler):
def __init__(self, log_group_name, log_stream_name, aws_region=None, aws_access_key_id: Optional[str]=None, aws_secret_access_key: Optional[str]=None, endpoint_url: Opt... | 9 | 0 | 20 | 1 | 19 | 0 | 4 | 0.02 | 1 | 5 | 0 | 0 | 7 | 6 | 7 | 27 | 150 | 13 | 134 | 40 | 115 | 3 | 89 | 28 | 81 | 12 | 3 | 3 | 30 |
22,451 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecr/resources.py | dagster_aws.ecr.resources.ECRPublicClient | from typing import Optional
import boto3
class ECRPublicClient:
def __init__(self, region_name: Optional[str]=None, endpoint_url: Optional[str]=None, use_ssl: bool=True, aws_access_key_id: Optional[str]=None, aws_secret_access_key: Optional[str]=None, aws_session_token: Optional[str]=None, verify: Optional[bool]=... |
class ECRPublicClient:
def __init__(self, region_name: Optional[str]=None, endpoint_url: Optional[str]=None, use_ssl: bool=True, aws_access_key_id: Optional[str]=None, aws_secret_access_key: Optional[str]=None, aws_session_token: Optional[str]=None, verify: Optional[bool]=None):
pass
def get_login_pa... | 3 | 0 | 11 | 0 | 11 | 0 | 1 | 0 | 0 | 2 | 0 | 1 | 2 | 1 | 2 | 2 | 24 | 1 | 23 | 13 | 11 | 0 | 5 | 4 | 2 | 1 | 0 | 0 | 2 |
22,452 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecr/resources.py | dagster_aws.ecr.resources.ECRPublicResource | from dagster._annotations import beta
from dagster import ConfigurableResource, resource
@beta
class ECRPublicResource(ConfigurableResource):
"""This resource enables connecting to AWS Public and getting a login password from it.
Similar to the AWS CLI's `aws ecr-public get-login-password` command.
"""
... | null | 5 | 1 | 2 | 0 | 2 | 0 | 1 | 0.5 | 1 | 2 | 1 | 0 | 1 | 0 | 2 | 2 | 11 | 2 | 6 | 4 | 2 | 3 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
22,453 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecr/resources.py | dagster_aws.ecr.resources.FakeECRPublicClient | import datetime
from botocore.stub import Stubber
class FakeECRPublicClient(ECRPublicClient):
def get_login_password(self):
with Stubber(self.client) as stubber:
stubber.add_response(method='get_authorization_token', service_response={'authorizationData': {'authorizationToken': 'token', 'expir... |
class FakeECRPublicClient(ECRPublicClient):
def get_login_password(self): | 2 | 0 | 17 | 3 | 14 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 3 | 18 | 3 | 15 | 4 | 13 | 0 | 7 | 3 | 5 | 1 | 1 | 1 | 1 |
22,454 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecr/resources.py | dagster_aws.ecr.resources.FakeECRPublicResource | from dagster import ConfigurableResource, resource
from dagster._annotations import beta
@beta
class FakeECRPublicResource(ConfigurableResource):
"""This resource behaves like ecr_public_resource except it stubs out the real AWS API
requests and always returns `'token'` as its login password.
"""
@cla... | @beta
class FakeECRPublicResource(ConfigurableResource):
'''This resource behaves like ecr_public_resource except it stubs out the real AWS API
requests and always returns `'token'` as its login password.
'''
@classmethod
def _is_dagster_maintained(cls) -> bool:
pass
def get_client(self... | 5 | 1 | 2 | 0 | 2 | 0 | 1 | 0.5 | 1 | 2 | 1 | 0 | 1 | 0 | 2 | 2 | 11 | 2 | 6 | 4 | 2 | 3 | 5 | 3 | 2 | 1 | 1 | 0 | 2 |
22,455 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecs/container_context.py | dagster_aws.ecs.container_context.EcsContainerContext | from collections.abc import Mapping, Sequence
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, cast
from dagster._core.container_context import process_shared_container_context_config
from dagster._core.storage.dagster_run import DagsterRun
from dagster._core.errors import DagsterInvalidConfigError
from dag... |
class EcsContainerContext(NamedTuple('_EcsContainerContext', [('secrets', Sequence[Any]), ('secrets_tags', Sequence[str]), ('env_vars', Sequence[str]), ('task_definition_arn', Optional[str]), ('container_name', Optional[str]), ('server_resources', Mapping[str, Any]), ('run_resources', Mapping[str, Any]), ('task_role_a... | 9 | 1 | 27 | 2 | 26 | 0 | 2 | 0.01 | 1 | 7 | 2 | 0 | 4 | 9 | 6 | 6 | 197 | 15 | 181 | 70 | 128 | 2 | 29 | 15 | 22 | 4 | 1 | 1 | 13 |
22,456 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecs/executor.py | dagster_aws.ecs.executor.EcsStepHandler | from dagster._core.executor.step_delegating import CheckStepHealthResult, StepDelegatingExecutor, StepHandler, StepHandlerContext
from dagster import DagsterInvariantViolationError, DagsterRun, Field, IntSource, Permissive, _check as check, executor
from dagster._utils.merger import deep_merge_dicts
from dagster_aws.ec... |
class EcsStepHandler(StepHandler):
@property
def name(self):
pass
def __init__(self, run_launcher: EcsRunLauncher, run_task_kwargs: Optional[Mapping[str, Any]], cpu: Optional[int], memory: Optional[int], ephemeral_storage: Optional[int], task_overrides: Optional[Mapping[str, Any]]):
pass
... | 13 | 1 | 27 | 4 | 21 | 2 | 3 | 0.07 | 0 | 16 | 6 | 0 | 11 | 10 | 11 | 11 | 305 | 59 | 230 | 87 | 196 | 17 | 119 | 64 | 107 | 9 | 0 | 3 | 32 |
22,457 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecs/launcher.py | dagster_aws.ecs.launcher.EcsRunLauncher | from dagster._core.launcher.base import CheckRunHealthResult, LaunchRunContext, RunLauncher, WorkerStatus
from dagster._core.errors import DagsterInvariantViolationError
from dagster._serdes.config_class import ConfigurableClassData
from dagster_aws.ecs.container_context import SHARED_ECS_SCHEMA, SHARED_TASK_DEFINITION... |
class EcsRunLauncher(RunLauncher[T_DagsterInstance], ConfigurableClass):
'''RunLauncher that starts a task in ECS for each Dagster job run.
Args:
inst_data (Optional[ConfigurableClassData]): If not provided, defaults to None.
task_definition: If not provided, defaults to None.
container... | 52 | 4 | 20 | 2 | 18 | 1 | 3 | 0.04 | 2 | 22 | 11 | 1 | 36 | 20 | 38 | 70 | 826 | 115 | 685 | 178 | 601 | 28 | 289 | 132 | 250 | 13 | 5 | 3 | 99 |
22,458 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecs/tasks.py | dagster_aws.ecs.tasks.CurrentEcsTaskMetadata | from typing import Any, NamedTuple, Optional
class CurrentEcsTaskMetadata(NamedTuple('_CurrentEcsTaskMetadata', [('cluster', str), ('task_arn', str)])):
pass |
class CurrentEcsTaskMetadata(NamedTuple('_CurrentEcsTaskMetadata', [('cluster', str), ('task_arn', str)])):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 3 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
22,459 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecs/tasks.py | dagster_aws.ecs.tasks.DagsterEcsTaskDefinitionConfig | from collections.abc import Mapping, Sequence
from typing import Any, NamedTuple, Optional
from dagster._utils.merger import merge_dicts
import dagster._check as check
class DagsterEcsTaskDefinitionConfig(NamedTuple('_DagsterEcsTaskDefinitionConfig', [('family', str), ('image', str), ('container_name', str), ('command... |
class DagsterEcsTaskDefinitionConfig(NamedTuple('_DagsterEcsTaskDefinitionConfig', [('family', str), ('image', str), ('container_name', str), ('command', Optional[Sequence[str]]), ('log_configuration', Optional[Mapping[str, Any]]), ('secrets', Sequence[Mapping[str, str]]), ('environment', Sequence[Mapping[str, str]]),... | 6 | 1 | 45 | 3 | 41 | 2 | 5 | 0.05 | 1 | 8 | 0 | 0 | 3 | 6 | 4 | 4 | 216 | 16 | 193 | 64 | 139 | 10 | 29 | 9 | 24 | 14 | 1 | 1 | 20 |
22,460 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecs/tasks.py | dagster_aws.ecs.tasks.EcsEventualConsistencyTimeout | class EcsEventualConsistencyTimeout(Exception):
pass | class EcsEventualConsistencyTimeout(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,461 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecs/tasks.py | dagster_aws.ecs.tasks.EcsNoTasksFound | class EcsNoTasksFound(Exception):
pass | class EcsNoTasksFound(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,462 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/ecs/utils.py | dagster_aws.ecs.utils.RetryableEcsException | class RetryableEcsException(Exception):
... | class RetryableEcsException(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 1 | 0 | 1 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
22,463 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/emr/emr.py | dagster_aws.emr.emr.EmrError | class EmrError(Exception):
pass | class EmrError(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,464 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/emr/emr.py | dagster_aws.emr.emr.EmrJobRunner | from dagster_aws.emr.types import EMR_CLUSTER_TERMINATED_STATES, EmrClusterState, EmrStepState
import dagster._check as check
import dagster
import gzip
from io import BytesIO
from botocore.exceptions import WaiterError
import re
from urllib.parse import urlparse
from dagster_aws.utils.mrjob.utils import _boto3_now, _w... |
class EmrJobRunner:
def __init__(self, region, check_cluster_every=30, aws_access_key_id=None, aws_secret_access_key=None):
'''This object encapsulates various utilities for interacting with EMR clusters and invoking
steps (jobs) on them.
See also :py:class:`~dagster_aws.emr.EmrPySparkReso... | 16 | 13 | 25 | 4 | 12 | 9 | 2 | 0.72 | 0 | 6 | 3 | 0 | 13 | 4 | 14 | 14 | 365 | 75 | 174 | 59 | 152 | 125 | 122 | 51 | 107 | 11 | 0 | 2 | 29 |
22,465 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/emr/pyspark_step_launcher.py | dagster_aws.emr.pyspark_step_launcher.EmrPySparkStepLauncher | from botocore.exceptions import ClientError
from dagster._core.definitions.step_launcher import StepLauncher, _step_launcher_supersession
import pickle
import time
import sys
import os
import boto3
from dagster_aws.emr.configs_spark import spark_config as get_spark_config
from dagster._core.execution.plan.external_step... | @_step_launcher_supersession
class EmrPySparkStepLauncher(StepLauncher):
def __init__(self, region_name, staging_bucket, staging_prefix, wait_for_logs, action_on_failure, cluster_id, spark_config, local_job_package_path, deploy_local_job_package, s3_job_package_path=None):
pass
def _post_artifacts(sel... | 16 | 4 | 18 | 2 | 13 | 4 | 2 | 0.29 | 1 | 6 | 1 | 0 | 13 | 11 | 13 | 34 | 260 | 42 | 174 | 73 | 143 | 51 | 103 | 55 | 86 | 5 | 5 | 4 | 26 |
22,466 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/emr/types.py | dagster_aws.emr.types.EmrClusterState | from enum import Enum as PyEnum
class EmrClusterState(PyEnum):
"""Cluster state for EMR."""
Starting = 'STARTING'
Bootstrapping = 'BOOTSTRAPPING'
Running = 'RUNNING'
Waiting = 'WAITING'
Terminating = 'TERMINATING'
Terminated = 'TERMINATED'
TerminatedWithErrors = 'TERMINATED_WITH_ERRORS' |
class EmrClusterState(PyEnum):
'''Cluster state for EMR.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 10 | 1 | 8 | 8 | 7 | 1 | 8 | 8 | 7 | 0 | 4 | 0 | 0 |
22,467 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/emr/types.py | dagster_aws.emr.types.EmrStepState | from enum import Enum as PyEnum
class EmrStepState(PyEnum):
"""Step state for EMR."""
Pending = 'PENDING'
Running = 'RUNNING'
Continue = 'CONTINUE'
Completed = 'COMPLETED'
Cancelled = 'CANCELLED'
Failed = 'FAILED'
Interrupted = 'INTERRUPTED' |
class EmrStepState(PyEnum):
'''Step state for EMR.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 10 | 1 | 8 | 8 | 7 | 1 | 8 | 8 | 7 | 0 | 4 | 0 | 0 |
22,468 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/clients/ecs.py | dagster_aws.pipes.clients.ecs.PipesECSClient | import boto3
from dagster._core.errors import DagsterExecutionInterruptedError
from pprint import pformat
from typing import TYPE_CHECKING, Any, Optional, Union, cast
from dagster._annotations import public
from dagster._core.execution.context.asset_execution_context import AssetExecutionContext
from dagster._core.defi... |
class PipesECSClient(PipesClient, TreatAsResourceParam):
'''A pipes client for running AWS ECS tasks.
Args:
client (Any): The boto ECS client used to launch the ECS task
context_injector (Optional[PipesContextInjector]): A context injector to use to inject
context into the ECS task.... | 10 | 3 | 42 | 7 | 30 | 8 | 4 | 0.31 | 2 | 17 | 10 | 0 | 5 | 4 | 6 | 26 | 297 | 57 | 199 | 73 | 163 | 61 | 101 | 42 | 93 | 19 | 5 | 5 | 30 |
22,469 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/clients/emr.py | dagster_aws.pipes.clients.emr.PipesEMRClient | import time
from dagster._core.execution.context.asset_execution_context import AssetExecutionContext
from dagster._core.errors import DagsterExecutionInterruptedError
from dagster._core.pipes.client import PipesClientCompletedInvocation, PipesContextInjector, PipesMessageReader
from dagster_aws.emr.emr import EMR_CLUS... | @public
class PipesEMRClient(PipesClient, TreatAsResourceParam):
'''A pipes client for running jobs on AWS EMR.
Args:
message_reader (Optional[PipesMessageReader]): A message reader to use to read messages
from the EMR jobs. Recommended to use :py:class:`PipesS3MessageReader` with `expect_s3... | 20 | 2 | 20 | 3 | 15 | 3 | 2 | 0.22 | 2 | 17 | 10 | 0 | 12 | 6 | 13 | 33 | 295 | 54 | 202 | 101 | 143 | 45 | 105 | 53 | 91 | 8 | 5 | 3 | 32 |
22,470 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/clients/emr_containers.py | dagster_aws.pipes.clients.emr_containers.PipesEMRContainersClient | from dagster_aws.pipes.message_readers import PipesCloudWatchMessageReader
from typing import TYPE_CHECKING, Any, Literal, Optional, Union, cast
from dagster._core.definitions.resource_annotation import TreatAsResourceParam
import dagster._check as check
import boto3
import time
from dagster._core.execution.context.com... | @public
@preview
class PipesEMRContainersClient(PipesClient, TreatAsResourceParam):
'''A pipes client for running workloads on AWS EMR Containers.
Args:
client (Optional[boto3.client]): The boto3 AWS EMR containers client used to interact with AWS EMR Containers.
context_injector (Optional[Pipes... | 19 | 2 | 16 | 2 | 12 | 2 | 2 | 0.24 | 2 | 15 | 10 | 0 | 10 | 6 | 11 | 31 | 206 | 33 | 140 | 74 | 90 | 33 | 75 | 34 | 63 | 5 | 5 | 3 | 20 |
22,471 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/clients/emr_serverless.py | dagster_aws.pipes.clients.emr_serverless.PipesEMRServerlessClient | import dagster._check as check
from dagster._annotations import public
from dagster._core.pipes.client import PipesClientCompletedInvocation, PipesContextInjector, PipesMessageReader
from dagster._core.pipes.context import PipesSession
from dagster._utils.merger import deep_merge_dicts
from dagster._core.errors import ... | @public
class PipesEMRServerlessClient(PipesClient, TreatAsResourceParam):
'''A pipes client for running workloads on AWS EMR Serverless.
Args:
client (Optional[boto3.client]): The boto3 AWS EMR Serverless client used to interact with AWS EMR Serverless.
context_injector (Optional[PipesContextIn... | 19 | 2 | 25 | 3 | 20 | 3 | 3 | 0.16 | 2 | 21 | 10 | 0 | 11 | 5 | 12 | 32 | 329 | 49 | 243 | 93 | 190 | 40 | 112 | 49 | 99 | 10 | 5 | 3 | 31 |
22,472 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/clients/glue.py | dagster_aws.pipes.clients.glue.PipesGlueClient | from typing import TYPE_CHECKING, Any, Optional, Union, cast
import dagster._check as check
from dagster import MetadataValue, PipesClient
from dagster._core.definitions.metadata import RawMetadataMapping
from dagster._core.execution.context.compute import OpExecutionContext
from botocore.exceptions import ClientError
... |
class PipesGlueClient(PipesClient, TreatAsResourceParam):
'''A pipes client for invoking AWS Glue jobs.
Args:
context_injector (Optional[PipesContextInjector]): A context injector to use to inject
context into the Glue job, for example, :py:class:`PipesS3ContextInjector`.
message_re... | 9 | 3 | 26 | 3 | 20 | 4 | 3 | 0.3 | 2 | 14 | 8 | 0 | 5 | 4 | 6 | 26 | 176 | 27 | 120 | 45 | 95 | 36 | 62 | 23 | 55 | 7 | 5 | 3 | 18 |
22,473 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/clients/lambda_.py | dagster_aws.pipes.clients.lambda_.PipesLambdaClient | from dagster._core.execution.context.asset_execution_context import AssetExecutionContext
from dagster._annotations import public
from dagster._core.pipes.client import PipesClientCompletedInvocation, PipesContextInjector, PipesMessageReader
from dagster._core.pipes.utils import open_pipes_session
from dagster_aws.pipe... |
class PipesLambdaClient(PipesClient, TreatAsResourceParam):
'''A pipes client for invoking AWS lambda.
By default context is injected via the lambda input event and messages are parsed out of the
4k tail of logs.
Args:
client (boto3.client): The boto lambda client used to call invoke.
c... | 6 | 2 | 21 | 2 | 16 | 4 | 2 | 0.42 | 2 | 12 | 7 | 0 | 2 | 3 | 3 | 23 | 82 | 12 | 50 | 25 | 33 | 21 | 22 | 11 | 18 | 5 | 5 | 2 | 7 |
22,474 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/clients/utils.py | dagster_aws.pipes.clients.utils.WaiterConfig | from typing import TYPE_CHECKING, Literal, TypedDict, TypeVar, Union, cast, overload
from typing_extensions import NotRequired
class WaiterConfig(TypedDict):
"""A WaiterConfig representing the configuration of the waiter.
Args:
Delay (NotRequired[int]): The amount of time in seconds to wait between at... |
class WaiterConfig(TypedDict):
'''A WaiterConfig representing the configuration of the waiter.
Args:
Delay (NotRequired[int]): The amount of time in seconds to wait between attempts. Defaults to 6.
MaxAttempts (NotRequired[int]): The maximum number of attempts to be made. Defaults to 1000000
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 2 | 3 | 1 | 2 | 7 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
22,475 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/context_injectors.py | dagster_aws.pipes.context_injectors.PipesLambdaEventContextInjector | from dagster._core.pipes.utils import PipesEnvContextInjector
class PipesLambdaEventContextInjector(PipesEnvContextInjector):
"""Injects context via AWS Lambda event input.
Should be paired with :py:class`~dagster_pipes.PipesMappingParamsLoader` on the Lambda side.
"""
def no_messages_debug_text(self)... |
class PipesLambdaEventContextInjector(PipesEnvContextInjector):
'''Injects context via AWS Lambda event input.
Should be paired with :py:class`~dagster_pipes.PipesMappingParamsLoader` on the Lambda side.
'''
def no_messages_debug_text(self) -> str:
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 25 | 7 | 1 | 3 | 2 | 1 | 3 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
22,476 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/context_injectors.py | dagster_aws.pipes.context_injectors.PipesS3ContextInjector | from dagster._core.pipes.client import PipesContextInjector, PipesParams
from collections.abc import Iterator
import random
import boto3
import os
import dagster._check as check
import json
import string
from contextlib import contextmanager
class PipesS3ContextInjector(PipesContextInjector):
"""A context injector... |
class PipesS3ContextInjector(PipesContextInjector):
'''A context injector that injects context by writing to a temporary S3 location.
Args:
bucket (str): The S3 bucket to write to.
client (boto3.client): A boto3 client to use to write to S3.
key_prefix (Optional[str]): An optional prefi... | 5 | 1 | 6 | 0 | 6 | 0 | 1 | 0.4 | 1 | 3 | 0 | 0 | 3 | 2 | 3 | 25 | 32 | 5 | 20 | 9 | 15 | 8 | 13 | 8 | 9 | 1 | 5 | 0 | 3 |
22,477 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/message_readers.py | dagster_aws.pipes.message_readers.PipesCloudWatchLogReader | from dagster._core.pipes.client import PipesLaunchedData, PipesMessageReader, PipesParams
import boto3
from dagster import DagsterInvariantViolationError
from typing import IO, TYPE_CHECKING, Any, Callable, Optional, cast
from threading import Event, Thread
import sys
from dagster._core.pipes.utils import PipesBlobStor... |
class PipesCloudWatchLogReader(PipesLogReader):
def __init__(self, client=None, log_group: Optional[str]=None, log_stream: Optional[str]=None, target_stream: Optional[IO[str]]=None, start_time: Optional[int]=None, debug_info: Optional[str]=None, max_retries: Optional[int]=DEFAULT_CLOUDWATCH_LOGS_MAX_RETRIES):
... | 9 | 0 | 10 | 1 | 9 | 0 | 2 | 0.02 | 1 | 6 | 0 | 0 | 7 | 8 | 7 | 34 | 77 | 11 | 65 | 35 | 47 | 1 | 44 | 25 | 36 | 6 | 5 | 4 | 16 |
22,478 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/message_readers.py | dagster_aws.pipes.message_readers.PipesCloudWatchMessageReader | from dagster_pipes import PipesBlobStoreMessageWriter, PipesDefaultMessageWriter
from collections.abc import Generator, Iterator, Sequence
from dagster._core.pipes.utils import PipesBlobStoreMessageReader, PipesChunkedLogReader, PipesLogReader, PipesThreadedMessageReader, extract_message_or_forward_to_stdout, forward_o... |
class PipesCloudWatchMessageReader(PipesThreadedMessageReader):
'''Message reader that consumes AWS CloudWatch logs to read pipes messages.'''
def __init__(self, client=None, log_group: Optional[str]=None, log_stream: Optional[str]=None, log_readers: Optional[Sequence[PipesLogReader]]=None, max_retries: Optio... | 8 | 2 | 12 | 2 | 10 | 1 | 2 | 0.08 | 1 | 11 | 3 | 0 | 6 | 6 | 6 | 41 | 80 | 15 | 60 | 26 | 43 | 5 | 38 | 16 | 31 | 4 | 6 | 3 | 13 |
22,479 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/message_readers.py | dagster_aws.pipes.message_readers.PipesLambdaLogsMessageReader | from dagster._core.pipes.client import PipesLaunchedData, PipesMessageReader, PipesParams
from collections.abc import Generator, Iterator, Sequence
import dagster._check as check
from contextlib import contextmanager
import base64
from dagster._core.pipes.context import PipesMessageHandler
from dagster._core.pipes.util... |
class PipesLambdaLogsMessageReader(PipesMessageReader):
'''Message reader that consumes buffered pipes messages that were flushed on exit from the
final 4k of logs that are returned from issuing a sync lambda invocation. This means messages
emitted during the computation will only be processed once the lam... | 5 | 1 | 8 | 1 | 7 | 0 | 1 | 0.32 | 1 | 4 | 2 | 0 | 3 | 1 | 3 | 27 | 35 | 6 | 22 | 12 | 14 | 7 | 13 | 8 | 9 | 2 | 5 | 1 | 4 |
22,480 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/message_readers.py | dagster_aws.pipes.message_readers.PipesS3LogReader | import os
import sys
import boto3
from dagster._core.pipes.client import PipesLaunchedData, PipesMessageReader, PipesParams
from dagster._core.pipes.utils import PipesBlobStoreMessageReader, PipesChunkedLogReader, PipesLogReader, PipesThreadedMessageReader, extract_message_or_forward_to_stdout, forward_only_logs_to_fil... |
class PipesS3LogReader(PipesChunkedLogReader):
def __init__(self, *, bucket: str, key: str, client: Optional['S3Client']=None, interval: float=10, target_stream: Optional[IO[str]]=None, decode_fn: Optional[Callable[[bytes], str]]=None, debug_info: Optional[str]=None):
pass
@property
def name(self)... | 6 | 0 | 10 | 1 | 9 | 0 | 1 | 0.03 | 1 | 6 | 0 | 0 | 4 | 5 | 4 | 38 | 43 | 6 | 36 | 23 | 20 | 1 | 17 | 12 | 12 | 1 | 6 | 0 | 4 |
22,481 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/pipes/message_readers.py | dagster_aws.pipes.message_readers.PipesS3MessageReader | import dagster._check as check
from dagster._core.pipes.client import PipesLaunchedData, PipesMessageReader, PipesParams
import boto3
import random
from dagster._core.pipes.utils import PipesBlobStoreMessageReader, PipesChunkedLogReader, PipesLogReader, PipesThreadedMessageReader, extract_message_or_forward_to_stdout, ... |
class PipesS3MessageReader(PipesBlobStoreMessageReader):
'''Message reader that reads messages by periodically reading message chunks from a specified S3
bucket.
If `log_readers` is passed, this reader will also start the passed readers
when the first message is received from the external process.
... | 7 | 1 | 10 | 0 | 10 | 0 | 2 | 0.24 | 1 | 9 | 2 | 0 | 5 | 3 | 5 | 43 | 68 | 7 | 50 | 22 | 35 | 12 | 27 | 13 | 21 | 3 | 7 | 2 | 8 |
22,482 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/redshift/resources.py | dagster_aws.redshift.resources.BaseRedshiftClient | import abc
class BaseRedshiftClient(abc.ABC):
@abc.abstractmethod
def execute_query(self, query, fetch_results=False, cursor_factory=None, error_callback=None):
pass
@abc.abstractmethod
def execute_queries(self, queries, fetch_results=False, cursor_factory=None, error_callback=None):
... |
class BaseRedshiftClient(abc.ABC):
@abc.abstractmethod
def execute_query(self, query, fetch_results=False, cursor_factory=None, error_callback=None):
pass
@abc.abstractmethod
def execute_queries(self, queries, fetch_results=False, cursor_factory=None, error_callback=None):
pass | 5 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 0 | 0 | 2 | 2 | 0 | 2 | 22 | 10 | 1 | 9 | 7 | 2 | 0 | 5 | 3 | 2 | 1 | 4 | 0 | 2 |
22,483 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/redshift/resources.py | dagster_aws.redshift.resources.FakeRedshiftClient | import psycopg2
from logging import Logger
from dagster import ConfigurableResource, _check as check, get_dagster_logger, resource
import psycopg2.extensions
class FakeRedshiftClient(BaseRedshiftClient):
QUERY_RESULT = [(1,)]
def __init__(self, log: Logger):
self.log = log
def execute_query(self,... |
class FakeRedshiftClient(BaseRedshiftClient):
def __init__(self, log: Logger):
pass
def execute_query(self, query, fetch_results=False, cursor_factory=None, error_callback=None):
'''Fake for execute_query; returns [self.QUERY_RESULT].
Args:
query (str): The query to execut... | 4 | 2 | 22 | 2 | 8 | 12 | 2 | 1.3 | 1 | 2 | 0 | 1 | 3 | 1 | 3 | 25 | 72 | 10 | 27 | 9 | 21 | 35 | 21 | 7 | 17 | 3 | 5 | 1 | 6 |
22,484 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/redshift/resources.py | dagster_aws.redshift.resources.FakeRedshiftClientResource | from dagster import ConfigurableResource, _check as check, get_dagster_logger, resource
class FakeRedshiftClientResource(RedshiftClientResource):
def get_client(self) -> FakeRedshiftClient:
return FakeRedshiftClient(get_dagster_logger()) |
class FakeRedshiftClientResource(RedshiftClientResource):
def get_client(self) -> FakeRedshiftClient:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 3 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
22,485 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/redshift/resources.py | dagster_aws.redshift.resources.RedshiftClient | import psycopg2
from logging import Logger
from dagster import ConfigurableResource, _check as check, get_dagster_logger, resource
from typing import Any, Optional, cast
import psycopg2.extensions
from contextlib import contextmanager
class RedshiftClient(BaseRedshiftClient):
def __init__(self, conn_args: dict[st... |
class RedshiftClient(BaseRedshiftClient):
def __init__(self, conn_args: dict[str, Any], autocommit: Optional[bool], log: Logger):
pass
def execute_query(self, query, fetch_results=False, cursor_factory=None, error_callback=None):
'''Synchronously execute a single query against Redshift. Will ... | 8 | 2 | 31 | 3 | 15 | 12 | 4 | 0.77 | 1 | 6 | 0 | 1 | 5 | 3 | 5 | 27 | 161 | 21 | 79 | 23 | 69 | 61 | 64 | 12 | 58 | 7 | 5 | 5 | 18 |
22,486 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/redshift/resources.py | dagster_aws.redshift.resources.RedshiftClientResource | from dagster import ConfigurableResource, _check as check, get_dagster_logger, resource
from typing import Any, Optional, cast
from pydantic import Field
class RedshiftClientResource(ConfigurableResource):
"""This resource enables connecting to a Redshift cluster and issuing queries against that
cluster.
... |
class RedshiftClientResource(ConfigurableResource):
'''This resource enables connecting to a Redshift cluster and issuing queries against that
cluster.
Example:
.. code-block:: python
from dagster import Definitions, asset, EnvVar
from dagster_aws.redshift import RedshiftCli... | 4 | 1 | 9 | 1 | 9 | 0 | 1 | 0.51 | 1 | 2 | 1 | 1 | 1 | 0 | 2 | 2 | 72 | 10 | 41 | 13 | 37 | 21 | 14 | 12 | 11 | 1 | 1 | 0 | 2 |
22,487 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/redshift/resources.py | dagster_aws.redshift.resources.RedshiftError | class RedshiftError(Exception):
pass | class RedshiftError(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,488 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/compute_log_manager.py | dagster_aws.s3.compute_log_manager.S3ComputeLogManager | from typing_extensions import Self
from dagster import Field, Permissive, StringSource, _check as check
from dagster._config.config_type import Noneable
from dagster._core.storage.cloud_storage_compute_log_manager import PollingComputeLogSubscriptionManager, TruncatingCloudStorageComputeLogManager
import boto3
from col... |
class S3ComputeLogManager(TruncatingCloudStorageComputeLogManager, ConfigurableClass):
'''Logs compute function stdout and stderr to S3.
Users should not instantiate this class directly. Instead, use a YAML block in ``dagster.yaml``
such as the following:
.. code-block:: YAML
compute_logs:
... | 27 | 1 | 10 | 1 | 9 | 0 | 2 | 0.23 | 2 | 14 | 5 | 0 | 18 | 11 | 20 | 82 | 264 | 34 | 188 | 95 | 134 | 44 | 116 | 59 | 95 | 4 | 6 | 2 | 37 |
22,489 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/file_manager.py | dagster_aws.s3.file_manager.S3FileHandle | import dagster._check as check
from dagster._core.storage.file_manager import FileHandle, FileManager, TempfileManager, check_file_like_obj
class S3FileHandle(FileHandle):
"""A reference to a file on S3."""
def __init__(self, s3_bucket: str, s3_key: str):
self._s3_bucket = check.str_param(s3_bucket, '... |
class S3FileHandle(FileHandle):
'''A reference to a file on S3.'''
def __init__(self, s3_bucket: str, s3_key: str):
pass
@property
def s3_bucket(self) -> str:
'''str: The name of the S3 bucket.'''
pass
@property
def s3_key(self) -> str:
'''str: The S3 key.'''
... | 10 | 5 | 3 | 0 | 2 | 1 | 1 | 0.31 | 1 | 1 | 0 | 0 | 5 | 2 | 5 | 26 | 26 | 5 | 16 | 12 | 6 | 5 | 12 | 8 | 6 | 1 | 5 | 0 | 5 |
22,490 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/file_manager.py | dagster_aws.s3.file_manager.S3FileManager | from dagster._core.storage.file_manager import FileHandle, FileManager, TempfileManager, check_file_like_obj
import uuid
import io
from contextlib import contextmanager
import dagster._check as check
class S3FileManager(FileManager):
def __init__(self, s3_session, s3_bucket, s3_base_key):
self._s3_session... |
class S3FileManager(FileManager):
def __init__(self, s3_session, s3_bucket, s3_base_key):
pass
def copy_handle_to_local_temp(self, file_handle):
pass
def _download_if_not_cached(self, file_handle):
pass
@contextmanager
def read(self, file_handle, mode='rb'):
pass
... | 13 | 0 | 4 | 0 | 4 | 0 | 1 | 0.02 | 1 | 4 | 2 | 0 | 11 | 5 | 11 | 37 | 61 | 13 | 47 | 24 | 34 | 1 | 44 | 21 | 32 | 2 | 5 | 1 | 14 |
22,491 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/io_manager.py | dagster_aws.s3.io_manager.ConfigurablePickledObjectS3IOManager | from dagster._annotations import deprecated
@deprecated(breaking_version='2.0', additional_warn_text='Please use S3PickleIOManager instead.')
class ConfigurablePickledObjectS3IOManager(S3PickleIOManager):
"""Renamed to S3PickleIOManager. See S3PickleIOManager for documentation."""
pass | @deprecated(breaking_version='2.0', additional_warn_text='Please use S3PickleIOManager instead.')
class ConfigurablePickledObjectS3IOManager(S3PickleIOManager):
'''Renamed to S3PickleIOManager. See S3PickleIOManager for documentation.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 2 | 0 | 0 |
22,492 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/io_manager.py | dagster_aws.s3.io_manager.PickledObjectS3IOManager | import pickle
from dagster._utils import PICKLE_PROTOCOL
from dagster._core.storage.upath_io_manager import UPathIOManager
from upath import UPath
import io
from typing import Any, Optional, Union
from dagster import ConfigurableIOManager, InputContext, MetadataValue, OutputContext, ResourceDependency, _check as check,... |
class PickledObjectS3IOManager(UPathIOManager):
def __init__(self, s3_bucket: str, s3_session: Any, s3_prefix: Optional[str]=None):
pass
def load_from_path(self, context: InputContext, path: UPath) -> Any:
pass
def dump_to_path(self, context: OutputContext, obj: Any, path: UPath) -> None... | 12 | 0 | 4 | 0 | 4 | 0 | 1 | 0.02 | 1 | 6 | 0 | 0 | 11 | 2 | 11 | 65 | 55 | 10 | 44 | 24 | 27 | 1 | 39 | 19 | 27 | 2 | 7 | 1 | 14 |
22,493 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/io_manager.py | dagster_aws.s3.io_manager.S3PickleIOManager | from dagster import ConfigurableIOManager, InputContext, MetadataValue, OutputContext, ResourceDependency, _check as check, io_manager
from pydantic import Field
from dagster._utils.cached_method import cached_method
from typing import Any, Optional, Union
from dagster_aws.s3.resources import S3Resource
class S3Pickle... |
class S3PickleIOManager(ConfigurableIOManager):
'''Persistent IO manager using S3 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 S3 and the backing bucket.
Assigns each op ... | 7 | 1 | 3 | 0 | 3 | 0 | 1 | 1.65 | 1 | 3 | 1 | 1 | 3 | 0 | 4 | 4 | 69 | 16 | 20 | 9 | 13 | 33 | 12 | 7 | 7 | 1 | 1 | 0 | 4 |
22,494 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/resources.py | dagster_aws.s3.resources.ResourceWithS3Configuration | from pydantic import Field
from dagster import ConfigurableResource, IAttachDifferentObjectToOpContext, resource
from typing import Any, Optional, TypeVar
class ResourceWithS3Configuration(ConfigurableResource):
use_unsigned_session: bool = Field(default=False, description='Specifies whether to use an unsigned S3 ... |
class ResourceWithS3Configuration(ConfigurableResource):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 38 | 0 | 38 | 11 | 37 | 0 | 11 | 11 | 10 | 0 | 1 | 0 | 0 |
22,495 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/resources.py | dagster_aws.s3.resources.S3FileManagerResource | from dagster import ConfigurableResource, IAttachDifferentObjectToOpContext, resource
from dagster_aws.s3.utils import construct_s3_client
from dagster_aws.s3.file_manager import S3FileManager
from pydantic import Field
from typing import Any, Optional, TypeVar
class S3FileManagerResource(ResourceWithS3Configuration, ... |
class S3FileManagerResource(ResourceWithS3Configuration, IAttachDifferentObjectToOpContext):
def get_client(self) -> S3FileManager:
pass
def get_object_to_set_on_execution_context(self) -> Any:
pass | 3 | 0 | 10 | 0 | 10 | 0 | 1 | 0 | 2 | 2 | 1 | 0 | 2 | 10 | 2 | 2 | 26 | 2 | 24 | 15 | 21 | 0 | 7 | 5 | 4 | 1 | 2 | 0 | 2 |
22,496 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/resources.py | dagster_aws.s3.resources.S3Resource | from dagster import ConfigurableResource, IAttachDifferentObjectToOpContext, resource
from typing import Any, Optional, TypeVar
from dagster_aws.s3.utils import construct_s3_client
class S3Resource(ResourceWithS3Configuration, IAttachDifferentObjectToOpContext):
"""Resource that gives access to S3.
The underl... |
class S3Resource(ResourceWithS3Configuration, IAttachDifferentObjectToOpContext):
'''Resource that gives access to S3.
The underlying S3 session is created by calling
:py:func:`boto3.session.Session(profile_name) <boto3:boto3.session>`.
The returned resource object is an S3 client, an instance of `boto... | 5 | 1 | 6 | 0 | 6 | 0 | 1 | 1.16 | 2 | 2 | 0 | 0 | 2 | 9 | 3 | 3 | 51 | 10 | 19 | 14 | 14 | 22 | 7 | 4 | 3 | 1 | 2 | 0 | 3 |
22,497 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/s3_fake_resource.py | dagster_aws.s3.s3_fake_resource.S3FakeSession | import io
from collections import defaultdict
from botocore.exceptions import ClientError
class S3FakeSession:
"""Stateful mock of a boto3 s3 session for test.
Wraps a ``mock.MagicMock``. Buckets are implemented using an in-memory dict.
"""
def __init__(self, buckets=None):
from unittest impo... |
class S3FakeSession:
'''Stateful mock of a boto3 s3 session for test.
Wraps a ``mock.MagicMock``. Buckets are implemented using an in-memory dict.
'''
def __init__(self, buckets=None):
pass
def head_bucket(self, Bucket, *args, **kwargs):
pass
def head_object(self, Bucket, Key... | 16 | 1 | 4 | 0 | 4 | 0 | 1 | 0.07 | 0 | 3 | 0 | 0 | 15 | 2 | 15 | 15 | 79 | 18 | 58 | 25 | 41 | 4 | 57 | 23 | 40 | 3 | 0 | 2 | 21 |
22,498 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/s3/utils.py | dagster_aws.s3.utils.S3Callback | class S3Callback:
def __init__(self, logger, bucket, key, filename, size):
self._logger = logger
self._bucket = bucket
self._key = key
self._filename = filename
self._seen_so_far = 0
self._size = size
def __call__(self, bytes_amount):
self._seen_so_far +... | class S3Callback:
def __init__(self, logger, bucket, key, filename, size):
pass
def __call__(self, bytes_amount):
pass | 3 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 6 | 2 | 2 | 15 | 1 | 14 | 10 | 11 | 0 | 12 | 10 | 9 | 1 | 0 | 0 | 2 |
22,499 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-aws/dagster_aws/secretsmanager/resources.py | dagster_aws.secretsmanager.resources.SecretsManagerResource | from dagster_aws.utils import ResourceWithBoto3Configuration
from dagster._annotations import beta
from dagster_aws.secretsmanager.secrets import construct_secretsmanager_client, get_secrets_from_arns, get_tagged_secrets
@beta
class SecretsManagerResource(ResourceWithBoto3Configuration):
"""Resource that gives acc... | @beta
class SecretsManagerResource(ResourceWithBoto3Configuration):
'''Resource that gives access to AWS SecretsManager.
The underlying SecretsManager session is created by calling
:py:func:`boto3.session.Session(profile_name) <boto3:boto3.session>`.
The returned resource object is a SecretsManager clie... | 5 | 1 | 7 | 0 | 7 | 1 | 1 | 1.63 | 1 | 1 | 0 | 0 | 1 | 8 | 2 | 2 | 49 | 8 | 16 | 12 | 12 | 26 | 5 | 3 | 2 | 1 | 2 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.