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,600 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/errors.py | dagster_dbt.errors.DagsterDbtProjectYmlFileNotFoundError | class DagsterDbtProjectYmlFileNotFoundError(DagsterDbtError):
"""Error when a dbt_project.yml file can not be found in the specified project directory.""" | class DagsterDbtProjectYmlFileNotFoundError(DagsterDbtError):
'''Error when a dbt_project.yml file can not be found in the specified project directory.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
22,601 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dbt/dagster_dbt/metadata_set.py | dagster_dbt.metadata_set.DbtMetadataSet | from typing import Optional
from dagster._core.definitions.metadata.metadata_set import NamespacedMetadataSet
class DbtMetadataSet(NamespacedMetadataSet):
"""Metadata entries that apply to dbt objects.
Args:
materialization_type (Optional[str]): The materialization type, like "table" or "view". See
... |
class DbtMetadataSet(NamespacedMetadataSet):
'''Metadata entries that apply to dbt objects.
Args:
materialization_type (Optional[str]): The materialization type, like "table" or "view". See
https://docs.getdbt.com/docs/build/materializations.
'''
@classmethod
def namespace(cls) ... | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 98 | 13 | 3 | 5 | 3 | 2 | 5 | 4 | 2 | 2 | 1 | 8 | 0 | 1 |
22,602 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/__init__.py | dagster_deltalake.DeltaLakePyarrowIOManager | from dagster_deltalake.handler import DeltalakeBaseArrowTypeHandler as DeltalakeBaseArrowTypeHandler, DeltaLakePyArrowTypeHandler as DeltaLakePyArrowTypeHandler
from dagster._core.storage.db_io_manager import DbTypeHandler
from dagster_deltalake.io_manager import DELTA_DATE_FORMAT as DELTA_DATE_FORMAT, DELTA_DATETIME_F... |
class DeltaLakePyarrowIOManager(DeltaLakeIOManager):
@staticmethod
def type_handlers() -> Sequence[DbTypeHandler]:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 0 | 0 | 1 | 136 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 10 | 0 | 1 |
22,603 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/config.py | dagster_deltalake.config.AzureConfig | from dagster import Config
from typing import Literal, Optional
class AzureConfig(Config):
"""Storage configuration for Microsoft Azure Blob or ADLS Gen 2 object store."""
provider: Literal['azure'] = 'azure'
account_name: str
'Storage account name'
client_id: Optional[str] = None
'Client ID fo... |
class AzureConfig(Config):
'''Storage configuration for Microsoft Azure Blob or ADLS Gen 2 object store.'''
def str_dict(self) -> dict[str, str]:
'''Storage options as str dict.'''
pass | 2 | 2 | 3 | 0 | 2 | 1 | 1 | 0.88 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 47 | 15 | 17 | 15 | 15 | 15 | 17 | 15 | 15 | 1 | 1 | 0 | 1 |
22,604 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/config.py | dagster_deltalake.config.ClientConfig | from typing import Literal, Optional
from dagster import Config
class ClientConfig(Config):
"""Configuration for http client interacting with storage APIs."""
allow_http: Optional[bool] = None
'Allow non-TLS, i.e. non-HTTPS connections'
allow_invalid_certificates: Optional[bool] = None
'Skip certif... |
class ClientConfig(Config):
'''Configuration for http client interacting with storage APIs.'''
def str_dict(self) -> dict[str, str]:
'''Storage options as str dict.'''
pass | 2 | 2 | 3 | 0 | 2 | 1 | 1 | 1.53 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 62 | 19 | 17 | 16 | 15 | 26 | 17 | 16 | 15 | 1 | 1 | 0 | 1 |
22,605 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/config.py | dagster_deltalake.config.GcsConfig | from typing import Literal, Optional
from dagster import Config
class GcsConfig(Config):
"""Storage configuration for Google Cloud Storage object store."""
provider: Literal['gcs'] = 'gcs'
service_account: Optional[str] = None
'Path to the service account file'
service_account_key: Optional[str] = ... |
class GcsConfig(Config):
'''Storage configuration for Google Cloud Storage object store.'''
def str_dict(self) -> dict[str, str]:
'''Storage options as str dict.'''
pass | 2 | 2 | 3 | 0 | 2 | 1 | 1 | 0.75 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 20 | 6 | 8 | 7 | 6 | 6 | 8 | 7 | 6 | 1 | 1 | 0 | 1 |
22,606 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/config.py | dagster_deltalake.config.LocalConfig | from dagster import Config
from typing import Literal, Optional
class LocalConfig(Config):
"""Storage configuration for local object store."""
provider: Literal['local'] = 'local'
def str_dict(self) -> dict[str, str]:
"""Storage options as str dict."""
return _to_str_dict(self.dict()) |
class LocalConfig(Config):
'''Storage configuration for local object store.'''
def str_dict(self) -> dict[str, str]:
'''Storage options as str dict.'''
pass | 2 | 2 | 3 | 0 | 2 | 1 | 1 | 0.5 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 8 | 2 | 4 | 3 | 2 | 2 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
22,607 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/config.py | dagster_deltalake.config.S3Config | from typing import Literal, Optional
from dagster import Config
class S3Config(Config):
"""Storage configuration for Amazon Web Services (AWS) S3 object store."""
provider: Literal['s3'] = 's3'
access_key_id: Optional[str] = None
'AWS access key ID'
secret_access_key: Optional[str] = None
'AWS ... |
class S3Config(Config):
'''Storage configuration for Amazon Web Services (AWS) S3 object store.'''
def str_dict(self) -> dict[str, str]:
'''Storage options as str dict.'''
pass | 2 | 2 | 3 | 0 | 2 | 1 | 1 | 1.11 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 56 | 18 | 18 | 17 | 16 | 20 | 18 | 17 | 16 | 1 | 1 | 0 | 1 |
22,608 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/handler.py | dagster_deltalake.handler.DeltaLakePyArrowTypeHandler | import pyarrow.dataset as ds
from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union, cast
import pyarrow as pa
from collections.abc import Iterable, Sequence
class DeltaLakePyArrowTypeHandler(DeltalakeBaseArrowTypeHandler[ArrowTypes]):
def from_arrow(self, obj: pa.RecordBatchReader, target_type:... |
class DeltaLakePyArrowTypeHandler(DeltalakeBaseArrowTypeHandler[ArrowTypes]):
def from_arrow(self, obj: pa.RecordBatchReader, target_type: type[ArrowTypes]) -> ArrowTypes:
pass
def to_arrow(self, obj: ArrowTypes) -> tuple[pa.RecordBatchReader, dict[str, Any]]:
pass
@property
def suppo... | 5 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 1 | 5 | 0 | 0 | 3 | 0 | 3 | 32 | 16 | 2 | 14 | 5 | 9 | 0 | 13 | 4 | 9 | 3 | 6 | 1 | 6 |
22,609 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/handler.py | dagster_deltalake.handler.DeltalakeBaseArrowTypeHandler | import pyarrow.dataset as ds
from dagster._core.storage.db_io_manager import DbTypeHandler, TablePartitionDimension, TableSlice
from abc import abstractmethod
import pyarrow as pa
from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union, cast
from deltalake import DeltaTable, WriterProperties, write_del... |
class DeltalakeBaseArrowTypeHandler(DbTypeHandler[T], Generic[T]):
@abstractmethod
def from_arrow(self, obj: pa.RecordBatchReader, target_type: type) -> T:
pass
@abstractmethod
def to_arrow(self, obj: T) -> tuple[pa.RecordBatchReader, dict[str, Any]]:
pass
def handle_output(self, ... | 7 | 2 | 26 | 2 | 23 | 2 | 3 | 0.06 | 2 | 9 | 2 | 3 | 4 | 0 | 4 | 29 | 109 | 12 | 93 | 35 | 75 | 6 | 43 | 21 | 38 | 6 | 5 | 2 | 11 |
22,610 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/io_manager.py | dagster_deltalake.io_manager.DeltaLakeDbClient | from dagster._core.storage.db_io_manager import DbClient, DbIOManager, DbTypeHandler, TablePartitionDimension, TableSlice
from typing import Optional, TypedDict, Union, cast
from dagster import OutputContext
from contextlib import contextmanager
from collections.abc import Iterator, Sequence
class DeltaLakeDbClient(Db... |
class DeltaLakeDbClient(DbClient):
@staticmethod
def delete_table_slice(context: OutputContext, table_slice: TableSlice, connection: TableConnection) -> None:
pass
@staticmethod
def ensure_schema_exists(context: OutputContext, table_slice: TableSlice, connection: TableConnection) -> None:
... | 10 | 0 | 14 | 2 | 11 | 2 | 3 | 0.12 | 1 | 5 | 3 | 0 | 0 | 0 | 4 | 11 | 64 | 9 | 49 | 22 | 35 | 6 | 28 | 14 | 23 | 5 | 2 | 1 | 10 |
22,611 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/io_manager.py | dagster_deltalake.io_manager.DeltaLakeIOManager | from typing import Optional, TypedDict, Union, cast
from pydantic import Field
from abc import abstractmethod
from dagster_deltalake.config import AzureConfig, ClientConfig, GcsConfig, LocalConfig, S3Config
from dagster._core.storage.db_io_manager import DbClient, DbIOManager, DbTypeHandler, TablePartitionDimension, Ta... |
class DeltaLakeIOManager(ConfigurableIOManagerFactory):
'''Base class for an IO manager definition that reads inputs from and writes outputs to Delta Lake.
Examples:
.. code-block:: python
from dagster_deltalake import DeltaLakeIOManager
from dagster_deltalake_pandas import Delt... | 7 | 1 | 4 | 0 | 4 | 0 | 1 | 0.87 | 1 | 4 | 3 | 3 | 1 | 0 | 3 | 135 | 106 | 21 | 47 | 16 | 41 | 41 | 18 | 14 | 14 | 1 | 9 | 0 | 3 |
22,612 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/io_manager.py | dagster_deltalake.io_manager.TableConnection | from typing import Optional, TypedDict, Union, cast
from dataclasses import dataclass
@dataclass(frozen=True)
class TableConnection:
table_uri: str
storage_options: dict[str, str]
table_config: Optional[dict[str, str]] | @dataclass(frozen=True)
class TableConnection:
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,613 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/io_manager.py | dagster_deltalake.io_manager.WriteMode | from enum import Enum
class WriteMode(str, Enum):
error = 'error'
append = 'append'
overwrite = 'overwrite'
ignore = 'ignore' |
class WriteMode(str, Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
22,614 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/io_manager.py | dagster_deltalake.io_manager.WriterEngine | from enum import Enum
class WriterEngine(str, Enum):
pyarrow = 'pyarrow'
rust = 'rust' |
class WriterEngine(str, Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
22,615 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/io_manager.py | dagster_deltalake.io_manager._DeltaTableIOManagerResourceConfig | from typing import Optional, TypedDict, Union, cast
class _DeltaTableIOManagerResourceConfig(TypedDict):
root_uri: str
mode: WriteMode
overwrite_schema: bool
writer_engine: WriterEngine
storage_options: _StorageOptionsConfig
client_options: NotRequired[dict[str, str]]
table_config: NotRequi... |
class _DeltaTableIOManagerResourceConfig(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 10 | 1 | 9 | 0 | 10 | 1 | 9 | 0 | 1 | 0 | 0 |
22,616 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/io_manager.py | dagster_deltalake.io_manager._StorageOptionsConfig | from typing import Optional, TypedDict, Union, cast
class _StorageOptionsConfig(TypedDict, total=False):
local: dict[str, str]
s3: dict[str, str]
azure: dict[str, str]
gcs: dict[str, str] |
class _StorageOptionsConfig(TypedDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
22,617 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake/dagster_deltalake/resource.py | dagster_deltalake.resource.DeltaTableResource | from pydantic import Field
from deltalake import DeltaTable
from typing import Optional, Union
from dagster import ConfigurableResource
from dagster_deltalake.config import AzureConfig, ClientConfig, GcsConfig, LocalConfig, S3Config
class DeltaTableResource(ConfigurableResource):
"""Resource for interacting with a... |
class DeltaTableResource(ConfigurableResource):
'''Resource for interacting with a Delta table.
Examples:
.. code-block:: python
from dagster import Definitions, asset
from dagster_deltalake import DeltaTableResource, LocalConfig
@asset
def my_table(delta... | 2 | 1 | 6 | 0 | 6 | 0 | 3 | 1.2 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 43 | 10 | 15 | 9 | 13 | 18 | 11 | 9 | 9 | 3 | 1 | 0 | 3 |
22,618 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake-pandas/dagster_deltalake_pandas/deltalake_pandas_type_handler.py | dagster_deltalake_pandas.deltalake_pandas_type_handler.DeltaLakePandasIOManager | from typing import Any, Optional
from dagster._core.storage.db_io_manager import DbTypeHandler
from collections.abc import Sequence
from dagster_deltalake.io_manager import DeltaLakeIOManager
from dagster_deltalake.handler import DeltalakeBaseArrowTypeHandler, DeltaLakePyArrowTypeHandler
import pandas as pd
class Delt... |
class DeltaLakePandasIOManager(DeltaLakeIOManager):
@staticmethod
def type_handlers() -> Sequence[DbTypeHandler]:
pass
@staticmethod
def default_load_type() -> Optional[type]:
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 3 | 0 | 0 | 0 | 2 | 137 | 8 | 1 | 7 | 5 | 2 | 0 | 5 | 3 | 2 | 1 | 10 | 0 | 2 |
22,619 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake-pandas/dagster_deltalake_pandas/deltalake_pandas_type_handler.py | dagster_deltalake_pandas.deltalake_pandas_type_handler.DeltaLakePandasTypeHandler | from dagster_deltalake.handler import DeltalakeBaseArrowTypeHandler, DeltaLakePyArrowTypeHandler
from typing import Any, Optional
import pyarrow as pa
from collections.abc import Sequence
import pandas as pd
class DeltaLakePandasTypeHandler(DeltalakeBaseArrowTypeHandler[pd.DataFrame]):
def from_arrow(self, obj: p... |
class DeltaLakePandasTypeHandler(DeltalakeBaseArrowTypeHandler[pd.DataFrame]):
def from_arrow(self, obj: pa.RecordBatchReader, target_type: type[pd.DataFrame]) -> pd.DataFrame:
pass
def to_arrow(self, obj: pd.DataFrame) -> tuple[pa.RecordBatchReader, dict[str, Any]]:
pass
@property
de... | 5 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 5 | 0 | 0 | 3 | 0 | 3 | 32 | 12 | 2 | 10 | 7 | 3 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
22,620 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake-polars/dagster_deltalake_polars/deltalake_polars_type_handler.py | dagster_deltalake_polars.deltalake_polars_type_handler.DeltaLakePolarsIOManager | from collections.abc import Sequence
from dagster._core.storage.db_io_manager import DbTypeHandler, TableSlice
from dagster_deltalake.io_manager import DeltaLakeIOManager, TableConnection
import polars as pl
from dagster_deltalake.handler import DeltalakeBaseArrowTypeHandler, DeltaLakePyArrowTypeHandler, _table_reader
... |
class DeltaLakePolarsIOManager(DeltaLakeIOManager):
@staticmethod
def type_handlers() -> Sequence[DbTypeHandler]:
pass
@staticmethod
def default_load_type() -> Optional[type]:
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 3 | 0 | 0 | 0 | 2 | 137 | 8 | 1 | 7 | 5 | 2 | 0 | 5 | 3 | 2 | 1 | 10 | 0 | 2 |
22,621 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-deltalake-polars/dagster_deltalake_polars/deltalake_polars_type_handler.py | dagster_deltalake_polars.deltalake_polars_type_handler.DeltaLakePolarsTypeHandler | from dagster_deltalake.handler import DeltalakeBaseArrowTypeHandler, DeltaLakePyArrowTypeHandler, _table_reader
from dagster._core.storage.db_io_manager import DbTypeHandler, TableSlice
from typing import Any, Optional, Union
from collections.abc import Sequence
from dagster_deltalake.io_manager import DeltaLakeIOManag... |
class DeltaLakePolarsTypeHandler(DeltalakeBaseArrowTypeHandler[PolarsTypes]):
def from_arrow(self, obj: Union[ds.Dataset, pa.RecordBatchReader], target_type: type[PolarsTypes]) -> PolarsTypes:
pass
def to_arrow(self, obj: PolarsTypes) -> tuple[pa.RecordBatchReader, dict[str, Any]]:
pass
... | 6 | 1 | 10 | 0 | 10 | 0 | 3 | 0.03 | 1 | 8 | 2 | 0 | 4 | 0 | 4 | 33 | 45 | 4 | 40 | 18 | 25 | 1 | 23 | 8 | 18 | 4 | 6 | 2 | 10 |
22,622 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dlt/dagster_dlt/dlt_event_iterator.py | dagster_dlt.dlt_event_iterator.DltEventIterator | from collections.abc import Iterator
from dagster._core.execution.context.op_execution_context import OpExecutionContext
from typing import Optional, Union
from dlt import Pipeline
from dagster._annotations import public
from dagster._core.execution.context.asset_execution_context import AssetExecutionContext
class Dl... |
class DltEventIterator(Iterator[T]):
'''A wrapper around an iterator of Dlt events which contains additional methods for
post-processing the events, such as fetching column metadata.
'''
def __init__(self, events: Iterator[T], context: Union[OpExecutionContext, AssetExecutionContext], dlt_pipeline: Pi... | 7 | 2 | 10 | 1 | 7 | 1 | 1 | 0.3 | 1 | 2 | 2 | 0 | 4 | 3 | 4 | 29 | 47 | 8 | 30 | 17 | 18 | 9 | 16 | 11 | 10 | 3 | 5 | 2 | 7 |
22,623 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dlt/dagster_dlt/resource.py | dagster_dlt.resource.DagsterDltResource | from typing import Any, Optional, Union
from dlt.pipeline.pipeline import Pipeline
from collections.abc import Iterator, Mapping
from dagster import AssetExecutionContext, AssetMaterialization, ConfigurableResource, MaterializeResult, MetadataValue, OpExecutionContext, TableColumnConstraints, _check as check
from datet... |
class DagsterDltResource(ConfigurableResource):
@classmethod
def _is_dagster_maintained(cls) -> bool:
pass
def _cast_load_info_metadata(self, mapping: Mapping[Any, Any]) -> Mapping[Any, Any]:
'''Converts datetime and timezone values in a mapping to strings.
Workaround for dagster.... | 10 | 4 | 40 | 5 | 28 | 8 | 3 | 0.28 | 1 | 18 | 6 | 0 | 5 | 0 | 6 | 6 | 276 | 39 | 189 | 54 | 157 | 53 | 74 | 31 | 64 | 7 | 1 | 3 | 22 |
22,624 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dlt/dagster_dlt/translator.py | dagster_dlt.translator.DagsterDltTranslator | from dagster import AssetKey, AssetSpec, AutoMaterializePolicy, AutomationCondition
from typing import Any, Callable, Optional, Union
from dagster._utils.warnings import supersession_warning
from collections.abc import Iterable, Mapping, Sequence
from dataclasses import dataclass
from dlt.extract.resource import DltRes... | @dataclass
class DagsterDltTranslator:
def get_asset_spec(self, data: DltResourceTranslatorData) -> AssetSpec:
'''Defines the asset spec for a given dlt resource.
This method can be overridden to provide custom asset key for a dlt resource.
Args:
data (DltResourceTranslatorData)... | 44 | 21 | 14 | 3 | 5 | 7 | 1 | 0.97 | 0 | 8 | 1 | 20 | 22 | 0 | 22 | 22 | 380 | 82 | 153 | 75 | 76 | 149 | 64 | 31 | 41 | 3 | 0 | 2 | 29 |
22,625 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-dlt/dagster_dlt/translator.py | dagster_dlt.translator.DltResourceTranslatorData | from dagster._record import record
from typing import Any, Callable, Optional, Union
from dlt.extract.resource import DltResource
from dlt.pipeline.pipeline import Pipeline
from dlt.common.destination import Destination
@record
class DltResourceTranslatorData:
resource: DltResource
pipeline: Optional[Pipeline]... | @record
class DltResourceTranslatorData:
@property
def destination(self) -> Optional[Destination]:
pass | 4 | 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,626 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-docker/dagster_docker/container_context.py | dagster_docker.container_context.DockerContainerContext | from collections.abc import Mapping, Sequence
from dagster._core.errors import DagsterInvalidConfigError
from dagster import Array, Field, Permissive, StringSource, _check as check
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, cast
from dagster._config import process_config
from dagster._core.storage.dag... |
class DockerContainerContext(NamedTuple('_DockerContainerContext', [('registry', Optional[Mapping[str, str]]), ('env_vars', Sequence[str]), ('networks', Sequence[str]), ('container_kwargs', Mapping[str, Any])])):
'''Encapsulates the configuration that can be applied to a Docker container running
Dagster code. ... | 7 | 1 | 22 | 3 | 18 | 2 | 3 | 0.17 | 1 | 7 | 2 | 0 | 2 | 3 | 4 | 4 | 111 | 14 | 83 | 33 | 60 | 14 | 24 | 12 | 19 | 4 | 1 | 1 | 11 |
22,627 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-docker/dagster_docker/docker_executor.py | dagster_docker.docker_executor.DockerStepHandler | from typing import TYPE_CHECKING, Optional, cast
import dagster._check as check
from dagster._core.executor.step_delegating.step_handler.base import CheckStepHealthResult, StepHandler, StepHandlerContext
import docker.errors
import docker
from dagster._core.utils import parse_env_var
from collections.abc import Iterato... |
class DockerStepHandler(StepHandler):
def __init__(self, image: Optional[str], container_context: DockerContainerContext):
pass
def _get_image(self, step_handler_context: StepHandlerContext):
pass
def _get_docker_container_context(self, step_handler_context: StepHandlerContext):
... | 13 | 0 | 19 | 3 | 15 | 0 | 2 | 0.02 | 1 | 13 | 7 | 0 | 11 | 2 | 11 | 35 | 219 | 46 | 169 | 68 | 144 | 4 | 106 | 56 | 92 | 5 | 5 | 2 | 27 |
22,628 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-docker/dagster_docker/docker_run_launcher.py | dagster_docker.docker_run_launcher.DockerRunLauncher | from typing_extensions import Self
import dagster._check as check
from dagster_docker.utils import DOCKER_CONFIG_SCHEMA, validate_docker_config, validate_docker_image
from dagster._grpc.types import ExecuteRunArgs, ResumeRunArgs
from dagster._serdes.config_class import ConfigurableClassData
from dagster._core.storage.d... |
class DockerRunLauncher(RunLauncher, ConfigurableClass):
'''Launches runs in a Docker container.'''
def __init__(self, inst_data: Optional[ConfigurableClassData]=None, image=None, registry=None, env_vars=None, network=None, networks=None, container_kwargs=None):
pass
@property
def inst_data(se... | 21 | 1 | 14 | 2 | 11 | 0 | 2 | 0.03 | 2 | 16 | 9 | 0 | 13 | 6 | 15 | 47 | 229 | 52 | 174 | 66 | 142 | 6 | 111 | 50 | 95 | 8 | 5 | 2 | 36 |
22,629 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-docker/dagster_docker/pipes.py | dagster_docker.pipes.PipesDockerClient | from collections.abc import Iterator, Mapping, Sequence
from dagster._core.execution.context.asset_execution_context import AssetExecutionContext
from dagster_pipes import DagsterPipesError, PipesDefaultMessageWriter, PipesExtras, PipesParams
from dagster._core.definitions.resource_annotation import TreatAsResourcePara... |
class PipesDockerClient(PipesClient, TreatAsResourceParam):
'''A pipes client that runs external processes in docker containers.
By default context is injected via environment variables and messages are parsed out of the
log stream, with other logs forwarded to stdout of the orchestration process.
Args... | 6 | 2 | 33 | 2 | 25 | 6 | 2 | 0.36 | 2 | 13 | 7 | 0 | 3 | 4 | 4 | 25 | 151 | 12 | 102 | 40 | 72 | 37 | 32 | 14 | 27 | 5 | 5 | 3 | 8 |
22,630 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-docker/dagster_docker/pipes.py | dagster_docker.pipes.PipesDockerLogsMessageReader | from contextlib import contextmanager
from dagster._core.pipes.context import PipesMessageHandler
from dagster import OpExecutionContext, _check as check
from collections.abc import Iterator, Mapping, Sequence
from dagster._core.pipes.utils import PipesEnvContextInjector, extract_message_or_forward_to_stdout, open_pipe... |
class PipesDockerLogsMessageReader(PipesMessageReader):
@contextmanager
def read_messages(self, handler: PipesMessageHandler) -> Iterator[PipesParams]:
pass
def consume_docker_logs(self, container) -> None:
pass
def no_messages_debug_text(self) -> str:
pass | 5 | 0 | 8 | 0 | 8 | 0 | 2 | 0 | 1 | 5 | 2 | 0 | 3 | 1 | 3 | 27 | 28 | 3 | 25 | 12 | 17 | 0 | 16 | 8 | 12 | 4 | 5 | 2 | 6 |
22,631 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-duckdb/dagster_duckdb/io_manager.py | dagster_duckdb.io_manager.DuckDBIOManager | from typing import Any, Optional, cast
from dagster._core.storage.db_io_manager import DbClient, DbIOManager, DbTypeHandler, TablePartitionDimension, TableSlice
from dagster._config.pythonic_config import ConfigurableIOManagerFactory
from abc import abstractmethod
from pydantic import Field
from collections.abc import ... |
class DuckDBIOManager(ConfigurableIOManagerFactory):
'''Base class for an IO manager definition that reads inputs from and writes outputs to DuckDB.
Examples:
.. code-block:: python
from dagster_duckdb import DuckDBIOManager
from dagster_duckdb_pandas import DuckDBPandasTypeHand... | 7 | 1 | 4 | 0 | 4 | 0 | 1 | 2.44 | 1 | 4 | 3 | 4 | 1 | 0 | 3 | 135 | 119 | 27 | 27 | 9 | 21 | 66 | 10 | 7 | 6 | 1 | 9 | 0 | 3 |
22,632 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-duckdb/dagster_duckdb/io_manager.py | dagster_duckdb.io_manager.DuckDbClient | from contextlib import contextmanager
from dagster._utils.backoff import backoff
from dagster._core.storage.db_io_manager import DbClient, DbIOManager, DbTypeHandler, TablePartitionDimension, TableSlice
from dagster import IOManagerDefinition, OutputContext, io_manager
import duckdb
from packaging.version import Versio... |
class DuckDbClient(DbClient):
@staticmethod
def delete_table_slice(context: OutputContext, table_slice: TableSlice, connection) -> None:
pass
@staticmethod
def ensure_schema_exists(context: OutputContext, table_slice: TableSlice, connection) -> None:
pass
@staticmethod
def get_... | 10 | 0 | 10 | 1 | 8 | 1 | 2 | 0.08 | 1 | 4 | 1 | 0 | 0 | 0 | 4 | 11 | 50 | 8 | 39 | 13 | 29 | 3 | 21 | 9 | 16 | 3 | 2 | 1 | 8 |
22,633 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-duckdb/dagster_duckdb/resource.py | dagster_duckdb.resource.DuckDBResource | from packaging.version import Version
from pydantic import Field
from contextlib import contextmanager
from dagster import ConfigurableResource
import duckdb
from typing import Any
from dagster._utils.backoff import backoff
class DuckDBResource(ConfigurableResource):
"""Resource for interacting with a DuckDB datab... |
class DuckDBResource(ConfigurableResource):
'''Resource for interacting with a DuckDB database.
Examples:
.. code-block:: python
from dagster import Definitions, asset
from dagster_duckdb import DuckDBResource
@asset
def my_table(duckdb: DuckDBResource):
... | 5 | 1 | 14 | 2 | 11 | 1 | 2 | 0.43 | 1 | 3 | 0 | 0 | 1 | 0 | 2 | 2 | 65 | 12 | 37 | 9 | 32 | 16 | 12 | 7 | 9 | 2 | 1 | 1 | 3 |
22,634 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-duckdb-pandas/dagster_duckdb_pandas/duckdb_pandas_type_handler.py | dagster_duckdb_pandas.duckdb_pandas_type_handler.DuckDBPandasIOManager | from collections.abc import Sequence
import pandas as pd
from typing import Optional
from dagster._core.storage.db_io_manager import DbTypeHandler, TableSlice
from dagster_duckdb.io_manager import DuckDbClient, DuckDBIOManager, build_duckdb_io_manager
class DuckDBPandasIOManager(DuckDBIOManager):
"""An I/O manager... |
class DuckDBPandasIOManager(DuckDBIOManager):
'''An I/O manager definition that reads inputs from and writes Pandas DataFrames to DuckDB. When
using the DuckDBPandasIOManager, any inputs and outputs without type annotations will be loaded
as Pandas DataFrames.
Returns:
IOManagerDefinition
E... | 7 | 1 | 2 | 0 | 2 | 0 | 1 | 5.6 | 1 | 4 | 2 | 0 | 0 | 0 | 3 | 138 | 89 | 23 | 10 | 7 | 3 | 56 | 7 | 4 | 3 | 1 | 10 | 0 | 3 |
22,635 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-duckdb-pandas/dagster_duckdb_pandas/duckdb_pandas_type_handler.py | dagster_duckdb_pandas.duckdb_pandas_type_handler.DuckDBPandasTypeHandler | import pandas as pd
from dagster_duckdb.io_manager import DuckDbClient, DuckDBIOManager, build_duckdb_io_manager
from dagster._core.storage.db_io_manager import DbTypeHandler, TableSlice
from dagster import InputContext, MetadataValue, OutputContext, TableColumn, TableSchema
from dagster._core.definitions.metadata impo... |
class DuckDBPandasTypeHandler(DbTypeHandler[pd.DataFrame]):
'''Stores and loads Pandas DataFrames in DuckDB.
To use this type handler, return it from the ``type_handlers` method of an I/O manager that inherits from ``DuckDBIOManager``.
Example:
.. code-block:: python
from dagster_duckdb... | 5 | 3 | 14 | 0 | 12 | 2 | 2 | 0.68 | 1 | 3 | 2 | 0 | 3 | 0 | 3 | 28 | 74 | 11 | 38 | 9 | 29 | 26 | 12 | 4 | 8 | 3 | 5 | 1 | 6 |
22,636 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-duckdb-polars/dagster_duckdb_polars/duckdb_polars_type_handler.py | dagster_duckdb_polars.duckdb_polars_type_handler.DuckDBPolarsIOManager | from typing import Optional
from dagster_duckdb.io_manager import DuckDbClient, DuckDBIOManager, build_duckdb_io_manager
from dagster._core.storage.db_io_manager import DbTypeHandler, TableSlice
from collections.abc import Sequence
import polars as pl
class DuckDBPolarsIOManager(DuckDBIOManager):
"""An I/O manager... |
class DuckDBPolarsIOManager(DuckDBIOManager):
'''An I/O manager definition that reads inputs from and writes Polars DataFrames to DuckDB. When
using the DuckDBPolarsIOManager, any inputs and outputs without type annotations will be loaded
as Polars DataFrames.
Returns:
IOManagerDefinition
E... | 7 | 1 | 2 | 0 | 2 | 0 | 1 | 5.6 | 1 | 4 | 2 | 0 | 0 | 0 | 3 | 138 | 89 | 23 | 10 | 7 | 3 | 56 | 7 | 4 | 3 | 1 | 10 | 0 | 3 |
22,637 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-duckdb-polars/dagster_duckdb_polars/duckdb_polars_type_handler.py | dagster_duckdb_polars.duckdb_polars_type_handler.DuckDBPolarsTypeHandler | from dagster import InputContext, MetadataValue, OutputContext, TableColumn, TableSchema
from dagster_duckdb.io_manager import DuckDbClient, DuckDBIOManager, build_duckdb_io_manager
from dagster._core.storage.db_io_manager import DbTypeHandler, TableSlice
import polars as pl
class DuckDBPolarsTypeHandler(DbTypeHandler... |
class DuckDBPolarsTypeHandler(DbTypeHandler[pl.DataFrame]):
'''Stores and loads Polars DataFrames in DuckDB.
To use this type handler, return it from the ``type_handlers` method of an I/O manager that inherits from ``DuckDBIOManager``.
Example:
.. code-block:: python
from dagster_duckdb... | 5 | 3 | 14 | 0 | 13 | 1 | 2 | 0.6 | 1 | 4 | 2 | 0 | 3 | 0 | 3 | 28 | 74 | 11 | 40 | 12 | 31 | 24 | 16 | 7 | 12 | 2 | 5 | 1 | 5 |
22,638 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-duckdb-pyspark/dagster_duckdb_pyspark/duckdb_pyspark_type_handler.py | dagster_duckdb_pyspark.duckdb_pyspark_type_handler.DuckDBPySparkIOManager | from typing import Optional
import pyspark.sql
from dagster._core.storage.db_io_manager import DbTypeHandler, TableSlice
import pyspark
from dagster_duckdb.io_manager import DuckDbClient, DuckDBIOManager, build_duckdb_io_manager
from collections.abc import Sequence
class DuckDBPySparkIOManager(DuckDBIOManager):
""... |
class DuckDBPySparkIOManager(DuckDBIOManager):
'''An I/O manager definition that reads inputs from and writes PySpark DataFrames to DuckDB. When
using the DuckDBPySparkIOManager, any inputs and outputs without type annotations will be loaded
as PySpark DataFrames.
Returns:
IOManagerDefinition
... | 7 | 1 | 2 | 0 | 2 | 0 | 1 | 5.6 | 1 | 4 | 2 | 0 | 0 | 0 | 3 | 138 | 89 | 23 | 10 | 7 | 3 | 56 | 7 | 4 | 3 | 1 | 10 | 0 | 3 |
22,639 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-duckdb-pyspark/dagster_duckdb_pyspark/duckdb_pyspark_type_handler.py | dagster_duckdb_pyspark.duckdb_pyspark_type_handler.DuckDBPySparkTypeHandler | from pyspark.sql.types import StructType
from pyspark.sql import SparkSession
import pyspark.sql
from dagster import InputContext, MetadataValue, OutputContext, TableColumn, TableSchema
import pyspark
from dagster_duckdb.io_manager import DuckDbClient, DuckDBIOManager, build_duckdb_io_manager
from dagster._core.storage... |
class DuckDBPySparkTypeHandler(DbTypeHandler[pyspark.sql.DataFrame]):
'''Stores PySpark DataFrames in DuckDB.
To use this type handler, return it from the ``type_handlers` method of an I/O manager that inherits from ``DuckDBIOManager``.
Example:
.. code-block:: python
from dagster_duckd... | 5 | 3 | 14 | 1 | 13 | 2 | 2 | 0.63 | 1 | 3 | 2 | 0 | 3 | 0 | 3 | 28 | 74 | 11 | 40 | 16 | 27 | 25 | 15 | 7 | 11 | 2 | 5 | 1 | 5 |
22,640 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/asset_defs.py | dagster_fivetran.asset_defs.FivetranConnectionMetadata | from dagster import AssetExecutionContext, AssetKey, AssetsDefinition, OpExecutionContext, _check as check, multi_asset
from dagster._core.definitions.assets.definition.cacheable_assets_definition import AssetsDefinitionCacheableData, CacheableAssetsDefinition
from dagster_fivetran.utils import clean_name, generate_mat... |
class FivetranConnectionMetadata(NamedTuple('_FivetranConnectionMetadata', [('name', str), ('connector_id', str), ('connector_url', str), ('schemas', Mapping[str, Any]), ('database', Optional[str]), ('service', Optional[str])])):
def build_asset_defn_metadata(self, key_prefix: Sequence[str], group_name: Optional[... | 5 | 0 | 18 | 1 | 17 | 0 | 3 | 0 | 1 | 7 | 1 | 0 | 2 | 2 | 3 | 3 | 71 | 5 | 66 | 34 | 43 | 0 | 21 | 13 | 17 | 6 | 1 | 5 | 8 |
22,641 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/asset_defs.py | dagster_fivetran.asset_defs.FivetranInstanceCacheableAssetsDefinition | import hashlib
from dagster_fivetran.utils import clean_name, generate_materializations, get_fivetran_connector_url, metadata_for_table
from dagster import AssetExecutionContext, AssetKey, AssetsDefinition, OpExecutionContext, _check as check, multi_asset
from dagster._core.definitions.assets.definition.cacheable_asset... |
class FivetranInstanceCacheableAssetsDefinition(CacheableAssetsDefinition):
def __init__(self, fivetran_resource_def: Union[FivetranResource, ResourceDefinition], key_prefix: Sequence[str], connector_to_group_fn: Optional[Callable[[str], Optional[str]]], connector_filter: Optional[Callable[[FivetranConnectionMeta... | 5 | 0 | 34 | 4 | 29 | 1 | 4 | 0.03 | 1 | 12 | 5 | 0 | 4 | 13 | 4 | 32 | 138 | 17 | 118 | 51 | 98 | 3 | 53 | 36 | 48 | 5 | 5 | 3 | 14 |
22,642 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/fivetran_event_iterator.py | dagster_fivetran.fivetran_event_iterator.FivetranEventIterator | from dagster_fivetran.translator import FivetranMetadataSet
import os
from concurrent.futures import ThreadPoolExecutor
from typing import TYPE_CHECKING, Any, Callable, Union
from dagster import AssetExecutionContext, AssetMaterialization, MaterializeResult, OpExecutionContext, _check as check
from collections.abc impo... |
class FivetranEventIterator(Iterator[T]):
'''A wrapper around an iterator of Fivetran events which contains additional methods for
post-processing the events, such as fetching column metadata.
'''
def __init__(self, events: Iterator[T], fivetran_workspace: 'FivetranWorkspace', context: Union[OpExecuti... | 9 | 3 | 14 | 1 | 11 | 2 | 1 | 0.32 | 1 | 5 | 1 | 0 | 5 | 3 | 5 | 30 | 88 | 14 | 56 | 24 | 38 | 18 | 21 | 14 | 13 | 1 | 5 | 1 | 7 |
22,643 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/managed/reconciliation.py | dagster_fivetran.managed.reconciliation.FivetranManagedElementReconciler | from collections.abc import Iterable, Mapping
from dagster._annotations import beta, deprecated
from dagster_managed_elements import ManagedElementCheckResult, ManagedElementDiff
from dagster import ResourceDefinition
from dagster._core.execution.context.init import build_init_resource_context
import dagster._check as ... | @beta
@deprecated(breaking_version='2.0', additional_warn_text=MANAGED_ELEMENTS_DEPRECATION_MSG)
class FivetranManagedElementReconciler(ManagedElementReconciler):
def __init__(self, fivetran: ResourceDefinition, connectors: Iterable[FivetranConnector], delete_unmentioned_resources: bool=False):
'''Reconcil... | 6 | 1 | 14 | 1 | 10 | 3 | 1 | 0.25 | 1 | 5 | 1 | 0 | 3 | 3 | 3 | 25 | 45 | 5 | 32 | 12 | 23 | 8 | 11 | 7 | 7 | 1 | 5 | 0 | 3 |
22,644 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/managed/types.py | dagster_fivetran.managed.types.FivetranConnector | from typing import Any, Optional
from dagster._annotations import deprecated
import dagster._check as check
@deprecated(breaking_version='2.0', additional_warn_text=MANAGED_ELEMENTS_DEPRECATION_MSG)
class FivetranConnector:
def __init__(self, schema_name: str, source_type: str, source_configuration: dict[str, Any... | @deprecated(breaking_version='2.0', additional_warn_text=MANAGED_ELEMENTS_DEPRECATION_MSG)
class FivetranConnector:
def __init__(self, schema_name: str, source_type: str, source_configuration: dict[str, Any], destination: Optional[FivetranDestination], auth_configuration: Optional[dict[str, Any]]=None):
pa... | 4 | 0 | 10 | 0 | 10 | 0 | 1 | 0 | 0 | 5 | 1 | 0 | 2 | 6 | 2 | 2 | 22 | 1 | 21 | 16 | 11 | 0 | 10 | 9 | 7 | 1 | 0 | 0 | 2 |
22,645 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/managed/types.py | dagster_fivetran.managed.types.FivetranDestination | from typing import Any, Optional
import dagster._check as check
class FivetranDestination:
"""Represents a user-defined Fivetran destination."""
def __init__(self, name: str, destination_type: str, region: str, destination_configuration: dict[str, Any], time_zone_offset: Optional[int]=None):
self.name... |
class FivetranDestination:
'''Represents a user-defined Fivetran destination.'''
def __init__(self, name: str, destination_type: str, region: str, destination_configuration: dict[str, Any], time_zone_offset: Optional[int]=None):
pass
def must_be_recreated(self, other: 'FivetranDestination') -> bo... | 3 | 1 | 9 | 0 | 9 | 0 | 1 | 0.06 | 0 | 5 | 0 | 0 | 2 | 5 | 2 | 2 | 21 | 2 | 18 | 15 | 8 | 1 | 9 | 8 | 6 | 1 | 0 | 0 | 2 |
22,646 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/managed/types.py | dagster_fivetran.managed.types.InitializedFivetranConnector | from typing import Any, Optional
class InitializedFivetranConnector:
def __init__(self, connector: FivetranConnector, connector_id: str):
self.connector = connector
self.connector_id = connector_id
@classmethod
def from_api_json(cls, api_json: dict[str, Any]):
return cls(connector... |
class InitializedFivetranConnector:
def __init__(self, connector: FivetranConnector, connector_id: str):
pass
@classmethod
def from_api_json(cls, api_json: dict[str, Any]):
pass | 4 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 0 | 4 | 1 | 0 | 1 | 2 | 2 | 2 | 17 | 1 | 16 | 6 | 12 | 0 | 6 | 5 | 3 | 1 | 0 | 0 | 2 |
22,647 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/managed/types.py | dagster_fivetran.managed.types.InitializedFivetranDestination | from typing import Any, Optional
class InitializedFivetranDestination:
def __init__(self, destination: FivetranDestination, destination_id: str):
self.destination = destination
self.destination_id = destination_id
@classmethod
def from_api_json(cls, name: str, api_json: dict[str, Any]):
... |
class InitializedFivetranDestination:
def __init__(self, destination: FivetranDestination, destination_id: str):
pass
@classmethod
def from_api_json(cls, name: str, api_json: dict[str, Any]):
pass | 4 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 0 | 5 | 1 | 0 | 1 | 2 | 2 | 2 | 17 | 1 | 16 | 6 | 12 | 0 | 6 | 5 | 3 | 1 | 0 | 0 | 2 |
22,648 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/ops.py | dagster_fivetran.ops.FivetranResyncConfig | from typing import Any, Optional
from pydantic import Field
class FivetranResyncConfig(SyncConfig):
resync_parameters: Optional[dict[str, Any]] = Field(None, description='Optional resync parameters to send in the payload to the Fivetran API. You can find an example resync payload here: https://fivetran.com/docs/re... |
class FivetranResyncConfig(SyncConfig):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0 | 9 | 2 | 8 | 1 | 2 | 2 | 1 | 0 | 2 | 0 | 0 |
22,649 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/ops.py | dagster_fivetran.ops.SyncConfig | from dagster import AssetKey, Config, In, Nothing, Out, Output, op
from typing import Any, Optional
from pydantic import Field
from dagster_fivetran.resources import DEFAULT_POLL_INTERVAL, FivetranResource
class SyncConfig(Config):
connector_id: str = Field(description='The Fivetran Connector ID that this op will ... |
class SyncConfig(Config):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 32 | 0 | 32 | 6 | 31 | 0 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
22,650 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/resources.py | dagster_fivetran.resources.FivetranClient | import time
import logging
from dagster_fivetran.translator import ConnectorSelectorFn, DagsterFivetranTranslator, FivetranConnector, FivetranConnectorScheduleType, FivetranConnectorTableProps, FivetranDestination, FivetranMetadataSet, FivetranSchemaConfig, FivetranWorkspaceData
from collections.abc import Mapping, Seq... |
class FivetranClient:
'''This class exposes methods on top of the Fivetran REST API.'''
def __init__(self, api_key: str, api_secret: str, request_max_retries: int, request_retry_delay: float, disable_schedule_on_trigger: bool):
pass
@property
def _auth(self) -> HTTPBasicAuth:
pass
... | 28 | 15 | 16 | 1 | 9 | 5 | 2 | 0.55 | 0 | 16 | 3 | 0 | 21 | 5 | 21 | 21 | 356 | 52 | 196 | 87 | 129 | 108 | 89 | 42 | 67 | 5 | 0 | 3 | 33 |
22,651 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/resources.py | dagster_fivetran.resources.FivetranResource | from dagster._vendored.dateutil import parser
from requests.auth import HTTPBasicAuth
from dagster._config.pythonic_config import ConfigurableResource
from collections.abc import Mapping, Sequence
from typing import Any, Callable, Optional, Union
from requests.exceptions import RequestException
from dagster._utils.cach... | @deprecated(breaking_version='0.30', additional_warn_text='Use `FivetranWorkspace` instead.')
class FivetranResource(ConfigurableResource):
'''This class exposes methods on top of the Fivetran REST API.'''
@classmethod
def _is_dagster_maintained(cls) -> bool:
pass
@property
def _auth(self) -... | 27 | 13 | 17 | 2 | 9 | 6 | 2 | 0.55 | 1 | 14 | 1 | 0 | 18 | 0 | 19 | 145 | 364 | 50 | 204 | 81 | 151 | 112 | 103 | 46 | 83 | 5 | 9 | 3 | 34 |
22,652 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/resources.py | dagster_fivetran.resources.FivetranWorkspace | from dagster import AssetExecutionContext, AssetMaterialization, Definitions, Failure, InitResourceContext, MaterializeResult, MetadataValue, __version__, _check as check, get_dagster_logger, resource
from dagster._config.pythonic_config import ConfigurableResource
from pydantic import Field
from functools import cache... |
class FivetranWorkspace(ConfigurableResource):
'''This class represents a Fivetran workspace and provides utilities
to interact with Fivetran APIs.
'''
@cached_property
def _log(self) -> logging.Logger:
pass
@cached_property
def snapshot(self) -> Optional[RepositoryLoadData]:
... | 16 | 5 | 33 | 4 | 23 | 6 | 3 | 0.23 | 1 | 13 | 11 | 0 | 6 | 0 | 6 | 132 | 235 | 33 | 164 | 54 | 142 | 38 | 61 | 40 | 54 | 5 | 9 | 3 | 16 |
22,653 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/resources.py | dagster_fivetran.resources.FivetranWorkspaceDefsLoader | from dagster_shared.serdes import deserialize_value
from typing import Any, Callable, Optional, Union
from dagster_fivetran.constants import FIVETRAN_RECONSTRUCTION_METADATA_KEY_PREFIX, FIVETRAN_SNAPSHOT_ENV_VAR_NAME
from dagster._record import as_dict, record
from dagster._core.definitions.repository_definition.reposi... | @record
class FivetranWorkspaceDefsLoader(StateBackedDefinitionsLoader[FivetranWorkspaceData]):
@property
def defs_key(self) -> str:
pass
def fetch_state(self) -> FivetranWorkspaceData:
pass
def defs_from_state(self, state: FivetranWorkspaceData) -> Definitions:
pass | 6 | 0 | 4 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 3 | 0 | 3 | 30 | 18 | 4 | 14 | 6 | 9 | 0 | 10 | 5 | 6 | 1 | 5 | 0 | 3 |
22,654 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.DagsterFivetranTranslator | from dagster._core.definitions.assets.definition.asset_spec import AssetSpec
from dagster_fivetran.utils import get_fivetran_connector_table_name, metadata_for_table
from dagster._core.definitions.asset_key import AssetKey
from dagster._record import as_dict, record
from dagster._utils.names import clean_name_lower
cl... |
class DagsterFivetranTranslator:
'''Translator class which converts a `FivetranConnectorTableProps` object into AssetSpecs.
Subclass this class to implement custom logic on how to translate Fivetran content into asset spec.
'''
def get_asset_spec(self, props: FivetranConnectorTableProps) -> AssetS... | 2 | 2 | 36 | 3 | 32 | 1 | 2 | 0.12 | 0 | 5 | 4 | 5 | 1 | 0 | 1 | 1 | 41 | 4 | 33 | 7 | 31 | 4 | 8 | 7 | 6 | 2 | 0 | 0 | 2 |
22,655 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.FivetranConnector | from dagster_shared.serdes import whitelist_for_serdes
from dagster._vendored.dateutil import parser
from datetime import datetime
from dagster import Failure
from dagster._record import as_dict, record
from typing import Any, Callable, NamedTuple, Optional
from collections.abc import Mapping, Sequence
@whitelist_for_... | @whitelist_for_serdes
@record
class FivetranConnector:
'''Represents a Fivetran connector, based on data as returned from the API.'''
@property
def url(self) -> str:
pass
@property
def destination_id(self) -> str:
pass
@property
def is_connected(self) -> bool:
pass
... | 18 | 4 | 7 | 1 | 5 | 2 | 1 | 0.3 | 0 | 6 | 1 | 0 | 7 | 0 | 8 | 8 | 81 | 13 | 54 | 23 | 35 | 16 | 34 | 13 | 25 | 3 | 0 | 1 | 10 |
22,656 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.FivetranConnectorScheduleType | from enum import Enum
class FivetranConnectorScheduleType(str, Enum):
"""Enum representing each schedule type for a connector in Fivetran's ontology."""
AUTO = 'auto'
MANUAL = 'manual' |
class FivetranConnectorScheduleType(str, Enum):
'''Enum representing each schedule type for a connector in Fivetran's ontology.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 5 | 1 | 3 | 3 | 2 | 1 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
22,657 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.FivetranConnectorSetupStateType | from enum import Enum
class FivetranConnectorSetupStateType(Enum):
"""Enum representing each setup state for a connector in Fivetran's ontology."""
INCOMPLETE = 'incomplete'
CONNECTED = 'connected'
BROKEN = 'broken' |
class FivetranConnectorSetupStateType(Enum):
'''Enum representing each setup state for a connector in Fivetran's ontology.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 6 | 1 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
22,658 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.FivetranConnectorTableProps | from typing import Any, Callable, NamedTuple, Optional
class FivetranConnectorTableProps(NamedTuple):
table: str
connector_id: str
connector_name: str
connector_url: str
destination_id: Optional[str]
schema_config: 'FivetranSchemaConfig'
database: Optional[str]
service: Optional[str]
... |
class FivetranConnectorTableProps(NamedTuple):
@property
def name(self) -> str:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 1 | 7 | 0 | 8 | 1 | 7 | 0 | 1 | 0 | 0 |
22,659 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.FivetranDestination | from dagster_shared.serdes import whitelist_for_serdes
from collections.abc import Mapping, Sequence
from dagster._record import as_dict, record
from typing import Any, Callable, NamedTuple, Optional
@whitelist_for_serdes
@record
class FivetranDestination:
"""Represents a Fivetran destination, based on data as ret... | @whitelist_for_serdes
@record
class FivetranDestination:
'''Represents a Fivetran destination, based on data as returned from the API.'''
@classmethod
def from_destination_details(cls, destination_details: Mapping[str, Any]) -> 'FivetranDestination':
pass | 5 | 1 | 8 | 0 | 8 | 0 | 1 | 0.08 | 0 | 3 | 0 | 0 | 0 | 0 | 1 | 1 | 16 | 2 | 13 | 5 | 8 | 1 | 6 | 2 | 4 | 1 | 0 | 0 | 1 |
22,660 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.FivetranMetadataSet | from dagster._core.definitions.metadata.metadata_set import NamespacedMetadataSet
from typing import Any, Callable, NamedTuple, Optional
class FivetranMetadataSet(NamespacedMetadataSet):
connector_id: Optional[str] = None
connector_name: Optional[str] = None
destination_id: Optional[str] = None
destina... |
class FivetranMetadataSet(NamespacedMetadataSet):
@classmethod
def namespace(cls) -> str:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 98 | 8 | 1 | 7 | 6 | 4 | 0 | 6 | 5 | 4 | 1 | 8 | 0 | 1 |
22,661 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.FivetranSchema | from dagster._record import as_dict, record
from dagster_shared.serdes import whitelist_for_serdes
from collections.abc import Mapping, Sequence
from typing import Any, Callable, NamedTuple, Optional
@whitelist_for_serdes
@record
class FivetranSchema:
"""Represents a Fivetran schema, based on data as returned from... | @whitelist_for_serdes
@record
class FivetranSchema:
'''Represents a Fivetran schema, based on data as returned from the API.'''
@classmethod
def from_schema_details(cls, schema_details: Mapping[str, Any]) -> 'FivetranSchema':
pass | 5 | 1 | 9 | 0 | 9 | 0 | 1 | 0.07 | 0 | 4 | 1 | 0 | 0 | 0 | 1 | 1 | 17 | 2 | 14 | 3 | 11 | 1 | 6 | 2 | 4 | 1 | 0 | 0 | 1 |
22,662 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.FivetranSchemaConfig | from dagster._record import as_dict, record
from typing import Any, Callable, NamedTuple, Optional
from collections.abc import Mapping, Sequence
from dagster_shared.serdes import whitelist_for_serdes
@whitelist_for_serdes
@record
class FivetranSchemaConfig:
"""Represents a Fivetran schema config, based on data as ... | @whitelist_for_serdes
@record
class FivetranSchemaConfig:
'''Represents a Fivetran schema config, based on data as returned from the API.'''
@property
def has_schemas(self) -> bool:
pass
@classmethod
def from_schema_config_details(cls, schema_config_details: Mapping[str, Any]) -> 'FivetranSc... | 7 | 1 | 9 | 0 | 9 | 0 | 1 | 0.08 | 0 | 4 | 1 | 0 | 0 | 0 | 1 | 1 | 15 | 2 | 12 | 5 | 7 | 1 | 4 | 2 | 2 | 1 | 0 | 0 | 1 |
22,663 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.FivetranTable | from typing import Any, Callable, NamedTuple, Optional
from collections.abc import Mapping, Sequence
from dagster._record import as_dict, record
from dagster_shared.serdes import whitelist_for_serdes
@whitelist_for_serdes
@record
class FivetranTable:
"""Represents a Fivetran table, based on data as returned from t... | @whitelist_for_serdes
@record
class FivetranTable:
'''Represents a Fivetran table, based on data as returned from the API.'''
@classmethod
def from_table_details(cls, table_details: Mapping[str, Any]) -> 'FivetranTable':
pass | 5 | 1 | 6 | 0 | 6 | 0 | 1 | 0.18 | 0 | 3 | 0 | 0 | 0 | 0 | 1 | 1 | 15 | 2 | 11 | 3 | 8 | 2 | 6 | 2 | 4 | 1 | 0 | 0 | 1 |
22,664 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/translator.py | dagster_fivetran.translator.FivetranWorkspaceData | from dagster_fivetran.utils import get_fivetran_connector_table_name, metadata_for_table
from dagster._utils.cached_method import cached_method
from collections.abc import Mapping, Sequence
from dagster_shared.serdes import whitelist_for_serdes
from typing import Any, Callable, NamedTuple, Optional
from dagster._record... | @whitelist_for_serdes
@record
class FivetranWorkspaceData:
'''A record representing all content in a Fivetran workspace.
Provided as context for the translator so that it can resolve dependencies between content.
'''
@cached_method
def to_fivetran_connector_table_props_data(self) -> Sequence[Fivetra... | 7 | 2 | 30 | 3 | 24 | 3 | 6 | 0.21 | 0 | 3 | 1 | 0 | 1 | 0 | 1 | 1 | 40 | 5 | 29 | 9 | 26 | 6 | 15 | 8 | 13 | 6 | 0 | 5 | 6 |
22,665 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-fivetran/dagster_fivetran/types.py | dagster_fivetran.types.FivetranOutput | from collections.abc import Mapping
from typing import Any, NamedTuple
class FivetranOutput(NamedTuple('_FivetranOutput', [('connector_details', Mapping[str, Any]), ('schema_config', Mapping[str, Any])])):
"""Contains recorded information about the state of a Fivetran connector after a sync completes.
Args:
... |
class FivetranOutput(NamedTuple('_FivetranOutput', [('connector_details', Mapping[str, Any]), ('schema_config', Mapping[str, Any])])):
'''Contains recorded information about the state of a Fivetran connector after a sync completes.
Args:
connector_details (Dict[str, Any]):
The raw Fivetran ... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 1 | 9 | 9 | 0 | 10 | 1 | 1 | 0 | 0 | 1 | 0 | 0 |
22,666 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/io_manager.py | dagster_gcp.bigquery.io_manager.BigQueryClient | from google.api_core.exceptions import NotFound
from contextlib import contextmanager
from google.cloud import bigquery
from dagster._core.storage.db_io_manager import DbClient, DbIOManager, DbTypeHandler, TablePartitionDimension, TableSlice
from dagster import IOManagerDefinition, OutputContext, io_manager
class BigQ... |
class BigQueryClient(DbClient):
@staticmethod
def delete_table_slice(context: OutputContext, table_slice: TableSlice, connection) -> None:
pass
@staticmethod
def get_select_statement(table_slice: TableSlice) -> str:
pass
@staticmethod
def ensure_schema_exists(context: OutputCon... | 10 | 0 | 7 | 1 | 6 | 0 | 2 | 0.03 | 1 | 2 | 1 | 0 | 0 | 0 | 4 | 11 | 35 | 5 | 29 | 12 | 19 | 1 | 17 | 8 | 12 | 3 | 2 | 1 | 7 |
22,667 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/io_manager.py | dagster_gcp.bigquery.io_manager.BigQueryIOManager | from dagster._core.storage.db_io_manager import DbClient, DbIOManager, DbTypeHandler, TablePartitionDimension, TableSlice
from typing import Optional, cast
from pydantic import Field
from dagster._config.pythonic_config import ConfigurableIOManagerFactory
from collections.abc import Generator, Sequence
from abc import ... |
class BigQueryIOManager(ConfigurableIOManagerFactory):
'''Base class for an I/O manager definition that reads inputs from and writes outputs to BigQuery.
Examples:
.. code-block:: python
from dagster_gcp import BigQueryIOManager
from dagster_bigquery_pandas import BigQueryPandas... | 7 | 1 | 6 | 0 | 6 | 0 | 1 | 1.15 | 1 | 5 | 3 | 4 | 1 | 0 | 3 | 135 | 155 | 24 | 61 | 13 | 55 | 70 | 17 | 11 | 13 | 2 | 9 | 2 | 4 |
22,668 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/resources.py | dagster_gcp.bigquery.resources.BigQueryResource | from typing import Any, Optional
from collections.abc import Iterator, Mapping, Sequence
from pydantic import Field
from dagster_gcp.bigquery.utils import setup_gcp_creds
from google.cloud import bigquery
from contextlib import contextmanager
from dagster import ConfigurableResource, IAttachDifferentObjectToOpContext, ... |
class BigQueryResource(ConfigurableResource, IAttachDifferentObjectToOpContext):
'''Resource for interacting with Google BigQuery.
Examples:
.. code-block:: python
from dagster import Definitions, asset
from dagster_gcp import BigQueryResource
@asset
def ... | 6 | 2 | 8 | 1 | 4 | 3 | 1 | 0.72 | 2 | 3 | 0 | 0 | 2 | 0 | 3 | 3 | 76 | 14 | 36 | 10 | 30 | 26 | 14 | 7 | 10 | 2 | 1 | 2 | 4 |
22,669 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/types.py | dagster_gcp.bigquery.types.BigQueryError | class BigQueryError(Exception):
pass | class BigQueryError(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,670 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/types.py | dagster_gcp.bigquery.types.BigQueryLoadSource | from enum import Enum as PyEnum
class BigQueryLoadSource(PyEnum):
DataFrame = 'DATA_FRAME'
GCS = 'GCS'
File = 'FILE' |
class BigQueryLoadSource(PyEnum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
22,671 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/types.py | dagster_gcp.bigquery.types._Dataset | from dagster._config import ConfigScalar, ConfigScalarKind, PostProcessingError
class _Dataset(ConfigScalar):
def __init__(self):
super().__init__(key=type(self).__name__, given_name=type(self).__name__, scalar_kind=ConfigScalarKind.STRING)
def post_process(self, value):
if not _is_valid_data... |
class _Dataset(ConfigScalar):
def __init__(self):
pass
def post_process(self, value):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 10 | 12 | 1 | 11 | 3 | 8 | 0 | 7 | 3 | 4 | 2 | 2 | 1 | 3 |
22,672 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/bigquery/types.py | dagster_gcp.bigquery.types._Table | from dagster._config import ConfigScalar, ConfigScalarKind, PostProcessingError
class _Table(ConfigScalar):
def __init__(self):
super().__init__(key=type(self).__name__, given_name=type(self).__name__, scalar_kind=ConfigScalarKind.STRING)
def post_process(self, value):
if not _is_valid_table(... |
class _Table(ConfigScalar):
def __init__(self):
pass
def post_process(self, value):
pass | 3 | 0 | 7 | 1 | 7 | 0 | 2 | 0 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 10 | 16 | 2 | 14 | 3 | 11 | 0 | 7 | 3 | 4 | 2 | 2 | 1 | 3 |
22,673 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/dataproc/ops.py | dagster_gcp.dataproc.ops.DataprocOpConfig | from dagster._annotations import beta
from dagster_gcp.dataproc.resources import TWENTY_MINUTES, DataprocResource
from dagster import Bool, Config, Field as DagsterField, Int, op
from pydantic import Field
from typing import Any
@beta
class DataprocOpConfig(Config):
job_timeout_in_seconds: int = Field(default=TWEN... | @beta
class DataprocOpConfig(Config):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 0 | 22 | 6 | 21 | 0 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
22,674 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/dataproc/resources.py | dagster_gcp.dataproc.resources.DataprocClient | from googleapiclient.discovery import build
from oauth2client.client import GoogleCredentials
from contextlib import contextmanager
import time
from dagster_gcp.dataproc.types import DataprocError
class DataprocClient:
"""Builds a client to the dataproc API."""
def __init__(self, config):
credentials ... |
class DataprocClient:
'''Builds a client to the dataproc API.'''
def __init__(self, config):
pass
@property
def dataproc_clusters(self):
pass
@property
def dataproc_jobs(self):
pass
def create_cluster(self):
pass
def iter_fn():
pass... | 18 | 4 | 10 | 1 | 7 | 2 | 1 | 0.26 | 0 | 2 | 1 | 0 | 10 | 7 | 11 | 11 | 133 | 23 | 87 | 32 | 67 | 23 | 52 | 26 | 38 | 3 | 0 | 1 | 18 |
22,675 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/dataproc/resources.py | dagster_gcp.dataproc.resources.DataprocResource | import dagster._check as check
from collections.abc import Mapping
from typing import Any, Optional
from dagster._annotations import beta
from dagster import ConfigurableResource, IAttachDifferentObjectToOpContext, resource
import yaml
import json
from pydantic import Field
@beta
class DataprocResource(ConfigurableRes... | @beta
class DataprocResource(ConfigurableResource, IAttachDifferentObjectToOpContext):
'''Resource for connecting to a Dataproc cluster.
Example:
.. code-block::
@asset
def my_asset(dataproc: DataprocResource):
with dataproc.get_client() as client:
... | 9 | 1 | 8 | 1 | 7 | 0 | 2 | 0.11 | 2 | 5 | 1 | 0 | 5 | 0 | 6 | 6 | 116 | 14 | 92 | 21 | 84 | 10 | 34 | 18 | 27 | 7 | 1 | 1 | 12 |
22,676 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/dataproc/types.py | dagster_gcp.dataproc.types.DataprocError | class DataprocError(Exception):
pass | class DataprocError(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,677 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/compute_log_manager.py | dagster_gcp.gcs.compute_log_manager.GCSComputeLogManager | import dagster_shared.seven as seven
import os
from contextlib import contextmanager
from dagster._core.storage.compute_log_manager import CapturedLogContext, ComputeIOType
from dagster._utils import ensure_dir
import datetime
from dagster._core.storage.local_compute_log_manager import IO_TYPE_EXTENSION, LocalComputeLo... |
class GCSComputeLogManager(TruncatingCloudStorageComputeLogManager, ConfigurableClass):
'''Logs op compute function stdout and stderr to GCS.
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 | 9 | 1 | 8 | 0 | 2 | 0.2 | 2 | 15 | 5 | 0 | 18 | 9 | 20 | 82 | 230 | 35 | 163 | 86 | 115 | 33 | 108 | 56 | 87 | 3 | 6 | 2 | 33 |
22,678 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/file_manager.py | dagster_gcp.gcs.file_manager.GCSFileHandle | from dagster._core.storage.file_manager import FileHandle, FileManager, TempfileManager, check_file_like_obj
import dagster._check as check
class GCSFileHandle(FileHandle):
"""A reference to a file on GCS."""
def __init__(self, gcs_bucket: str, gcs_key: str):
self._gcs_bucket = check.str_param(gcs_buc... |
class GCSFileHandle(FileHandle):
'''A reference to a file on GCS.'''
def __init__(self, gcs_bucket: str, gcs_key: str):
pass
@property
def gcs_bucket(self) -> str:
'''str: The name of the GCS bucket.'''
pass
@property
def gcs_key(self) -> str:
'''str: The GCS ke... | 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,679 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/file_manager.py | dagster_gcp.gcs.file_manager.GCSFileManager | from contextlib import contextmanager
import dagster._check as check
import io
from typing import Optional
from dagster._core.storage.file_manager import FileHandle, FileManager, TempfileManager, check_file_like_obj
import uuid
from google.cloud import storage
class GCSFileManager(FileManager):
def __init__(self,... |
class GCSFileManager(FileManager):
def __init__(self, client, gcs_bucket, gcs_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 | 5 | 0 | 4 | 0 | 1 | 0.02 | 1 | 4 | 2 | 0 | 11 | 5 | 11 | 37 | 64 | 13 | 50 | 26 | 37 | 1 | 49 | 23 | 37 | 2 | 5 | 1 | 14 |
22,680 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/gcs_fake_resource.py | dagster_gcp.gcs.gcs_fake_resource.FakeConfigurableGCSClient | from dagster._utils.cached_method import cached_method
class FakeConfigurableGCSClient:
@cached_method
def get_client(self):
return FakeGCSClient() |
class FakeConfigurableGCSClient:
@cached_method
def get_client(self):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
22,681 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/gcs_fake_resource.py | dagster_gcp.gcs.gcs_fake_resource.FakeGCSBlob | from typing import AbstractSet, Optional, Union
class FakeGCSBlob:
def __init__(self, name: str, bucket: 'FakeGCSBucket'):
from unittest import mock
self.name = name
self.data = b''
self.bucket = bucket
self.mock_extras = mock.MagicMock()
def exists(self, *args, **kwar... |
class FakeGCSBlob:
def __init__(self, name: str, bucket: 'FakeGCSBucket'):
pass
def exists(self, *args, **kwargs):
pass
def delete(self, *args, **kwargs):
pass
def download_as_bytes(self, *args, **kwargs):
pass
def upload_from_string(self, data: Union[bytes, str... | 6 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 0 | 3 | 0 | 0 | 5 | 4 | 5 | 5 | 27 | 5 | 22 | 11 | 15 | 0 | 21 | 11 | 14 | 2 | 0 | 1 | 6 |
22,682 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/gcs_fake_resource.py | dagster_gcp.gcs.gcs_fake_resource.FakeGCSBucket | class FakeGCSBucket:
def __init__(self, name: str):
from unittest import mock
self.name = name
self.blobs: dict[str, FakeGCSBlob] = {}
self.mock_extras = mock.MagicMock()
def blob(self, blob_name: str, *args, **kwargs):
self.mock_extras.blob(*args, **kwargs)
if ... | class FakeGCSBucket:
def __init__(self, name: str):
pass
def blob(self, blob_name: str, *args, **kwargs):
pass
def exists(self, *args, **kwargs):
pass | 4 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 0 | 4 | 1 | 0 | 3 | 3 | 3 | 3 | 19 | 5 | 14 | 8 | 9 | 0 | 14 | 8 | 9 | 2 | 0 | 1 | 4 |
22,683 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/gcs_fake_resource.py | dagster_gcp.gcs.gcs_fake_resource.FakeGCSClient | from typing import AbstractSet, Optional, Union
class FakeGCSClient:
def __init__(self):
from unittest import mock
self.buckets: dict[str, FakeGCSBucket] = {}
self.mock_extras = mock.MagicMock()
def bucket(self, bucket_name: str, *args, **kwargs):
self.mock_extras.bucket(*args... |
class FakeGCSClient:
def __init__(self):
pass
def bucket(self, bucket_name: str, *args, **kwargs):
pass
def list_buckets(self, *args, **kwargs):
pass
def list_blobs(self, bucket_or_name: Union[FakeGCSBucket, str], *args, prefix: Optional[str]=None, **kwargs):
pass
... | 6 | 0 | 8 | 1 | 7 | 0 | 2 | 0 | 0 | 4 | 1 | 0 | 5 | 2 | 5 | 5 | 45 | 9 | 36 | 18 | 23 | 0 | 24 | 11 | 17 | 5 | 0 | 2 | 10 |
22,684 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/io_manager.py | dagster_gcp.gcs.io_manager.ConfigurablePickledObjectGCSIOManager | from dagster._annotations import deprecated
@deprecated(breaking_version='2.0', additional_warn_text='Please use GCSPickleIOManager instead.')
class ConfigurablePickledObjectGCSIOManager(GCSPickleIOManager):
"""Renamed to GCSPickleIOManager. See GCSPickleIOManager for documentation."""
pass | @deprecated(breaking_version='2.0', additional_warn_text='Please use GCSPickleIOManager instead.')
class ConfigurablePickledObjectGCSIOManager(GCSPickleIOManager):
'''Renamed to GCSPickleIOManager. See GCSPickleIOManager 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,685 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/io_manager.py | dagster_gcp.gcs.io_manager.GCSPickleIOManager | from dagster._utils.cached_method import cached_method
from dagster import ConfigurableIOManager, InputContext, OutputContext, ResourceDependency, _check as check, io_manager
from typing import Any, Optional, Union
from pydantic import Field
from dagster_gcp.gcs.resources import GCSResource
class GCSPickleIOManager(Co... |
class GCSPickleIOManager(ConfigurableIOManager):
'''Persistent IO manager using GCS 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 GCS and the backing bucket.
Assigns each ... | 8 | 1 | 3 | 0 | 3 | 0 | 1 | 2.88 | 1 | 3 | 1 | 1 | 3 | 0 | 4 | 4 | 87 | 21 | 17 | 9 | 9 | 49 | 12 | 7 | 7 | 1 | 1 | 0 | 4 |
22,686 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/io_manager.py | dagster_gcp.gcs.io_manager.PickledObjectGCSIOManager | import pickle
from dagster._utils.backoff import backoff
from google.cloud import storage
from dagster import ConfigurableIOManager, InputContext, OutputContext, ResourceDependency, _check as check, io_manager
from dagster._core.storage.upath_io_manager import UPathIOManager
from google.api_core.exceptions import Forbi... |
class PickledObjectGCSIOManager(UPathIOManager):
def __init__(self, bucket: str, client: Optional[Any]=None, prefix: str='dagster'):
pass
def unlink(self, path: UPath) -> None:
pass
def path_exists(self, path: UPath) -> bool:
pass
def get_op_output_relative_path(self, contex... | 11 | 0 | 4 | 0 | 4 | 0 | 1 | 0.02 | 1 | 5 | 0 | 0 | 10 | 4 | 10 | 64 | 54 | 11 | 42 | 23 | 31 | 1 | 38 | 23 | 27 | 2 | 7 | 1 | 12 |
22,687 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/resources.py | dagster_gcp.gcs.resources.GCSFileManagerResource | from typing import Any, Optional
from dagster_gcp.gcs.file_manager import GCSFileManager
from dagster import ConfigurableResource, IAttachDifferentObjectToOpContext, resource
from pydantic import Field
class GCSFileManagerResource(ConfigurableResource, IAttachDifferentObjectToOpContext):
"""FileManager that provid... |
class GCSFileManagerResource(ConfigurableResource, IAttachDifferentObjectToOpContext):
'''FileManager that provides abstract access to GCS.'''
def get_client(self) -> GCSFileManager:
'''Creates a :py:class:`~dagster_gcp.GCSFileManager` object that implements the
:py:class:`~dagster._core.stora... | 3 | 2 | 7 | 1 | 5 | 2 | 1 | 0.38 | 2 | 2 | 1 | 0 | 2 | 0 | 2 | 2 | 22 | 4 | 13 | 7 | 10 | 5 | 9 | 7 | 6 | 1 | 1 | 0 | 2 |
22,688 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/gcs/resources.py | dagster_gcp.gcs.resources.GCSResource | from dagster import ConfigurableResource, IAttachDifferentObjectToOpContext, resource
from pydantic import Field
from typing import Any, Optional
from google.cloud import storage
class GCSResource(ConfigurableResource, IAttachDifferentObjectToOpContext):
"""Resource for interacting with Google Cloud Storage.
... |
class GCSResource(ConfigurableResource, IAttachDifferentObjectToOpContext):
'''Resource for interacting with Google Cloud Storage.
Example:
.. code-block:: python
@asset
def my_asset(gcs: GCSResource):
client = gcs.get_client()
# client is a googl... | 3 | 2 | 4 | 1 | 2 | 2 | 1 | 2 | 2 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 24 | 6 | 6 | 4 | 3 | 12 | 6 | 4 | 3 | 1 | 1 | 0 | 2 |
22,689 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/pipes/clients/dataproc_job.py | dagster_gcp.pipes.clients.dataproc_job.PipesDataprocJobClient | from dagster._core.execution.context.asset_execution_context import AssetExecutionContext
from dagster._core.pipes.client import PipesClientCompletedInvocation, PipesContextInjector, PipesMessageReader
from dagster import PipesClient
import dagster._check as check
import time
from dagster._annotations import preview, p... | @public
@preview
class PipesDataprocJobClient(PipesClient, TreatAsResourceParam):
'''A pipes client for running workloads on GCP Dataproc in Job mode.
Args:
client (Optional[google.cloud.dataproc_v1.JobControllerClient]): The GCP Dataproc client to use.
context_injector (Optional[PipesContextInj... | 21 | 3 | 12 | 1 | 9 | 2 | 2 | 0.25 | 2 | 16 | 9 | 0 | 12 | 5 | 13 | 33 | 187 | 33 | 126 | 70 | 73 | 31 | 69 | 30 | 55 | 4 | 5 | 3 | 22 |
22,690 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/pipes/clients/dataproc_job.py | dagster_gcp.pipes.clients.dataproc_job.SubmitJobParams | from google.api_core.retry import Retry
from typing import Any, Optional, TypedDict, Union
from typing_extensions import NotRequired
from collections.abc import Mapping, Sequence
from google.cloud.dataproc_v1.types.jobs import Job, JobStatus, SubmitJobRequest
class SubmitJobParams(TypedDict):
request: NotRequired[... |
class SubmitJobParams(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 1 | 7 | 0 | 8 | 1 | 7 | 0 | 1 | 0 | 0 |
22,691 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/pipes/context_injectors.py | dagster_gcp.pipes.context_injectors.PipesGCSContextInjector | from typing import Optional
from dagster_pipes import PipesContextData
from google.cloud.storage import Client as GCSClient
import random
from collections.abc import Iterator
from contextlib import contextmanager
import json
from dagster._core.pipes.client import PipesContextInjector, PipesParams
import string
import o... |
class PipesGCSContextInjector(PipesContextInjector):
'''A context injector that injects context by writing to a temporary GCS location.
Args:
bucket (str): The GCS bucket to write to.
client (google.cloud.storage.Client): A Google Cloud SDK client to use to write to GCS.
key_prefix (Opt... | 5 | 1 | 6 | 0 | 6 | 0 | 1 | 0.37 | 1 | 4 | 1 | 0 | 3 | 3 | 3 | 25 | 31 | 5 | 19 | 10 | 14 | 7 | 14 | 9 | 10 | 1 | 5 | 0 | 3 |
22,692 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/pipes/message_readers.py | dagster_gcp.pipes.message_readers.PipesGCSLogReader | from google.cloud.storage import Client as GCSClient
from dagster._core.pipes.utils import PipesBlobStoreMessageReader, PipesChunkedLogReader, PipesLogReader
import os
import sys
from typing import IO, Callable, Optional
from dagster._core.pipes.client import PipesParams
class PipesGCSLogReader(PipesChunkedLogReader):... |
class PipesGCSLogReader(PipesChunkedLogReader):
def __init__(self, *, bucket: str, key: str, client: Optional[GCSClient]=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,693 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp/dagster_gcp/pipes/message_readers.py | dagster_gcp.pipes.message_readers.PipesGCSMessageReader | import string
from dagster._core.pipes.client import PipesParams
import dagster._check as check
from contextlib import contextmanager
from google.cloud.storage import Client as GCSClient
from dagster_pipes import PipesBlobStoreMessageWriter
from collections.abc import Iterator, Sequence
import random
from dagster._core... |
class PipesGCSMessageReader(PipesBlobStoreMessageReader):
'''Message reader that reads messages by periodically reading message chunks from a specified GCS
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 | 10 | 2 | 0 | 5 | 3 | 5 | 43 | 69 | 7 | 50 | 22 | 35 | 12 | 27 | 13 | 21 | 3 | 7 | 2 | 8 |
22,694 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp-pandas/dagster_gcp_pandas/bigquery/bigquery_pandas_type_handler.py | dagster_gcp_pandas.bigquery.bigquery_pandas_type_handler.BigQueryPandasIOManager | from typing import Optional
from dagster_gcp.bigquery.io_manager import BigQueryClient, BigQueryIOManager, build_bigquery_io_manager
from collections.abc import Sequence
import pandas as pd
from dagster._core.storage.db_io_manager import DbTypeHandler, TableSlice
class BigQueryPandasIOManager(BigQueryIOManager):
"... |
class BigQueryPandasIOManager(BigQueryIOManager):
'''An I/O manager definition that reads inputs from and writes pandas DataFrames to BigQuery.
Returns:
IOManagerDefinition
Examples:
.. code-block:: python
from dagster_gcp_pandas import BigQueryPandasIOManager
from d... | 7 | 1 | 2 | 0 | 2 | 0 | 1 | 6.7 | 1 | 4 | 2 | 0 | 0 | 0 | 3 | 138 | 101 | 24 | 10 | 7 | 3 | 67 | 7 | 4 | 3 | 1 | 10 | 0 | 3 |
22,695 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp-pandas/dagster_gcp_pandas/bigquery/bigquery_pandas_type_handler.py | dagster_gcp_pandas.bigquery.bigquery_pandas_type_handler.BigQueryPandasTypeHandler | from dagster._core.storage.db_io_manager import DbTypeHandler, TableSlice
from dagster_gcp.bigquery.io_manager import BigQueryClient, BigQueryIOManager, build_bigquery_io_manager
import pandas as pd
from dagster._core.definitions.metadata import TableMetadataSet
from dagster import InputContext, MetadataValue, OutputCo... |
class BigQueryPandasTypeHandler(DbTypeHandler[pd.DataFrame]):
'''Plugin for the BigQuery I/O Manager that can store and load Pandas DataFrames as BigQuery tables.
Examples:
.. code-block:: python
from dagster_gcp import BigQueryIOManager
from dagster_bigquery_pandas import BigQu... | 5 | 3 | 17 | 1 | 15 | 2 | 3 | 0.59 | 1 | 4 | 2 | 0 | 3 | 0 | 3 | 28 | 84 | 12 | 46 | 12 | 37 | 27 | 14 | 7 | 10 | 4 | 5 | 1 | 9 |
22,696 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp-pyspark/dagster_gcp_pyspark/bigquery/bigquery_pyspark_type_handler.py | dagster_gcp_pyspark.bigquery.bigquery_pyspark_type_handler.BigQueryPySparkIOManager | from dagster_gcp import BigQueryIOManager, build_bigquery_io_manager
from dagster._core.storage.db_io_manager import DbTypeHandler, TableSlice
from typing import Any, Optional
from collections.abc import Mapping, Sequence
from pyspark.sql import DataFrame, SparkSession
class BigQueryPySparkIOManager(BigQueryIOManager)... |
class BigQueryPySparkIOManager(BigQueryIOManager):
'''An I/O manager definition that reads inputs from and writes PySpark DataFrames to BigQuery.
Returns:
IOManagerDefinition
Examples:
.. code-block:: python
from dagster_gcp_pyspark import BigQueryPySparkIOManager
fr... | 7 | 1 | 2 | 0 | 2 | 0 | 1 | 6.7 | 1 | 4 | 2 | 0 | 0 | 0 | 3 | 138 | 101 | 24 | 10 | 7 | 3 | 67 | 7 | 4 | 3 | 1 | 10 | 0 | 3 |
22,697 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-gcp-pyspark/dagster_gcp_pyspark/bigquery/bigquery_pyspark_type_handler.py | dagster_gcp_pyspark.bigquery.bigquery_pyspark_type_handler.BigQueryPySparkTypeHandler | from dagster import InputContext, MetadataValue, OutputContext, TableColumn, TableSchema
from pyspark.sql import DataFrame, SparkSession
from dagster_gcp.bigquery.io_manager import BigQueryClient
from dagster._core.definitions.metadata import RawMetadataValue
from pyspark.sql.types import StructType
from dagster._core.... |
class BigQueryPySparkTypeHandler(DbTypeHandler[DataFrame]):
'''Plugin for the BigQuery I/O Manager that can store and load PySpark DataFrames as BigQuery tables.
Examples:
.. code-block:: python
from dagster_gcp import BigQueryIOManager
from dagster_bigquery_pandas import BigQue... | 5 | 1 | 12 | 2 | 10 | 0 | 1 | 0.74 | 1 | 4 | 2 | 0 | 3 | 0 | 3 | 28 | 68 | 15 | 31 | 12 | 24 | 23 | 15 | 9 | 11 | 2 | 5 | 1 | 4 |
22,698 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-ge/dagster_ge/factory.py | dagster_ge.factory.GEContextResource | from dagster._annotations import beta
from dagster import ConfigurableResource, ExpectationResult, IAttachDifferentObjectToOpContext, In, MetadataValue, OpDefinition, OpExecutionContext, Out, Output, _check as check, op, resource
import great_expectations as ge
from typing import Any, Literal, Optional
from pydantic im... | @beta
class GEContextResource(ConfigurableResource, IAttachDifferentObjectToOpContext):
def get_data_context(self):
pass
def get_object_to_set_on_execution_context(self):
pass | 4 | 0 | 3 | 0 | 3 | 0 | 2 | 0 | 2 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 13 | 2 | 11 | 4 | 8 | 0 | 8 | 4 | 5 | 2 | 1 | 1 | 3 |
22,699 | dagster-io/dagster | dagster-io_dagster/python_modules/libraries/dagster-github/dagster_github/resources.py | dagster_github.resources.GithubClient | import requests
import time
from dagster._annotations import deprecated, public
from typing import Any, Optional
from datetime import datetime
import jwt
@deprecated(breaking_version='0.27', additional_warn_text='`GithubClient` is deprecated. Use your own resource and client instead. Learn how to create your own resou... | @deprecated(breaking_version='0.27', additional_warn_text='`GithubClient` is deprecated. Use your own resource and client instead. Learn how to create your own resource here: https://docs.dagster.io/guides/build/external-resources/defining-resources')
class GithubClient:
'''A client for interacting with the GitHub ... | 17 | 6 | 31 | 3 | 20 | 8 | 2 | 0.45 | 0 | 8 | 0 | 1 | 10 | 7 | 10 | 10 | 335 | 37 | 205 | 79 | 147 | 93 | 68 | 32 | 57 | 7 | 0 | 2 | 22 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.