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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7,700 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/hooks/beam.py | beam.hooks.beam.BeamHook | import copy
import subprocess
from airflow.providers.apache.beam.version_compat import BaseHook
from airflow.providers.common.compat.standard.utils import prepare_virtualenv
import contextlib
import textwrap
import shutil
import json
from packaging.version import Version
import tempfile
import os
from airflow.exception... |
class BeamHook(BaseHook):
'''
Hook for Apache Beam.
All the methods in the hook where project_id is used must be called with
keyword arguments rather than positional.
:param runner: Runner type
'''
def __init__(self, runner: str) -> None:
pass
def _start_pipeline(self, variabl... | 7 | 5 | 34 | 3 | 23 | 8 | 3 | 0.39 | 1 | 10 | 2 | 1 | 6 | 2 | 6 | 18 | 217 | 27 | 137 | 60 | 92 | 53 | 51 | 20 | 44 | 6 | 2 | 3 | 18 |
7,701 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/hooks/beam.py | beam.hooks.beam.BeamRunnerType | class BeamRunnerType:
"""
Helper class for listing runner types.
For more information about runners see: https://beam.apache.org/documentation/
"""
DataflowRunner = 'DataflowRunner'
DirectRunner = 'DirectRunner'
SparkRunner = 'SparkRunner'
FlinkRunner = 'FlinkRunner'
SamzaRunner = '... | class BeamRunnerType:
'''
Helper class for listing runner types.
For more information about runners see: https://beam.apache.org/documentation/
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 9 | 9 | 8 | 4 | 9 | 9 | 8 | 0 | 0 | 0 | 0 |
7,702 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/operators/beam.py | beam.operators.beam.BeamBasePipelineOperator | from collections.abc import Callable, Sequence
from airflow.providers.apache.beam.hooks.beam import BeamHook, BeamRunnerType
from airflow.utils.helpers import convert_camel_to_snake, exactly_one
from airflow.exceptions import AirflowException, AirflowOptionalProviderFeatureException
from abc import ABC, ABCMeta, abstra... |
class BeamBasePipelineOperator(BaseOperator, BeamDataflowMixin, ABC):
'''
Abstract base class for Beam Pipeline Operators.
:param runner: Runner on which pipeline will be run. By default "DirectRunner" is being used.
Other possible options: DataflowRunner, SparkRunner, FlinkRunner, PortableRunner.
... | 11 | 2 | 19 | 1 | 16 | 2 | 2 | 0.31 | 3 | 12 | 6 | 3 | 6 | 11 | 6 | 32 | 147 | 17 | 100 | 39 | 78 | 31 | 50 | 24 | 43 | 4 | 4 | 1 | 13 |
7,703 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/operators/beam.py | beam.operators.beam.BeamDataflowMixin | from collections.abc import Callable, Sequence
import copy
from airflow.version import version
from abc import ABC, ABCMeta, abstractmethod
from airflow.exceptions import AirflowException, AirflowOptionalProviderFeatureException
class BeamDataflowMixin(metaclass=ABCMeta):
"""
Helper class to store common, Data... |
class BeamDataflowMixin(metaclass=ABCMeta):
'''
Helper class to store common, Dataflow specific logic for both.
:class:`~airflow.providers.apache.beam.operators.beam.BeamRunPythonPipelineOperator`,
:class:`~airflow.providers.apache.beam.operators.beam.BeamRunJavaPipelineOperator` and
:class:`~airfl... | 10 | 1 | 10 | 0 | 10 | 0 | 2 | 0.1 | 1 | 6 | 1 | 1 | 6 | 0 | 6 | 26 | 88 | 10 | 72 | 19 | 57 | 7 | 42 | 13 | 33 | 5 | 3 | 2 | 13 |
7,704 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/operators/beam.py | beam.operators.beam.BeamRunGoPipelineOperator | from airflow.version import version
from airflow.exceptions import AirflowException, AirflowOptionalProviderFeatureException
from contextlib import ExitStack
import tempfile
from airflow.utils.helpers import convert_camel_to_snake, exactly_one
class BeamRunGoPipelineOperator(BeamBasePipelineOperator):
"""
Laun... |
class BeamRunGoPipelineOperator(BeamBasePipelineOperator):
'''
Launch Apache Beam pipelines written in Go.
Note that both ``default_pipeline_options`` and ``pipeline_options``
will be merged to specify pipeline execution parameter, and
``default_pipeline_options`` is expected to save high-level opt... | 4 | 2 | 34 | 2 | 31 | 0 | 4 | 0.26 | 1 | 13 | 7 | 0 | 3 | 7 | 3 | 35 | 150 | 16 | 106 | 35 | 90 | 28 | 39 | 16 | 35 | 8 | 5 | 3 | 11 |
7,705 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/operators/beam.py | beam.operators.beam.BeamRunJavaPipelineOperator | from airflow.providers.apache.beam.hooks.beam import BeamHook, BeamRunnerType
from airflow.providers.apache.beam.triggers.beam import BeamJavaPipelineTrigger, BeamPythonPipelineTrigger
from contextlib import ExitStack
from collections.abc import Callable, Sequence
from airflow.exceptions import AirflowException, Airflo... |
class BeamRunJavaPipelineOperator(BeamBasePipelineOperator):
'''
Launching Apache Beam pipelines written in Java.
Note that both
``default_pipeline_options`` and ``pipeline_options`` will be merged to specify pipeline
execution parameter, and ``default_pipeline_options`` is expected to save
hig... | 5 | 3 | 27 | 0 | 26 | 1 | 3 | 0.21 | 1 | 11 | 6 | 0 | 5 | 11 | 5 | 37 | 182 | 14 | 140 | 39 | 122 | 29 | 49 | 19 | 43 | 6 | 5 | 4 | 14 |
7,706 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/operators/beam.py | beam.operators.beam.BeamRunPythonPipelineOperator | from airflow.exceptions import AirflowException, AirflowOptionalProviderFeatureException
from contextlib import ExitStack
from airflow.providers.apache.beam.triggers.beam import BeamJavaPipelineTrigger, BeamPythonPipelineTrigger
from airflow.providers.apache.beam.hooks.beam import BeamHook, BeamRunnerType
from airflow.... |
class BeamRunPythonPipelineOperator(BeamBasePipelineOperator):
'''
Launch Apache Beam pipelines written in Python.
Note that both ``default_pipeline_options`` and ``pipeline_options``
will be merged to specify pipeline execution parameter, and
``default_pipeline_options`` is expected to save high-l... | 5 | 3 | 27 | 0 | 26 | 1 | 2 | 0.23 | 1 | 11 | 5 | 0 | 5 | 15 | 5 | 37 | 187 | 13 | 141 | 43 | 120 | 33 | 47 | 20 | 41 | 4 | 5 | 3 | 12 |
7,707 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/operators/beam.py | beam.operators.beam._GoArtifact | from collections.abc import Callable, Sequence
from abc import ABC, ABCMeta, abstractmethod
from airflow.providers.apache.beam.hooks.beam import BeamHook, BeamRunnerType
class _GoArtifact(ABC):
@abstractmethod
def is_located_on_gcs(self) -> bool:
...
@abstractmethod
def download_from_gcs(self... |
class _GoArtifact(ABC):
@abstractmethod
def is_located_on_gcs(self) -> bool:
pass
@abstractmethod
def download_from_gcs(self, gcs_hook: GCSHook, tmp_dir: str) -> None:
pass
@abstractmethod
def start_pipeline(self, beam_hook: BeamHook, variables: dict, process_line_callback: Cal... | 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 5 | 2 | 2 | 3 | 0 | 3 | 23 | 14 | 2 | 12 | 12 | 3 | 0 | 7 | 4 | 3 | 1 | 4 | 0 | 3 |
7,708 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/operators/beam.py | beam.operators.beam._GoBinary | from airflow.providers.apache.beam.hooks.beam import BeamHook, BeamRunnerType
from collections.abc import Callable, Sequence
from concurrent.futures import ThreadPoolExecutor, as_completed
from functools import partial
class _GoBinary(_GoArtifact):
def __init__(self, launcher: str, worker: str) -> None:
s... |
class _GoBinary(_GoArtifact):
def __init__(self, launcher: str, worker: str) -> None:
pass
def is_located_on_gcs(self) -> bool:
pass
def download_from_gcs(self, gcs_hook: GCSHook, tmp_dir: str) -> None:
pass
def start_pipeline(self, beam_hook: BeamHook, variables: dict, proc... | 5 | 0 | 11 | 2 | 9 | 0 | 2 | 0 | 1 | 6 | 2 | 0 | 4 | 2 | 4 | 27 | 48 | 10 | 38 | 19 | 28 | 0 | 25 | 13 | 20 | 5 | 5 | 2 | 8 |
7,709 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/operators/beam.py | beam.operators.beam._GoFile | from airflow.providers.apache.beam.hooks.beam import BeamHook, BeamRunnerType
from collections.abc import Callable, Sequence
class _GoFile(_GoArtifact):
def __init__(self, file: str) -> None:
self.file = file
self.should_init_go_module = False
def is_located_on_gcs(self) -> bool:
retu... |
class _GoFile(_GoArtifact):
def __init__(self, file: str) -> None:
pass
def is_located_on_gcs(self) -> bool:
pass
def download_from_gcs(self, gcs_hook: GCSHook, tmp_dir: str) -> None:
pass
def start_pipeline(self, beam_hook: BeamHook, variables: dict, process_line_callback: ... | 5 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 4 | 2 | 4 | 27 | 24 | 3 | 21 | 12 | 11 | 0 | 11 | 7 | 6 | 1 | 5 | 0 | 4 |
7,710 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/triggers/beam.py | beam.triggers.beam.BeamJavaPipelineTrigger | from collections.abc import AsyncIterator
from typing import IO, Any
from airflow.triggers.base import BaseTrigger, TriggerEvent
class BeamJavaPipelineTrigger(BeamPipelineBaseTrigger):
"""
Trigger to perform checking the Java pipeline status until it reaches terminate state.
:param variables: Variables pa... |
class BeamJavaPipelineTrigger(BeamPipelineBaseTrigger):
'''
Trigger to perform checking the Java pipeline status until it reaches terminate state.
:param variables: Variables passed to the job.
:param jar: Name of the jar for the pipeline.
:param job_class: Optional. Name of the java class for the ... | 4 | 3 | 39 | 1 | 35 | 3 | 4 | 0.34 | 1 | 15 | 3 | 0 | 3 | 13 | 3 | 39 | 148 | 7 | 107 | 42 | 89 | 36 | 50 | 27 | 46 | 9 | 6 | 3 | 11 |
7,711 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/triggers/beam.py | beam.triggers.beam.BeamPipelineBaseTrigger | import asyncio
from typing import IO, Any
import contextlib
from airflow.triggers.base import BaseTrigger, TriggerEvent
from airflow.providers.apache.beam.hooks.beam import BeamAsyncHook
class BeamPipelineBaseTrigger(BaseTrigger):
"""Base class for Beam Pipeline Triggers."""
@staticmethod
def _get_async_h... |
class BeamPipelineBaseTrigger(BaseTrigger):
'''Base class for Beam Pipeline Triggers.'''
@staticmethod
def _get_async_hook(*args, **kwargs) -> BeamAsyncHook:
pass
@staticmethod
def file_has_gcs_path(file_path: str):
pass
@staticmethod
async def provide_gcs_tempfile(gcs_file,... | 7 | 1 | 3 | 0 | 3 | 0 | 1 | 0.08 | 1 | 3 | 2 | 2 | 1 | 0 | 3 | 36 | 18 | 4 | 13 | 7 | 6 | 1 | 9 | 5 | 4 | 1 | 5 | 0 | 4 |
7,712 | apache/airflow | apache_airflow/providers/apache/beam/src/airflow/providers/apache/beam/triggers/beam.py | beam.triggers.beam.BeamPythonPipelineTrigger | from typing import IO, Any
from collections.abc import AsyncIterator
from airflow.triggers.base import BaseTrigger, TriggerEvent
class BeamPythonPipelineTrigger(BeamPipelineBaseTrigger):
"""
Trigger to perform checking the Python pipeline status until it reaches terminate state.
:param variables: Variable... |
class BeamPythonPipelineTrigger(BeamPipelineBaseTrigger):
'''
Trigger to perform checking the Python pipeline status until it reaches terminate state.
:param variables: Variables passed to the pipeline.
:param py_file: Path to the python file to execute.
:param py_options: Additional options.
:... | 4 | 3 | 30 | 1 | 27 | 3 | 2 | 0.4 | 1 | 14 | 3 | 0 | 3 | 11 | 3 | 39 | 119 | 6 | 82 | 35 | 66 | 33 | 35 | 22 | 31 | 5 | 6 | 2 | 7 |
7,713 | apache/airflow | apache_airflow/dev/stats/calculate_statistics_provider_testing_issues.py | calculate_statistics_provider_testing_issues.Stats | from attr import dataclass
@dataclass
class Stats:
issue_number: int
title: str
num_providers: int
num_issues: int
tested_issues: int
url: str
users_involved: set[str]
users_commented: set[str]
def percent_tested(self) -> int:
return 100 * self.tested_issues // self.num_iss... | @dataclass
class Stats:
def percent_tested(self) -> int:
pass
def num_involved_users_who_commented(self) -> int:
pass
def num_commenting_not_involved(self) -> int:
pass
def percent_commented_among_involved(self) -> int:
pass
def __str__(self):
pass | 7 | 0 | 4 | 0 | 4 | 0 | 1 | 0.04 | 0 | 1 | 0 | 0 | 5 | 0 | 5 | 5 | 33 | 5 | 28 | 6 | 22 | 1 | 19 | 6 | 13 | 1 | 0 | 0 | 5 |
7,714 | apache/airflow | apache_airflow/providers/apache/cassandra/src/airflow/providers/apache/cassandra/hooks/cassandra.py | cassandra.hooks.cassandra.CassandraHook | from typing import Any, TypeAlias
from airflow.providers.apache.cassandra.version_compat import BaseHook
from cassandra.policies import DCAwareRoundRobinPolicy, RoundRobinPolicy, TokenAwarePolicy, WhiteListRoundRobinPolicy
from cassandra.cluster import Cluster, Session
import re
from cassandra.auth import PlainTextAuth... |
class CassandraHook(BaseHook, LoggingMixin):
'''
Hook used to interact with Cassandra.
Contact points can be specified as a comma-separated string in the 'hosts'
field of the connection.
Port can be specified in the port field of the connection.
If SSL is enabled in Cassandra, pass in a dict in... | 11 | 7 | 15 | 2 | 11 | 3 | 3 | 0.6 | 2 | 9 | 0 | 0 | 6 | 3 | 8 | 20 | 176 | 30 | 91 | 39 | 80 | 55 | 83 | 37 | 74 | 8 | 2 | 2 | 27 |
7,715 | apache/airflow | apache_airflow/providers/apache/cassandra/src/airflow/providers/apache/cassandra/sensors/record.py | cassandra.sensors.record.CassandraRecordSensor | from collections.abc import Sequence
from airflow.providers.apache.cassandra.hooks.cassandra import CassandraHook
from typing import TYPE_CHECKING, Any
from airflow.providers.apache.cassandra.version_compat import BaseSensorOperator
class CassandraRecordSensor(BaseSensorOperator):
"""
Checks for the existence ... |
class CassandraRecordSensor(BaseSensorOperator):
'''
Checks for the existence of a record in a Cassandra cluster.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CassandraRecordSensor`
For example, if you want to wait for a r... | 3 | 1 | 8 | 0 | 8 | 0 | 1 | 1.11 | 1 | 6 | 1 | 0 | 2 | 3 | 2 | 23 | 45 | 7 | 18 | 15 | 8 | 20 | 11 | 8 | 8 | 1 | 3 | 0 | 2 |
7,716 | apache/airflow | apache_airflow/providers/apache/cassandra/src/airflow/providers/apache/cassandra/sensors/table.py | cassandra.sensors.table.CassandraTableSensor | from airflow.providers.apache.cassandra.version_compat import BaseSensorOperator
from typing import TYPE_CHECKING, Any
from collections.abc import Sequence
from airflow.providers.apache.cassandra.hooks.cassandra import CassandraHook
class CassandraTableSensor(BaseSensorOperator):
"""
Checks for the existence o... |
class CassandraTableSensor(BaseSensorOperator):
'''
Checks for the existence of a table in a Cassandra cluster.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CassandraTableSensor`
For example, if you want to wait for a tab... | 3 | 1 | 7 | 0 | 7 | 0 | 1 | 0.94 | 1 | 5 | 1 | 0 | 2 | 2 | 2 | 23 | 39 | 8 | 16 | 13 | 7 | 15 | 10 | 7 | 7 | 1 | 3 | 0 | 2 |
7,717 | apache/airflow | apache_airflow/providers/celery/src/airflow/providers/celery/executors/celery_executor.py | celery.executors.celery_executor.CeleryExecutor | from collections import Counter
from airflow.providers.celery.version_compat import AIRFLOW_V_3_0_PLUS
from deprecated import deprecated
from airflow.executors.base_executor import BaseExecutor
from multiprocessing import cpu_count
from airflow.exceptions import AirflowProviderDeprecationWarning, AirflowTaskTimeout
fro... |
class CeleryExecutor(BaseExecutor):
'''
CeleryExecutor is recommended for production use of Airflow.
It allows distributing the execution of task instances to multiple worker nodes.
Celery is a simple, flexible and reliable distributed system to process
vast amounts of messages, while providing ope... | 22 | 6 | 13 | 1 | 9 | 2 | 2 | 0.3 | 1 | 24 | 9 | 1 | 18 | 5 | 19 | 59 | 285 | 48 | 183 | 69 | 149 | 55 | 146 | 61 | 119 | 7 | 2 | 3 | 45 |
7,718 | apache/airflow | apache_airflow/providers/celery/src/airflow/providers/celery/executors/celery_executor_utils.py | celery.executors.celery_executor_utils.BulkStateFetcher | from typing import TYPE_CHECKING, Any
from celery.backends.database import DatabaseBackend, Task as TaskDb, retry, session_cleanup
from celery import Celery, Task, states as celery_states
from concurrent.futures import ProcessPoolExecutor
from celery.backends.base import BaseKeyValueStoreBackend
from collections.abc im... |
class BulkStateFetcher(LoggingMixin):
'''
Gets status for many Celery tasks using the best method available.
If BaseKeyValueStoreBackend is used as result backend, the mget method is used.
If DatabaseBackend is used as result backend, the SELECT ...WHERE task_id IN (...) query is used
Otherwise, mu... | 11 | 2 | 9 | 1 | 8 | 0 | 2 | 0.1 | 1 | 7 | 1 | 0 | 7 | 1 | 8 | 14 | 89 | 14 | 68 | 37 | 55 | 7 | 53 | 32 | 44 | 4 | 1 | 3 | 15 |
7,719 | apache/airflow | apache_airflow/providers/celery/src/airflow/providers/celery/executors/celery_executor_utils.py | celery.executors.celery_executor_utils.ExceptionWithTraceback | class ExceptionWithTraceback:
"""
Wrapper class used to propagate exceptions to parent processes from subprocesses.
:param exception: The exception to wrap
:param exception_traceback: The stacktrace to wrap
"""
def __init__(self, exception: BaseException, exception_traceback: str):
sel... | class ExceptionWithTraceback:
'''
Wrapper class used to propagate exceptions to parent processes from subprocesses.
:param exception: The exception to wrap
:param exception_traceback: The stacktrace to wrap
'''
def __init__(self, exception: BaseException, exception_traceback: str):
pass | 2 | 1 | 3 | 0 | 3 | 0 | 1 | 1.25 | 0 | 2 | 0 | 0 | 1 | 2 | 1 | 1 | 11 | 2 | 4 | 4 | 2 | 5 | 4 | 4 | 2 | 1 | 0 | 0 | 1 |
7,720 | apache/airflow | apache_airflow/providers/celery/src/airflow/providers/celery/executors/celery_kubernetes_executor.py | celery.executors.celery_kubernetes_executor.CeleryKubernetesExecutor | from collections.abc import Sequence
from airflow.providers.celery.executors.celery_executor import AIRFLOW_V_3_0_PLUS, CeleryExecutor
from airflow.utils.providers_configuration_loader import providers_configuration_loaded
from deprecated import deprecated
from typing import TYPE_CHECKING, Any
from airflow.exceptions i... |
class CeleryKubernetesExecutor(BaseExecutor):
'''
CeleryKubernetesExecutor consists of CeleryExecutor and KubernetesExecutor.
It chooses an executor to use based on the queue defined on the task.
When the queue is the value of ``kubernetes_queue`` in section ``[celery_kubernetes_executor]``
of the ... | 43 | 23 | 7 | 0 | 5 | 2 | 1 | 0.33 | 1 | 16 | 5 | 0 | 27 | 3 | 28 | 68 | 274 | 45 | 174 | 89 | 106 | 58 | 106 | 52 | 76 | 4 | 2 | 3 | 35 |
7,721 | apache/airflow | apache_airflow/providers/celery/src/airflow/providers/celery/sensors/celery_queue.py | celery.sensors.celery_queue.CeleryQueueSensor | from celery.app import control
class CeleryQueueSensor(BaseSensorOperator):
"""
Waits for a Celery queue to be empty.
By default, in order to be considered empty, the queue must not have
any tasks in the ``reserved``, ``scheduled`` or ``active`` states.
:param celery_queue: The name of the Celery... |
class CeleryQueueSensor(BaseSensorOperator):
'''
Waits for a Celery queue to be empty.
By default, in order to be considered empty, the queue must not have
any tasks in the ``reserved``, ``scheduled`` or ``active`` states.
:param celery_queue: The name of the Celery queue to wait for.
:param ta... | 4 | 2 | 11 | 2 | 8 | 2 | 2 | 0.48 | 1 | 5 | 1 | 1 | 3 | 2 | 3 | 24 | 47 | 10 | 25 | 13 | 21 | 12 | 25 | 13 | 21 | 3 | 3 | 1 | 5 |
7,722 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/hooks/dbt.py | cloud.hooks.dbt.DbtCloudHook | from collections.abc import Callable, Sequence
from requests.sessions import Session
import aiohttp
import warnings
from airflow.exceptions import AirflowException
import time
from typing import TYPE_CHECKING, Any, TypedDict, TypeVar, cast
from airflow.providers.http.hooks.http import HttpHook
import asyncio
from asgir... |
class DbtCloudHook(HttpHook):
'''
Interact with dbt Cloud using the V2 (V3 if supported) API.
:param dbt_cloud_conn_id: The ID of the :ref:`dbt Cloud connection <howto/connection:dbt-cloud>`.
'''
@classmethod
def get_ui_field_behaviour(cls) -> dict[str, Any]:
'''Build custom field behav... | 57 | 27 | 18 | 2 | 11 | 6 | 2 | 0.55 | 1 | 23 | 6 | 0 | 29 | 3 | 33 | 60 | 673 | 92 | 375 | 180 | 253 | 207 | 183 | 88 | 149 | 6 | 3 | 3 | 62 |
7,723 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/hooks/dbt.py | cloud.hooks.dbt.DbtCloudJobRunException | from airflow.exceptions import AirflowException
class DbtCloudJobRunException(AirflowException):
"""An exception that indicates a job run failed to complete.""" |
class DbtCloudJobRunException(AirflowException):
'''An exception that indicates a job run failed to complete.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,724 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/hooks/dbt.py | cloud.hooks.dbt.DbtCloudJobRunStatus | from collections.abc import Callable, Sequence
from enum import Enum
class DbtCloudJobRunStatus(Enum):
"""dbt Cloud Job statuses."""
QUEUED = 1
STARTING = 2
RUNNING = 3
SUCCESS = 10
ERROR = 20
CANCELLED = 30
NON_TERMINAL_STATUSES = (QUEUED, STARTING, RUNNING)
TERMINAL_STATUSES = (SU... |
class DbtCloudJobRunStatus(Enum):
'''dbt Cloud Job statuses.'''
@classmethod
def check_is_valid(cls, statuses: int | Sequence[int] | set[int]):
'''Validate input statuses are a known value.'''
pass
@classmethod
def is_terminal(cls, status: int) -> bool:
'''Check if the input... | 5 | 3 | 6 | 1 | 5 | 1 | 2 | 0.15 | 1 | 4 | 0 | 0 | 0 | 0 | 2 | 51 | 27 | 4 | 20 | 14 | 15 | 3 | 17 | 12 | 14 | 3 | 4 | 2 | 4 |
7,725 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/hooks/dbt.py | cloud.hooks.dbt.DbtCloudResourceLookupError | from airflow.exceptions import AirflowException
class DbtCloudResourceLookupError(AirflowException):
"""Exception raised when a dbt Cloud resource cannot be uniquely identified.""" |
class DbtCloudResourceLookupError(AirflowException):
'''Exception raised when a dbt Cloud resource cannot be uniquely identified.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,726 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/hooks/dbt.py | cloud.hooks.dbt.JobRunInfo | from typing import TYPE_CHECKING, Any, TypedDict, TypeVar, cast
class JobRunInfo(TypedDict):
"""Type class for the ``job_run_info`` dictionary."""
account_id: int | None
run_id: int |
class JobRunInfo(TypedDict):
'''Type class for the ``job_run_info`` dictionary.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
7,727 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/hooks/dbt.py | cloud.hooks.dbt.TokenAuth | from requests.auth import AuthBase
class TokenAuth(AuthBase):
"""Helper class for Auth when executing requests."""
def __init__(self, token: str) -> None:
self.token = token
def __call__(self, request: PreparedRequest) -> PreparedRequest:
package_name, provider_version = _get_provider_inf... |
class TokenAuth(AuthBase):
'''Helper class for Auth when executing requests.'''
def __init__(self, token: str) -> None:
pass
def __call__(self, request: PreparedRequest) -> PreparedRequest:
pass | 3 | 1 | 5 | 1 | 4 | 0 | 1 | 0.11 | 1 | 2 | 0 | 0 | 2 | 1 | 2 | 3 | 13 | 3 | 9 | 5 | 6 | 1 | 9 | 5 | 6 | 1 | 1 | 0 | 2 |
7,728 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/operators/dbt.py | cloud.operators.dbt.DbtCloudGetJobRunArtifactOperator | from airflow.providers.dbt.cloud.hooks.dbt import DbtCloudHook, DbtCloudJobRunException, DbtCloudJobRunStatus, JobRunInfo
import json
from airflow.providers.dbt.cloud.version_compat import BaseOperator, BaseOperatorLink, XCom
from pathlib import Path
class DbtCloudGetJobRunArtifactOperator(BaseOperator):
"""
D... |
class DbtCloudGetJobRunArtifactOperator(BaseOperator):
'''
Download artifacts from a dbt Cloud job run.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:DbtCloudGetJobRunArtifactOperator`
:param dbt_cloud_conn_id: The connecti... | 3 | 1 | 18 | 1 | 17 | 0 | 2 | 0.47 | 1 | 5 | 1 | 0 | 2 | 6 | 2 | 2 | 60 | 7 | 36 | 24 | 23 | 17 | 21 | 13 | 18 | 2 | 1 | 2 | 3 |
7,729 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/operators/dbt.py | cloud.operators.dbt.DbtCloudListJobsOperator | from airflow.providers.dbt.cloud.version_compat import BaseOperator, BaseOperatorLink, XCom
from airflow.providers.dbt.cloud.hooks.dbt import DbtCloudHook, DbtCloudJobRunException, DbtCloudJobRunStatus, JobRunInfo
class DbtCloudListJobsOperator(BaseOperator):
"""
List jobs in a dbt Cloud project.
.. seeal... |
class DbtCloudListJobsOperator(BaseOperator):
'''
List jobs in a dbt Cloud project.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:DbtCloudListJobsOperator`
Retrieves metadata for all jobs tied to a specified dbt Cloud accou... | 3 | 1 | 13 | 0 | 13 | 0 | 2 | 0.43 | 1 | 6 | 1 | 0 | 2 | 4 | 2 | 2 | 49 | 6 | 30 | 21 | 19 | 13 | 17 | 13 | 14 | 3 | 1 | 2 | 4 |
7,730 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/operators/dbt.py | cloud.operators.dbt.DbtCloudRunJobOperator | from airflow.configuration import conf
from airflow.providers.dbt.cloud.hooks.dbt import DbtCloudHook, DbtCloudJobRunException, DbtCloudJobRunStatus, JobRunInfo
import warnings
from airflow.providers.dbt.cloud.triggers.dbt import DbtCloudRunJobTrigger
from airflow.providers.dbt.cloud.utils.openlineage import generate_o... |
class DbtCloudRunJobOperator(BaseOperator):
'''
Executes a dbt Cloud job.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:DbtCloudRunJobOperator`
:param dbt_cloud_conn_id: The connection ID for connecting to dbt Cloud.
:p... | 8 | 4 | 29 | 2 | 26 | 1 | 4 | 0.25 | 1 | 15 | 6 | 0 | 6 | 18 | 6 | 6 | 233 | 21 | 170 | 56 | 141 | 42 | 78 | 34 | 70 | 14 | 1 | 3 | 24 |
7,731 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/operators/dbt.py | cloud.operators.dbt.DbtCloudRunJobOperatorLink | from airflow.providers.dbt.cloud.version_compat import BaseOperator, BaseOperatorLink, XCom
class DbtCloudRunJobOperatorLink(BaseOperatorLink):
"""Allows users to monitor the triggered job run directly in dbt Cloud."""
name = 'Monitor Job Run'
def get_link(self, operator: BaseOperator, *, ti_key=None):
... |
class DbtCloudRunJobOperatorLink(BaseOperatorLink):
'''Allows users to monitor the triggered job run directly in dbt Cloud.'''
def get_link(self, operator: BaseOperator, *, ti_key=None):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.25 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 7 | 2 | 4 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
7,732 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/sensors/dbt.py | cloud.sensors.dbt.DbtCloudJobRunSensor | import time
from airflow.providers.dbt.cloud.triggers.dbt import DbtCloudRunJobTrigger
from functools import cached_property
from airflow.configuration import conf
from airflow.providers.dbt.cloud.hooks.dbt import DbtCloudHook, DbtCloudJobRunException, DbtCloudJobRunStatus
from airflow.providers.dbt.cloud.utils.openlin... |
class DbtCloudJobRunSensor(BaseSensorOperator):
'''
Checks the status of a dbt Cloud job run.
.. seealso::
For more information on how to use this sensor, take a look at the guide:
:ref:`howto/operator:DbtCloudJobRunSensor`
:param dbt_cloud_conn_id: The connection identifier for connect... | 8 | 5 | 13 | 1 | 9 | 2 | 2 | 0.4 | 1 | 12 | 6 | 0 | 6 | 6 | 6 | 27 | 97 | 17 | 57 | 26 | 41 | 23 | 37 | 15 | 30 | 4 | 3 | 3 | 14 |
7,733 | apache/airflow | apache_airflow/providers/dbt/cloud/src/airflow/providers/dbt/cloud/triggers/dbt.py | cloud.triggers.dbt.DbtCloudRunJobTrigger | import time
import asyncio
from collections.abc import AsyncIterator
from airflow.providers.dbt.cloud.hooks.dbt import DbtCloudHook, DbtCloudJobRunStatus
from airflow.triggers.base import BaseTrigger, TriggerEvent
from typing import Any
class DbtCloudRunJobTrigger(BaseTrigger):
"""
Trigger to make an HTTP call... |
class DbtCloudRunJobTrigger(BaseTrigger):
'''
Trigger to make an HTTP call to dbt and get the status for the job.
This is done with run id in polling interval of time.
:param conn_id: The connection identifier for connecting to Dbt.
:param run_id: The ID of a dbt Cloud job.
:param end_time: Tim... | 5 | 4 | 19 | 0 | 18 | 1 | 3 | 0.16 | 1 | 13 | 3 | 0 | 4 | 5 | 4 | 37 | 91 | 6 | 73 | 21 | 61 | 12 | 30 | 13 | 25 | 6 | 5 | 3 | 10 |
7,734 | apache/airflow | apache_airflow/providers/cloudant/src/airflow/providers/cloudant/cloudant_fake.py | cloudant.cloudant_fake.CloudantV1 | class CloudantV1:
"""Phony class to pass mypy when real class is not imported."""
def __init__(self, authenticator):
pass
def set_service_url(self, service_url: str):
pass | class CloudantV1:
'''Phony class to pass mypy when real class is not imported.'''
def __init__(self, authenticator):
pass
def set_service_url(self, service_url: str):
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.2 | 0 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 8 | 2 | 5 | 3 | 2 | 1 | 5 | 3 | 2 | 1 | 0 | 0 | 2 |
7,735 | apache/airflow | apache_airflow/providers/cloudant/src/airflow/providers/cloudant/cloudant_fake.py | cloudant.cloudant_fake.CouchDbSessionAuthenticator | class CouchDbSessionAuthenticator:
"""Phony class to pass mypy when real class is not imported."""
def __init__(self, username: str, password: str):
pass | class CouchDbSessionAuthenticator:
'''Phony class to pass mypy when real class is not imported.'''
def __init__(self, username: str, password: str): | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.33 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 0 | 0 | 1 |
7,736 | apache/airflow | apache_airflow/providers/cloudant/src/airflow/providers/cloudant/hooks/cloudant.py | cloudant.hooks.cloudant.CloudantHook | from typing import TYPE_CHECKING, Any
from ibmcloudant import CloudantV1, CouchDbSessionAuthenticator
from airflow.exceptions import AirflowException
from airflow.providers.cloudant.version_compat import BaseHook
class CloudantHook(BaseHook):
"""
Interact with Cloudant. This class is a thin wrapper around the ... |
class CloudantHook(BaseHook):
'''
Interact with Cloudant. This class is a thin wrapper around the cloudant python library.
.. seealso:: the latest documentation `here <https://python-cloudant.readthedocs.io/en/latest/>`_.
:param cloudant_conn_id: The connection id to authenticate and get a session obje... | 7 | 3 | 10 | 2 | 6 | 3 | 2 | 0.48 | 1 | 7 | 3 | 0 | 2 | 1 | 4 | 16 | 59 | 13 | 31 | 17 | 24 | 15 | 24 | 15 | 19 | 5 | 2 | 2 | 8 |
7,737 | apache/airflow | apache_airflow/providers/cohere/src/airflow/providers/cohere/hooks/cohere.py | cohere.hooks.cohere.CohereHook | import cohere
from airflow.exceptions import AirflowProviderDeprecationWarning
from typing import TYPE_CHECKING, Any
import warnings
from cohere.types import UserChatMessageV2
from airflow.providers.cohere.version_compat import BaseHook
class CohereHook(BaseHook):
"""
Use Cohere Python SDK to interact with Coh... |
class CohereHook(BaseHook):
'''
Use Cohere Python SDK to interact with Cohere platform using API v2.
.. seealso:: https://docs.cohere.com/docs
:param conn_id: :ref:`Cohere connection id <howto/connection:cohere>`
:param timeout: Request timeout in seconds. Optional.
:param max_retries: Maximal ... | 7 | 2 | 12 | 0 | 12 | 0 | 2 | 0.13 | 1 | 10 | 1 | 0 | 4 | 4 | 5 | 17 | 85 | 9 | 68 | 32 | 48 | 9 | 34 | 17 | 28 | 3 | 2 | 2 | 9 |
7,738 | apache/airflow | apache_airflow/providers/cohere/src/airflow/providers/cohere/operators/embedding.py | cohere.operators.embedding.CohereEmbeddingOperator | from typing import TYPE_CHECKING, Any
from functools import cached_property
from collections.abc import Sequence
from airflow.providers.cohere.version_compat import BaseOperator
from airflow.providers.cohere.hooks.cohere import CohereHook
class CohereEmbeddingOperator(BaseOperator):
"""
Creates the embedding b... |
class CohereEmbeddingOperator(BaseOperator):
'''
Creates the embedding base by interacting with cohere hosted services.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:CohereEmbeddingOperator`
:param input_text: single string... | 5 | 3 | 9 | 0 | 9 | 1 | 1 | 0.69 | 1 | 7 | 2 | 0 | 3 | 5 | 3 | 3 | 59 | 10 | 29 | 19 | 16 | 20 | 15 | 10 | 11 | 2 | 1 | 1 | 4 |
7,739 | apache/airflow | apache_airflow/providers/common/compat/src/airflow/providers/common/compat/lineage/entities.py | compat.lineage.entities.Column | from typing import Any, ClassVar
import attr
@attr.s(auto_attribs=True, kw_only=True)
class Column:
"""Column of a Table."""
name: str = attr.ib()
description: str | None = None
data_type: str = attr.ib()
tags: list[Tag] = []
template_fields: ClassVar = ('name', 'description', 'data_type', 'tag... | @attr.s(auto_attribs=True, kw_only=True)
class Column:
'''Column of a Table.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 2 | 6 | 6 | 5 | 1 | 6 | 6 | 5 | 0 | 0 | 0 | 0 |
7,740 | apache/airflow | apache_airflow/providers/common/compat/src/airflow/providers/common/compat/lineage/entities.py | compat.lineage.entities.File | import attr
from typing import Any, ClassVar
@attr.s(auto_attribs=True)
class File:
"""File entity. Refers to a file."""
template_fields: ClassVar[tuple[str, ...]] = ('url',)
url: str = attr.ib()
type_hint: str | None = None | @attr.s(auto_attribs=True)
class File:
'''File entity. Refers to a file.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 7 | 2 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 0 | 0 | 0 |
7,741 | apache/airflow | apache_airflow/providers/common/compat/src/airflow/providers/common/compat/lineage/entities.py | compat.lineage.entities.Table | import attr
from typing import Any, ClassVar
@attr.s(auto_attribs=True, kw_only=True)
class Table:
"""Table entity."""
database: str = attr.ib()
cluster: str = attr.ib()
name: str = attr.ib()
tags: list[Tag] = []
description: str | None = None
columns: list[Column] = []
owners: list[Use... | @attr.s(auto_attribs=True, kw_only=True)
class Table:
'''Table entity.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 23 | 2 | 20 | 11 | 19 | 1 | 11 | 11 | 10 | 0 | 0 | 0 | 0 |
7,742 | apache/airflow | apache_airflow/providers/common/compat/src/airflow/providers/common/compat/lineage/entities.py | compat.lineage.entities.Tag | import attr
from typing import Any, ClassVar
@attr.s(auto_attribs=True, kw_only=True)
class Tag:
"""Tag or classification entity."""
tag_name: str = attr.ib()
template_fields: ClassVar = ('tag_name',) | @attr.s(auto_attribs=True, kw_only=True)
class Tag:
'''Tag or classification entity.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 2 | 3 | 3 | 2 | 1 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
7,743 | apache/airflow | apache_airflow/providers/common/compat/src/airflow/providers/common/compat/lineage/entities.py | compat.lineage.entities.User | import attr
from typing import Any, ClassVar
@attr.s(auto_attribs=True, kw_only=True)
class User:
"""User entity. Identifies a user."""
email: str = attr.ib()
first_name: str | None = None
last_name: str | None = None
template_fields: ClassVar = ('email', 'first_name', 'last_name') | @attr.s(auto_attribs=True, kw_only=True)
class User:
'''User entity. Identifies a user.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 2 | 5 | 5 | 4 | 1 | 5 | 5 | 4 | 0 | 0 | 0 | 0 |
7,744 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/exceptions.py | databricks.exceptions.DatabricksSqlExecutionError | from airflow.exceptions import AirflowException
class DatabricksSqlExecutionError(AirflowException):
"""Raised when there is an error in sql execution.""" |
class DatabricksSqlExecutionError(AirflowException):
'''Raised when there is an error in sql execution.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,745 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/exceptions.py | databricks.exceptions.DatabricksSqlExecutionTimeout | class DatabricksSqlExecutionTimeout(DatabricksSqlExecutionError):
"""Raised when a sql execution times out.""" | class DatabricksSqlExecutionTimeout(DatabricksSqlExecutionError):
'''Raised when a sql execution times out.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
7,746 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/hooks/databricks.py | databricks.hooks.databricks.ClusterState | from airflow.exceptions import AirflowException
import json
class ClusterState:
"""Utility class for the cluster state concept of Databricks cluster."""
CLUSTER_LIFE_CYCLE_STATES = ['PENDING', 'RUNNING', 'RESTARTING', 'RESIZING', 'TERMINATING', 'TERMINATED', 'ERROR', 'UNKNOWN']
def __init__(self, state: s... |
class ClusterState:
'''Utility class for the cluster state concept of Databricks cluster.'''
def __init__(self, state: str='', state_message: str='', *args, **kwargs) -> None:
pass
@property
def is_terminal(self) -> bool:
'''True if the current state is a terminal state.'''
pas... | 11 | 3 | 3 | 0 | 3 | 0 | 1 | 0.09 | 0 | 3 | 1 | 0 | 6 | 2 | 7 | 7 | 47 | 9 | 35 | 14 | 24 | 3 | 19 | 11 | 11 | 2 | 0 | 1 | 8 |
7,747 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/hooks/databricks.py | databricks.hooks.databricks.DatabricksHook | from requests import exceptions as requests_exceptions
import json
from airflow.providers.databricks.hooks.databricks_base import BaseDatabricksHook
from airflow.exceptions import AirflowException
from typing import Any
class DatabricksHook(BaseDatabricksHook):
"""
Interact with Databricks.
:param databri... |
class DatabricksHook(BaseDatabricksHook):
'''
Interact with Databricks.
:param databricks_conn_id: Reference to the :ref:`Databricks connection <howto/connection:databricks>`.
:param timeout_seconds: The amount of time in seconds the requests library
will wait before timing-out.
:param retr... | 46 | 45 | 12 | 1 | 6 | 5 | 2 | 0.91 | 1 | 14 | 3 | 0 | 41 | 0 | 41 | 83 | 532 | 96 | 228 | 123 | 169 | 208 | 192 | 104 | 150 | 8 | 3 | 2 | 62 |
7,748 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/hooks/databricks.py | databricks.hooks.databricks.RunLifeCycleState | from enum import Enum
class RunLifeCycleState(Enum):
"""
Enum for the run life cycle state concept of Databricks runs.
See more information at: https://docs.databricks.com/api/azure/workspace/jobs/listruns#runs-state-life_cycle_state
"""
BLOCKED = 'BLOCKED'
INTERNAL_ERROR = 'INTERNAL_ERROR'
... |
class RunLifeCycleState(Enum):
'''
Enum for the run life cycle state concept of Databricks runs.
See more information at: https://docs.databricks.com/api/azure/workspace/jobs/listruns#runs-state-life_cycle_state
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 16 | 2 | 10 | 10 | 9 | 4 | 10 | 10 | 9 | 0 | 4 | 0 | 0 |
7,749 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/hooks/databricks.py | databricks.hooks.databricks.RunState | from airflow.exceptions import AirflowException
import json
class RunState:
"""Utility class for the run state concept of Databricks runs."""
RUN_LIFE_CYCLE_STATES = ['PENDING', 'RUNNING', 'TERMINATING', 'TERMINATED', 'SKIPPED', 'INTERNAL_ERROR', 'QUEUED']
def __init__(self, life_cycle_state: str, result_... |
class RunState:
'''Utility class for the run state concept of Databricks runs.'''
def __init__(self, life_cycle_state: str, result_state: str='', state_message: str='', *args, **kwargs) -> None:
pass
@property
def is_terminal(self) -> bool:
'''True if the current state is a terminal st... | 11 | 3 | 5 | 0 | 4 | 0 | 1 | 0.07 | 0 | 4 | 1 | 0 | 6 | 3 | 7 | 7 | 55 | 9 | 43 | 17 | 30 | 3 | 22 | 12 | 14 | 2 | 0 | 1 | 9 |
7,750 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/hooks/databricks_base.py | databricks.hooks.databricks_base.BaseDatabricksHook | from typing import TYPE_CHECKING, Any
import copy
from tenacity import AsyncRetrying, RetryError, Retrying, retry_if_exception, stop_after_attempt, wait_exponential
from airflow.providers_manager import ProvidersManager
import time
from requests import PreparedRequest, exceptions as requests_exceptions
from functools i... |
class BaseDatabricksHook(BaseHook):
'''
Base for interaction with Databricks.
:param databricks_conn_id: Reference to the :ref:`Databricks connection <howto/connection:databricks>`.
:param timeout_seconds: The amount of time in seconds the requests library
will wait before timing-out.
:para... | 41 | 17 | 21 | 2 | 16 | 3 | 4 | 0.2 | 1 | 24 | 5 | 2 | 25 | 9 | 30 | 42 | 719 | 91 | 525 | 152 | 462 | 104 | 356 | 111 | 320 | 12 | 2 | 4 | 116 |
7,751 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/hooks/databricks_base.py | databricks.hooks.databricks_base.BearerAuth | import aiohttp
class BearerAuth(aiohttp.BasicAuth):
"""aiohttp only ships BasicAuth, for Bearer auth we need a subclass of BasicAuth."""
def __new__(cls, token: str) -> BearerAuth:
return super().__new__(cls, token)
def __init__(self, token: str) -> None:
self.token = token
def encod... |
class BearerAuth(aiohttp.BasicAuth):
'''aiohttp only ships BasicAuth, for Bearer auth we need a subclass of BasicAuth.'''
def __new__(cls, token: str) -> BearerAuth:
pass
def __init__(self, token: str) -> None:
pass
def encode(self) -> str:
pass | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.29 | 1 | 2 | 0 | 0 | 3 | 1 | 3 | 12 | 11 | 3 | 7 | 5 | 3 | 2 | 7 | 5 | 3 | 1 | 2 | 0 | 3 |
7,752 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/hooks/databricks_base.py | databricks.hooks.databricks_base._TokenAuth | from requests import PreparedRequest, exceptions as requests_exceptions
from requests.auth import AuthBase, HTTPBasicAuth
class _TokenAuth(AuthBase):
"""
Helper class for requests Auth field.
AuthBase requires you to implement the ``__call__``
magic function.
"""
def __init__(self, token: str... |
class _TokenAuth(AuthBase):
'''
Helper class for requests Auth field.
AuthBase requires you to implement the ``__call__``
magic function.
'''
def __init__(self, token: str) -> None:
pass
def __call__(self, r: PreparedRequest) -> PreparedRequest:
pass | 3 | 1 | 3 | 0 | 3 | 0 | 1 | 0.83 | 1 | 2 | 0 | 0 | 2 | 1 | 2 | 3 | 14 | 3 | 6 | 4 | 3 | 5 | 6 | 4 | 3 | 1 | 1 | 0 | 2 |
7,753 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/hooks/databricks_sql.py | databricks.hooks.databricks_sql.DatabricksSqlHook | from databricks import sql
from sqlalchemy.engine import URL
from airflow.exceptions import AirflowException
from datetime import timedelta
from typing import TYPE_CHECKING, Any, TypeVar, cast, overload
from contextlib import closing
from databricks.sql.types import Row
from airflow.providers.databricks.exceptions impo... |
class DatabricksSqlHook(BaseDatabricksHook, DbApiHook):
'''
Hook to interact with Databricks SQL.
:param databricks_conn_id: Reference to the
:ref:`Databricks connection <howto/connection:databricks>`.
:param http_path: Optional string specifying HTTP path of Databricks SQL Endpoint or cluster.... | 20 | 7 | 21 | 2 | 18 | 3 | 4 | 0.26 | 2 | 21 | 3 | 0 | 10 | 12 | 10 | 101 | 248 | 27 | 180 | 86 | 131 | 46 | 113 | 43 | 102 | 13 | 3 | 5 | 37 |
7,754 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks.py | databricks.operators.databricks.DatabricksCreateJobsOperator | from airflow.providers.databricks.utils.databricks import extract_failed_task_errors, normalise_json_content, validate_trigger_event
from airflow.providers.databricks.hooks.databricks import DatabricksHook, RunLifeCycleState, RunState
from airflow.providers.databricks.version_compat import AIRFLOW_V_3_0_PLUS, BaseOpera... |
class DatabricksCreateJobsOperator(BaseOperator):
'''
Creates (or resets) a Databricks job using the API endpoint.
.. seealso::
https://docs.databricks.com/api/workspace/jobs/create
https://docs.databricks.com/api/workspace/jobs/reset
:param json: A JSON object containing API parameters... | 5 | 2 | 28 | 0 | 27 | 0 | 7 | 0.59 | 1 | 8 | 2 | 0 | 3 | 6 | 3 | 3 | 145 | 10 | 86 | 41 | 57 | 51 | 55 | 15 | 51 | 16 | 1 | 1 | 21 |
7,755 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks.py | databricks.operators.databricks.DatabricksJobRunLink | from airflow.providers.databricks.version_compat import AIRFLOW_V_3_0_PLUS, BaseOperator
class DatabricksJobRunLink(BaseOperatorLink):
"""Constructs a link to monitor a Databricks Job Run."""
name = 'See Databricks Job Run'
def get_link(self, operator: BaseOperator, *, ti_key: TaskInstanceKey) -> str:
... |
class DatabricksJobRunLink(BaseOperatorLink):
'''Constructs a link to monitor a Databricks Job Run.'''
def get_link(self, operator: BaseOperator, *, ti_key: TaskInstanceKey) -> str:
pass | 2 | 1 | 7 | 0 | 7 | 0 | 1 | 0.11 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 1 | 12 | 2 | 9 | 8 | 2 | 1 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
7,756 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks.py | databricks.operators.databricks.DatabricksNotebookOperator | from airflow.providers.databricks.operators.databricks_workflow import DatabricksWorkflowTaskGroup, WorkflowRunMetadata
from typing import TYPE_CHECKING, Any
from airflow.exceptions import AirflowException
from airflow.providers.databricks.version_compat import AIRFLOW_V_3_0_PLUS, BaseOperator
from airflow.configuratio... |
class DatabricksNotebookOperator(DatabricksTaskBaseOperator):
'''
Runs a notebook on Databricks using an Airflow operator.
The DatabricksNotebookOperator allows users to launch and monitor notebook job runs on Databricks as
Airflow tasks. It can be used as a part of a DatabricksWorkflowTaskGroup to tak... | 6 | 5 | 20 | 1 | 17 | 3 | 2 | 0.48 | 1 | 10 | 2 | 0 | 5 | 4 | 5 | 40 | 147 | 14 | 90 | 38 | 62 | 43 | 32 | 16 | 26 | 4 | 5 | 2 | 12 |
7,757 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks.py | databricks.operators.databricks.DatabricksRunNowOperator | from collections.abc import Sequence
from typing import TYPE_CHECKING, Any
from airflow.providers.databricks.version_compat import AIRFLOW_V_3_0_PLUS, BaseOperator
from functools import cached_property
from airflow.exceptions import AirflowException
from airflow.configuration import conf
from airflow.providers.databric... |
class DatabricksRunNowOperator(BaseOperator):
'''
Runs an existing Spark job run to Databricks using the api/2.1/jobs/run-now API endpoint.
See: https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsRunNow
There are two ways to instantiate this operator.
In the first way, you can... | 8 | 2 | 21 | 1 | 20 | 0 | 5 | 1.24 | 1 | 10 | 3 | 0 | 6 | 13 | 6 | 6 | 319 | 39 | 126 | 58 | 92 | 156 | 86 | 31 | 79 | 13 | 1 | 3 | 28 |
7,758 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks.py | databricks.operators.databricks.DatabricksSubmitRunOperator | from airflow.configuration import conf
from airflow.providers.databricks.utils.databricks import extract_failed_task_errors, normalise_json_content, validate_trigger_event
from typing import TYPE_CHECKING, Any
from airflow.providers.databricks.version_compat import AIRFLOW_V_3_0_PLUS, BaseOperator
from airflow.provider... |
class DatabricksSubmitRunOperator(BaseOperator):
'''
Submits a Spark job run to Databricks using the api/2.1/jobs/runs/submit API endpoint.
See: https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsRunsSubmit
There are three ways to instantiate this operator.
.. seealso::
... | 8 | 2 | 20 | 0 | 19 | 1 | 5 | 0.93 | 1 | 10 | 2 | 0 | 6 | 10 | 6 | 6 | 256 | 24 | 121 | 54 | 84 | 113 | 77 | 24 | 70 | 20 | 1 | 1 | 28 |
7,759 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks.py | databricks.operators.databricks.DatabricksTaskBaseOperator | import hashlib
from functools import cached_property
from airflow.exceptions import AirflowException
import time
from airflow.providers.databricks.hooks.databricks import DatabricksHook, RunLifeCycleState, RunState
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Any
from airflow.providers.databric... |
class DatabricksTaskBaseOperator(BaseOperator, ABC):
'''
Base class for operators that are run as Databricks job tasks or tasks within a Databricks workflow.
:param caller: The name of the caller operator to be used in the logs.
:param databricks_conn_id: The name of the Airflow connection to use.
... | 20 | 11 | 15 | 1 | 13 | 2 | 2 | 0.24 | 2 | 19 | 10 | 2 | 15 | 16 | 15 | 35 | 270 | 29 | 196 | 71 | 157 | 47 | 117 | 48 | 101 | 5 | 4 | 2 | 37 |
7,760 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks.py | databricks.operators.databricks.DatabricksTaskOperator | from typing import TYPE_CHECKING, Any
from airflow.configuration import conf
class DatabricksTaskOperator(DatabricksTaskBaseOperator):
"""
Runs a task on Databricks using an Airflow operator.
The DatabricksTaskOperator allows users to launch and monitor task job runs on Databricks as Airflow
tasks. It... |
class DatabricksTaskOperator(DatabricksTaskBaseOperator):
'''
Runs a task on Databricks using an Airflow operator.
The DatabricksTaskOperator allows users to launch and monitor task job runs on Databricks as Airflow
tasks. It can be used as a part of a DatabricksWorkflowTaskGroup to take advantage of j... | 3 | 2 | 19 | 1 | 18 | 1 | 1 | 0.59 | 1 | 7 | 0 | 0 | 2 | 1 | 2 | 37 | 69 | 7 | 39 | 22 | 20 | 23 | 8 | 6 | 5 | 1 | 5 | 0 | 2 |
7,761 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks_repos.py | databricks.operators.databricks_repos.DatabricksReposCreateOperator | from airflow.providers.databricks.version_compat import BaseOperator
from collections.abc import Sequence
from airflow.providers.databricks.hooks.databricks import DatabricksHook
from functools import cached_property
from urllib.parse import urlsplit
from airflow.exceptions import AirflowException
import re
class Data... |
class DatabricksReposCreateOperator(BaseOperator):
'''
Creates, and optionally checks out, a Databricks Repo using the POST api/2.0/repos API endpoint.
See: https://docs.databricks.com/dev-tools/api/latest/repos.html#operation/create-repo
:param git_url: Required HTTPS URL of a Git repository
:par... | 7 | 3 | 22 | 1 | 19 | 2 | 4 | 0.3 | 1 | 8 | 3 | 0 | 3 | 9 | 4 | 4 | 126 | 10 | 89 | 40 | 69 | 27 | 54 | 25 | 49 | 8 | 1 | 2 | 16 |
7,762 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks_repos.py | databricks.operators.databricks_repos.DatabricksReposDeleteOperator | from airflow.exceptions import AirflowException
from collections.abc import Sequence
from functools import cached_property
from airflow.providers.databricks.hooks.databricks import DatabricksHook
from airflow.providers.databricks.version_compat import BaseOperator
class DatabricksReposDeleteOperator(BaseOperator):
... |
class DatabricksReposDeleteOperator(BaseOperator):
'''
Deletes specified repository using the DELETE api/2.0/repos API endpoint.
See: https://docs.databricks.com/dev-tools/api/latest/repos.html#operation/delete-repo
:param repo_id: optional ID of existing repository. Should be specified if ``repo_path`... | 5 | 2 | 12 | 0 | 11 | 0 | 2 | 0.44 | 1 | 6 | 3 | 0 | 3 | 5 | 3 | 3 | 59 | 7 | 36 | 20 | 22 | 16 | 21 | 10 | 17 | 3 | 1 | 2 | 7 |
7,763 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks_repos.py | databricks.operators.databricks_repos.DatabricksReposUpdateOperator | from collections.abc import Sequence
from airflow.exceptions import AirflowException
from functools import cached_property
from airflow.providers.databricks.version_compat import BaseOperator
from airflow.providers.databricks.hooks.databricks import DatabricksHook
class DatabricksReposUpdateOperator(BaseOperator):
... |
class DatabricksReposUpdateOperator(BaseOperator):
'''
Updates specified repository to a given branch or tag using the PATCH api/2.0/repos API endpoint.
See: https://docs.databricks.com/dev-tools/api/latest/repos.html#operation/update-repo
:param branch: optional name of branch to update to. Should be ... | 5 | 2 | 16 | 0 | 15 | 0 | 3 | 0.37 | 1 | 6 | 3 | 0 | 3 | 7 | 3 | 3 | 74 | 7 | 49 | 26 | 33 | 18 | 31 | 14 | 27 | 5 | 1 | 2 | 10 |
7,764 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks_sql.py | databricks.operators.databricks_sql.DatabricksCopyIntoOperator | from databricks.sql.utils import ParamEscaper
from airflow.providers.databricks.version_compat import BaseOperator
from functools import cached_property
from collections.abc import Sequence
from airflow.providers.databricks.hooks.databricks_sql import DatabricksSqlHook
from airflow.exceptions import AirflowException
fr... |
class DatabricksCopyIntoOperator(BaseOperator):
'''
Executes COPY INTO command in a Databricks SQL endpoint or a Databricks cluster.
COPY INTO command is constructed from individual pieces, that are described in
`documentation <https://docs.databricks.com/sql/language-manual/delta-copy-into.html>`_.
... | 13 | 5 | 23 | 0 | 22 | 1 | 4 | 0.3 | 1 | 11 | 2 | 0 | 5 | 20 | 6 | 6 | 194 | 11 | 141 | 74 | 103 | 42 | 83 | 43 | 76 | 13 | 1 | 3 | 26 |
7,765 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks_sql.py | databricks.operators.databricks_sql.DatabricksSqlOperator | from collections.abc import Sequence
from functools import cached_property
import json
from airflow.exceptions import AirflowException
from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator
from typing import TYPE_CHECKING, Any, ClassVar
from airflow.providers.databricks.hooks.databricks_sql imp... |
class DatabricksSqlOperator(SQLExecuteQueryOperator):
'''
Executes SQL code in a Databricks SQL endpoint or a Databricks cluster.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:DatabricksSqlOperator`
:param databricks_conn_i... | 7 | 1 | 20 | 0 | 20 | 0 | 4 | 0.33 | 1 | 12 | 2 | 0 | 4 | 12 | 4 | 16 | 124 | 8 | 87 | 45 | 67 | 29 | 55 | 29 | 50 | 12 | 3 | 3 | 16 |
7,766 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks_workflow.py | databricks.operators.databricks_workflow.DatabricksWorkflowTaskGroup | from typing import TYPE_CHECKING, Any
from airflow.exceptions import AirflowException
class DatabricksWorkflowTaskGroup(TaskGroup):
"""
A task group that takes a list of tasks and creates a databricks workflow.
The DatabricksWorkflowTaskGroup takes a list of tasks and creates a databricks workflow
bas... | null | 3 | 2 | 32 | 3 | 29 | 1 | 3 | 0.5 | 1 | 10 | 2 | 0 | 2 | 12 | 2 | 2 | 101 | 11 | 60 | 37 | 41 | 30 | 28 | 20 | 25 | 4 | 1 | 2 | 5 |
7,767 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks_workflow.py | databricks.operators.databricks_workflow.WorkflowRunMetadata | from dataclasses import dataclass
@dataclass
class WorkflowRunMetadata:
"""
Metadata for a Databricks workflow run.
:param run_id: The ID of the Databricks workflow run.
:param job_id: The ID of the Databricks workflow job.
:param conn_id: The connection ID used to connect to Databricks.
"""
... | @dataclass
class WorkflowRunMetadata:
'''
Metadata for a Databricks workflow run.
:param run_id: The ID of the Databricks workflow run.
:param job_id: The ID of the Databricks workflow job.
:param conn_id: The connection ID used to connect to Databricks.
'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 2 | 4 | 1 | 3 | 6 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
7,768 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/operators/databricks_workflow.py | databricks.operators.databricks_workflow._CreateDatabricksWorkflowOperator | from airflow.providers.databricks.version_compat import AIRFLOW_V_3_0_PLUS, BaseOperator
import json
from functools import cached_property
from mergedeep import merge
from airflow.providers.databricks.hooks.databricks import DatabricksHook, RunLifeCycleState
from typing import TYPE_CHECKING, Any
import time
from airflo... | null | 13 | 3 | 14 | 1 | 13 | 0 | 2 | 0.14 | 1 | 12 | 5 | 0 | 10 | 10 | 10 | 10 | 172 | 19 | 135 | 49 | 110 | 19 | 66 | 35 | 55 | 3 | 1 | 1 | 17 |
7,769 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/plugins/databricks_workflow.py | databricks.plugins.databricks_workflow.DatabricksWorkflowPlugin | from airflow.plugins_manager import AirflowPlugin
from airflow.providers.databricks.version_compat import AIRFLOW_V_3_0_PLUS, BaseOperatorLink, TaskGroup, XCom
class DatabricksWorkflowPlugin(AirflowPlugin):
"""
Databricks Workflows plugin for Airflow.
.. seealso::
For more information on how to us... |
class DatabricksWorkflowPlugin(AirflowPlugin):
'''
Databricks Workflows plugin for Airflow.
.. seealso::
For more information on how to use this plugin, take a look at the guide:
:ref:`howto/plugin:DatabricksWorkflowPlugin`
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 16 | 2 | 8 | 4 | 7 | 6 | 4 | 4 | 3 | 0 | 1 | 0 | 0 |
7,770 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/plugins/databricks_workflow.py | databricks.plugins.databricks_workflow.RepairDatabricksTasks | from urllib.parse import unquote
from flask_appbuilder.api import expose
from airflow.utils.log.logging_mixin import LoggingMixin
from flask import flash, redirect, request, url_for
from flask_appbuilder import BaseView
class RepairDatabricksTasks(BaseView, LoggingMixin):
"""Repair databricks tasks from Airflow.""... |
class RepairDatabricksTasks(BaseView, LoggingMixin):
'''Repair databricks tasks from Airflow.'''
@expose('/repair_databricks_job/<string:dag_id>/<string:run_id>', methods=('GET',))
@get_auth_decorator()
def repair(self, dag_id: str, run_id: str):
pass
@staticmethod
def _get_return_url(d... | 6 | 1 | 19 | 4 | 15 | 0 | 3 | 0.03 | 2 | 2 | 0 | 0 | 1 | 0 | 2 | 9 | 46 | 10 | 35 | 11 | 29 | 1 | 27 | 9 | 24 | 4 | 2 | 1 | 5 |
7,771 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/plugins/databricks_workflow.py | databricks.plugins.databricks_workflow.WorkflowJobRepairAllFailedLink | from airflow.models.dagrun import DagRun
from airflow.providers.databricks.version_compat import AIRFLOW_V_3_0_PLUS, BaseOperatorLink, TaskGroup, XCom
from airflow.utils.log.logging_mixin import LoggingMixin
from airflow.models.taskinstance import TaskInstance, TaskInstanceKey, clear_task_instances
from airflow.excepti... |
class WorkflowJobRepairAllFailedLink(BaseOperatorLink, LoggingMixin):
'''Constructs a link to send a request to repair all failed tasks in the Databricks workflow.'''
def get_link(self, operator, dttm=None, *, ti_key: TaskInstanceKey | None=None) -> str:
pass
@classmethod
def get_task_group_ch... | 7 | 3 | 20 | 2 | 16 | 3 | 2 | 0.18 | 2 | 9 | 4 | 0 | 2 | 0 | 4 | 10 | 91 | 14 | 66 | 28 | 53 | 12 | 37 | 20 | 32 | 3 | 1 | 2 | 9 |
7,772 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/plugins/databricks_workflow.py | databricks.plugins.databricks_workflow.WorkflowJobRepairSingleTaskLink | from flask import flash, redirect, request, url_for
from airflow.utils.log.logging_mixin import LoggingMixin
from airflow.models.taskinstance import TaskInstance, TaskInstanceKey, clear_task_instances
from typing import TYPE_CHECKING, Any
from airflow.exceptions import AirflowException, TaskInstanceNotFound
from airflo... |
class WorkflowJobRepairSingleTaskLink(BaseOperatorLink, LoggingMixin):
'''Construct a link to send a repair request for a single databricks task.'''
def get_link(self, operator, dttm=None, *, ti_key: TaskInstanceKey | None=None) -> str:
pass | 2 | 1 | 36 | 4 | 32 | 0 | 4 | 0.03 | 2 | 3 | 2 | 0 | 1 | 0 | 1 | 7 | 41 | 6 | 34 | 16 | 26 | 1 | 18 | 10 | 16 | 4 | 1 | 1 | 4 |
7,773 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/plugins/databricks_workflow.py | databricks.plugins.databricks_workflow.WorkflowJobRunLink | from airflow.providers.databricks.hooks.databricks import DatabricksHook
from airflow.models.taskinstance import TaskInstance, TaskInstanceKey, clear_task_instances
from airflow.utils.log.logging_mixin import LoggingMixin
from airflow.exceptions import AirflowException, TaskInstanceNotFound
from airflow.providers.datab... |
class WorkflowJobRunLink(BaseOperatorLink, LoggingMixin):
'''Constructs a link to monitor a Databricks Job Run.'''
@property
def xcom_key(self) -> str:
'''XCom key where the link is stored during task execution.'''
pass
def get_link(self, operator: BaseOperator, dttm=None, *, ti_key: T... | 5 | 3 | 26 | 3 | 23 | 1 | 4 | 0.08 | 2 | 4 | 3 | 0 | 1 | 0 | 1 | 7 | 31 | 5 | 25 | 15 | 17 | 2 | 19 | 9 | 17 | 4 | 1 | 1 | 4 |
7,774 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/sensors/databricks_partition.py | databricks.sensors.databricks_partition.DatabricksPartitionSensor | from airflow.providers.databricks.hooks.databricks_sql import DatabricksSqlHook
from functools import cached_property
from collections.abc import Callable, Sequence
from airflow.exceptions import AirflowException
from airflow.providers.common.sql.hooks.handlers import fetch_all_handler
from databricks.sql.utils import ... |
class DatabricksPartitionSensor(BaseSensorOperator):
'''
Sensor to detect the presence of table partitions in Databricks.
:param databricks_conn_id: Reference to :ref:`Databricks
connection id<howto/connection:databricks>` (templated), defaults to
DatabricksSqlHook.default_conn_name.
:p... | 8 | 6 | 24 | 1 | 20 | 3 | 3 | 0.32 | 1 | 14 | 3 | 0 | 6 | 15 | 6 | 27 | 189 | 13 | 133 | 64 | 101 | 43 | 72 | 39 | 65 | 9 | 3 | 4 | 17 |
7,775 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/sensors/databricks_sql.py | databricks.sensors.databricks_sql.DatabricksSqlSensor | from airflow.providers.common.sql.hooks.handlers import fetch_all_handler
from airflow.exceptions import AirflowException
from collections.abc import Callable, Iterable, Sequence
from airflow.providers.databricks.hooks.databricks_sql import DatabricksSqlHook
from functools import cached_property
from typing import TYPE... |
class DatabricksSqlSensor(BaseSensorOperator):
'''
Sensor that runs a SQL query on Databricks.
:param databricks_conn_id: Reference to :ref:`Databricks
connection id<howto/connection:databricks>` (templated), defaults to
DatabricksSqlHook.default_conn_name.
:param sql_warehouse_name: Op... | 6 | 5 | 15 | 0 | 14 | 1 | 2 | 0.38 | 1 | 11 | 3 | 0 | 4 | 12 | 4 | 25 | 101 | 7 | 68 | 38 | 48 | 26 | 30 | 23 | 25 | 3 | 3 | 1 | 6 |
7,776 | apache/airflow | apache_airflow/providers/databricks/src/airflow/providers/databricks/triggers/databricks.py | databricks.triggers.databricks.DatabricksExecutionTrigger | import asyncio
from typing import Any
from airflow.triggers.base import BaseTrigger, TriggerEvent
from airflow.providers.databricks.utils.databricks import extract_failed_task_errors_async
from airflow.providers.databricks.hooks.databricks import DatabricksHook
class DatabricksExecutionTrigger(BaseTrigger):
"""
... |
class DatabricksExecutionTrigger(BaseTrigger):
'''
The trigger handles the logic of async communication with DataBricks API.
:param run_id: id of the run
:param databricks_conn_id: Reference to the :ref:`Databricks connection <howto/connection:databricks>`.
:param polling_period_seconds: Controls t... | 4 | 1 | 26 | 0 | 26 | 0 | 3 | 0.14 | 1 | 9 | 2 | 0 | 3 | 9 | 3 | 36 | 95 | 5 | 79 | 32 | 64 | 11 | 36 | 21 | 32 | 7 | 5 | 6 | 9 |
7,777 | apache/airflow | apache_airflow/providers/datadog/src/airflow/providers/datadog/hooks/datadog.py | datadog.hooks.datadog.DatadogHook | from datadog import api, initialize
from airflow.providers.datadog.version_compat import BaseHook
from typing import Any
from airflow.utils.log.logging_mixin import LoggingMixin
from airflow.exceptions import AirflowException
import time
class DatadogHook(BaseHook, LoggingMixin):
"""
Uses datadog API to send m... |
class DatadogHook(BaseHook, LoggingMixin):
'''
Uses datadog API to send metrics of practically anything measurable.
It's possible to track # of db records inserted/deleted, records read
from file and many other useful metrics.
Depends on the datadog API, which has to be deployed on the same server ... | 10 | 7 | 18 | 2 | 11 | 5 | 1 | 0.52 | 2 | 8 | 1 | 0 | 5 | 5 | 7 | 19 | 152 | 23 | 85 | 46 | 53 | 44 | 41 | 25 | 30 | 2 | 2 | 1 | 9 |
7,778 | apache/airflow | apache_airflow/providers/datadog/src/airflow/providers/datadog/sensors/datadog.py | datadog.sensors.datadog.DatadogSensor | from typing import TYPE_CHECKING, Any
from collections.abc import Callable
from datadog import api
from airflow.providers.datadog.version_compat import BaseSensorOperator
from airflow.providers.datadog.hooks.datadog import DatadogHook
from airflow.exceptions import AirflowException
class DatadogSensor(BaseSensorOperat... |
class DatadogSensor(BaseSensorOperator):
'''
A sensor to listen, with a filter, to datadog event streams and determine if some event was emitted.
Depends on the datadog API, which has to be deployed on the same server where Airflow runs.
:param datadog_conn_id: The connection to datadog, containing met... | 3 | 1 | 23 | 2 | 18 | 3 | 2 | 0.61 | 1 | 10 | 3 | 0 | 2 | 7 | 2 | 23 | 69 | 9 | 38 | 24 | 24 | 23 | 21 | 13 | 18 | 3 | 3 | 1 | 4 |
7,779 | apache/airflow | apache_airflow/dev/assign_cherry_picked_prs_with_milestone.py | dev.assign_cherry_picked_prs_with_milestone.Change | from typing import TYPE_CHECKING, Any, NamedTuple, cast
class Change(NamedTuple):
"""Stores details about commits"""
full_hash: str
short_hash: str
date: str
message: str
message_without_backticks: str
pr: int | None |
class Change(NamedTuple):
'''Stores details about commits'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 1 | 7 | 1 | 6 | 1 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
7,780 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/commands/ci_commands.py | dev.breeze.src.airflow_breeze.commands.ci_commands.WorkflowInfo | import sys
from typing import Any, NamedTuple
from collections.abc import Iterable
from airflow_breeze.global_constants import DEFAULT_PYTHON_MAJOR_MINOR_VERSION, PUBLIC_AMD_RUNNERS, GithubEvents, github_events
from airflow_breeze.utils.console import get_console
class WorkflowInfo(NamedTuple):
event_name: str
... |
class WorkflowInfo(NamedTuple):
def get_all_ga_outputs(self) -> Iterable[str]:
pass
def print_all_ga_outputs(self):
pass
def get_runs_on(self) -> str:
pass
def is_canary_run(self) -> str:
pass
def run_coverage(self) -> str:
pass | 6 | 0 | 9 | 0 | 9 | 0 | 3 | 0 | 1 | 3 | 1 | 0 | 5 | 0 | 5 | 5 | 59 | 6 | 53 | 9 | 46 | 0 | 39 | 9 | 32 | 4 | 1 | 2 | 13 |
7,781 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/commands/developer_commands.py | dev.breeze.src.airflow_breeze.commands.developer_commands.TimerThread | import os
from airflow_breeze.utils.console import get_console
from time import sleep
import threading
from signal import SIGTERM
class TimerThread(threading.Thread):
def __init__(self, max_time: int):
super().__init__(daemon=True)
self.max_time = max_time
def run(self):
get_console()... |
class TimerThread(threading.Thread):
def __init__(self, max_time: int):
pass
def run(self):
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 2 | 1 | 2 | 27 | 10 | 1 | 9 | 4 | 6 | 0 | 9 | 4 | 6 | 1 | 1 | 0 | 2 |
7,782 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/commands/main_command.py | dev.breeze.src.airflow_breeze.commands.main_command.MainGroupWithAliases | import sys
from airflow_breeze.utils.click_utils import BreezeGroup
from airflow_breeze.configure_rich_click import click
class MainGroupWithAliases(BreezeGroup):
def get_command(self, ctx: Context, cmd_name: str):
rv = click.Group.get_command(self, ctx, cmd_name)
if rv is not None:
re... |
class MainGroupWithAliases(BreezeGroup):
def get_command(self, ctx: Context, cmd_name: str):
pass | 2 | 0 | 31 | 2 | 26 | 3 | 9 | 0.11 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 32 | 2 | 27 | 4 | 24 | 3 | 27 | 4 | 24 | 9 | 1 | 1 | 9 |
7,783 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/commands/release_management_commands.py | dev.breeze.src.airflow_breeze.commands.release_management_commands.Change | from datetime import date, datetime
from typing import IO, TYPE_CHECKING, Any, Literal, NamedTuple
class Change(NamedTuple):
"""Stores details about commits"""
full_hash: str
short_hash: str
date: str
message: str
message_without_backticks: str
pr: int | None |
class Change(NamedTuple):
'''Stores details about commits'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 1 | 7 | 1 | 6 | 1 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
7,784 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/commands/release_management_commands.py | dev.breeze.src.airflow_breeze.commands.release_management_commands.DistributionPackageInfo | from typing import IO, TYPE_CHECKING, Any, Literal, NamedTuple
from pathlib import Path
class DistributionPackageInfo(NamedTuple):
filepath: Path
package: str
version: Version
dist_type: Literal['sdist', 'wheel']
@classmethod
def from_sdist(cls, filepath: Path) -> DistributionPackageInfo:
... |
class DistributionPackageInfo(NamedTuple):
@classmethod
def from_sdist(cls, filepath: Path) -> DistributionPackageInfo:
pass
@classmethod
def from_wheel(cls, filepath: Path) -> DistributionPackageInfo:
pass
@classmethod
def dist_packages(cls, *, distribution_format: str, dist_d... | 8 | 0 | 10 | 1 | 10 | 0 | 3 | 0 | 1 | 3 | 0 | 0 | 1 | 0 | 4 | 4 | 53 | 6 | 47 | 21 | 31 | 0 | 32 | 12 | 25 | 9 | 1 | 3 | 12 |
7,785 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/commands/release_management_commands.py | dev.breeze.src.airflow_breeze.commands.release_management_commands.VersionedFile | from typing import IO, TYPE_CHECKING, Any, Literal, NamedTuple
class VersionedFile(NamedTuple):
base: str
version: str
suffix: str
type: str
comparable_version: Version
file_name: str |
class VersionedFile(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
7,786 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/global_constants.py | dev.breeze.src.airflow_breeze.global_constants.GithubEvents | from enum import Enum
class GithubEvents(Enum):
PULL_REQUEST = 'pull_request'
PULL_REQUEST_REVIEW = 'pull_request_review'
PULL_REQUEST_TARGET = 'pull_request_target'
PULL_REQUEST_WORKFLOW = 'pull_request_workflow'
PUSH = 'push'
SCHEDULE = 'schedule'
WORKFLOW_DISPATCH = 'workflow_dispatch'
... |
class GithubEvents(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 9 | 0 | 9 | 9 | 8 | 0 | 9 | 9 | 8 | 0 | 4 | 0 | 0 |
7,787 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/global_constants.py | dev.breeze.src.airflow_breeze.global_constants.GroupOfTests | from enum import Enum
class GroupOfTests(Enum):
CORE = 'core'
PROVIDERS = 'providers'
TASK_SDK = 'task-sdk'
TASK_SDK_INTEGRATION = 'task-sdk-integration'
CTL = 'airflow-ctl'
HELM = 'helm'
INTEGRATION_CORE = 'integration-core'
INTEGRATION_PROVIDERS = 'integration-providers'
SYSTEM = ... |
class GroupOfTests(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 9 | 0 | 9 | 9 | 8 | 0 | 9 | 9 | 8 | 0 | 4 | 0 | 0 |
7,788 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/global_constants.py | dev.breeze.src.airflow_breeze.global_constants.SelectiveCoreTestType | class SelectiveCoreTestType(SelectiveTestType):
ALWAYS = 'Always'
API = 'API'
CLI = 'CLI'
CORE = 'Core'
SERIALIZATION = 'Serialization'
OTHER = 'Other' | class SelectiveCoreTestType(SelectiveTestType):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 9 | 0 | 9 | 9 | 8 | 0 | 9 | 9 | 8 | 0 | 5 | 0 | 0 |
7,789 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/global_constants.py | dev.breeze.src.airflow_breeze.global_constants.SelectiveProvidersTestType | class SelectiveProvidersTestType(SelectiveTestType):
PROVIDERS = 'Providers' | class SelectiveProvidersTestType(SelectiveTestType):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
7,790 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/global_constants.py | dev.breeze.src.airflow_breeze.global_constants.SelectiveTaskSdkTestType | class SelectiveTaskSdkTestType(SelectiveTestType):
TASK_SDK = 'TaskSdk' | class SelectiveTaskSdkTestType(SelectiveTestType):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 5 | 0 | 0 |
7,791 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/global_constants.py | dev.breeze.src.airflow_breeze.global_constants.SelectiveTestType | from enum import Enum
class SelectiveTestType(Enum):
pass |
class SelectiveTestType(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 0 | 0 | 49 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
7,792 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/params/build_ci_params.py | dev.breeze.src.airflow_breeze.params.build_ci_params.BuildCiParams | from airflow_breeze.params.common_build_params import CommonBuildParams
from dataclasses import dataclass
from airflow_breeze.branch_defaults import DEFAULT_AIRFLOW_CONSTRAINTS_BRANCH
from airflow_breeze.global_constants import ALL_PYTHON_VERSION_TO_PATCHLEVEL_VERSION
from pathlib import Path
import random
from airflow... | @dataclass
class BuildCiParams(CommonBuildParams):
'''
CI build parameters. Those parameters are used to determine command issued to build CI image.
'''
@property
def airflow_version(self):
pass
@property
def image_type(self) -> str:
pass
@property
def md5sum_cache_di... | 10 | 1 | 11 | 0 | 9 | 1 | 2 | 0.13 | 1 | 3 | 0 | 0 | 5 | 2 | 5 | 24 | 77 | 7 | 62 | 24 | 52 | 8 | 56 | 21 | 49 | 4 | 1 | 2 | 8 |
7,793 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/params/build_prod_params.py | dev.breeze.src.airflow_breeze.params.build_prod_params.BuildProdParams | import sys
import re
from airflow_breeze.utils.console import get_console
from dataclasses import dataclass, field
import json
from airflow_breeze.params.common_build_params import CommonBuildParams
from airflow_breeze.branch_defaults import AIRFLOW_BRANCH, DEFAULT_AIRFLOW_CONSTRAINTS_BRANCH
from airflow_breeze.global_... | @dataclass
class BuildProdParams(CommonBuildParams):
'''
PROD build parameters. Those parameters are used to determine command issued to build PROD image.
'''
@property
def airflow_version(self) -> str:
pass
@property
def airflow_semver_version(self) -> str:
'''The airflow ve... | 22 | 2 | 17 | 0 | 16 | 1 | 3 | 0.05 | 1 | 3 | 0 | 0 | 11 | 3 | 11 | 30 | 232 | 15 | 208 | 54 | 185 | 10 | 125 | 45 | 111 | 10 | 1 | 2 | 29 |
7,794 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/params/common_build_params.py | dev.breeze.src.airflow_breeze.params.common_build_params.CommonBuildParams | from datetime import datetime
import os
from airflow_breeze.utils.console import get_console
from dataclasses import dataclass, field
from typing import Any
from airflow_breeze.branch_defaults import AIRFLOW_BRANCH, DEFAULT_AIRFLOW_CONSTRAINTS_BRANCH
from airflow_breeze.utils.platforms import get_normalized_platform
im... | @dataclass
class CommonBuildParams:
'''
Common build parameters. Those parameters are common parameters for CI And PROD build.
'''
@property
def airflow_version(self):
pass
@property
def build_id(self) -> str:
pass
@property
def image_type(self) -> str:
pass
... | 34 | 3 | 4 | 0 | 4 | 0 | 2 | 0.05 | 0 | 9 | 0 | 2 | 19 | 0 | 19 | 19 | 153 | 21 | 126 | 75 | 94 | 6 | 105 | 64 | 84 | 6 | 0 | 2 | 31 |
7,795 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/params/doc_build_params.py | dev.breeze.src.airflow_breeze.params.doc_build_params.DocBuildParams | from dataclasses import dataclass
import os
@dataclass
class DocBuildParams:
package_filter: tuple[str, ...]
docs_only: bool
spellcheck_only: bool
short_doc_packages: tuple[str, ...]
one_pass_only: bool = False
include_commits: bool = False
github_actions = os.environ.get('GITHUB_ACTIONS', ... | @dataclass
class DocBuildParams:
@property
def args_doc_builder(self) -> list[str]:
pass | 4 | 0 | 19 | 0 | 19 | 0 | 10 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 29 | 1 | 28 | 8 | 25 | 0 | 27 | 7 | 25 | 10 | 0 | 2 | 10 |
7,796 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/params/shell_params.py | dev.breeze.src.airflow_breeze.params.shell_params.ShellParams | from airflow_breeze.utils.host_info_utils import get_host_group_id, get_host_os, get_host_user_id
from airflow_breeze.utils.path_utils import AIRFLOW_ROOT_PATH, BUILD_CACHE_PATH, GENERATED_DOCKER_COMPOSE_ENV_PATH, GENERATED_DOCKER_ENV_PATH, GENERATED_DOCKER_LOCK_PATH, SCRIPTS_CI_PATH
from airflow_breeze.branch_defaults... | null | 50 | 5 | 18 | 1 | 15 | 2 | 3 | 0.13 | 0 | 8 | 2 | 0 | 24 | 0 | 25 | 25 | 585 | 51 | 472 | 158 | 424 | 62 | 373 | 138 | 345 | 25 | 0 | 4 | 76 |
7,797 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/utils/cdxgen.py | dev.breeze.src.airflow_breeze.utils.cdxgen.SbomApplicationJob | from dataclasses import dataclass
from pathlib import Path
from airflow_breeze.utils.console import Output, get_console
from abc import abstractmethod
@dataclass
class SbomApplicationJob:
python_version: str | None
target_path: Path
@abstractmethod
def produce(self, output: Output | None, port: int, g... | @dataclass
class SbomApplicationJob:
@abstractmethod
def produce(self, output: Output | None, port: int, github_token: str | None) -> tuple[int, str]:
pass
@abstractmethod
def get_job_name(self) -> str:
pass | 6 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 5 | 1 | 2 | 2 | 0 | 2 | 2 | 11 | 2 | 9 | 5 | 4 | 0 | 7 | 3 | 4 | 1 | 0 | 0 | 2 |
7,798 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/utils/cdxgen.py | dev.breeze.src.airflow_breeze.utils.cdxgen.SbomCoreJob | from airflow_breeze.utils.github import download_constraints_file, download_file_from_github
from pathlib import Path
from dataclasses import dataclass
from airflow_breeze.utils.shared_options import get_dry_run
from airflow_breeze.utils.console import Output, get_console
@dataclass
class SbomCoreJob(SbomApplicationJo... | @dataclass
class SbomCoreJob(SbomApplicationJob):
def get_job_name(self) -> str:
pass
def get_files_directory(self, root_path: Path):
pass
def download_dependency_files(self, output: Output | None, github_token: str | None) -> bool:
pass
def produce(self, output: Output | Non... | 6 | 0 | 26 | 1 | 25 | 0 | 6 | 0 | 1 | 6 | 1 | 0 | 4 | 1 | 4 | 6 | 114 | 9 | 105 | 15 | 99 | 0 | 68 | 14 | 62 | 8 | 1 | 3 | 22 |
7,799 | apache/airflow | apache_airflow/dev/breeze/src/airflow_breeze/utils/cdxgen.py | dev.breeze.src.airflow_breeze.utils.cdxgen.SbomProviderJob | from airflow_breeze.utils.console import Output, get_console
from dataclasses import dataclass
from airflow_breeze.utils.shared_options import get_dry_run
@dataclass
class SbomProviderJob(SbomApplicationJob):
provider_id: str
provider_version: str
folder_name: str
def get_job_name(self) -> str:
... | @dataclass
class SbomProviderJob(SbomApplicationJob):
def get_job_name(self) -> str:
pass
def produce(self, output: Output | None, port: int, github_token: str | None) -> tuple[int, str]:
pass | 4 | 0 | 19 | 2 | 17 | 0 | 2 | 0 | 1 | 4 | 1 | 0 | 2 | 0 | 2 | 4 | 44 | 6 | 38 | 6 | 34 | 0 | 20 | 6 | 16 | 3 | 1 | 2 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.