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
9,000
apache/airflow
apache_airflow/providers/openlineage/src/airflow/providers/openlineage/utils/sql.py
openlineage.utils.sql.TableSchema
from openlineage.client.facet_v2 import schema_dataset from attrs import define from openlineage.client.event_v2 import Dataset @define class TableSchema: """Temporary object used to construct OpenLineage Dataset.""" table: str schema: str | None database: str | None fields: list[schema_dataset.Sch...
@define class TableSchema: '''Temporary object used to construct OpenLineage Dataset.''' def to_dataset(self, namespace: str, database: str | None=None, schema: str | None=None) -> Dataset: pass
3
1
13
0
11
2
2
0.19
0
1
0
0
1
0
1
1
21
2
16
3
14
3
8
3
6
2
0
0
2
9,001
apache/airflow
apache_airflow/providers/openlineage/src/airflow/providers/openlineage/utils/utils.py
openlineage.utils.utils.AssetInfo
class AssetInfo(InfoJsonEncodable): """Defines encoding Airflow Asset object to JSON.""" includes = ['uri', 'extra']
class AssetInfo(InfoJsonEncodable): '''Defines encoding Airflow Asset object to JSON.''' pass
1
1
0
0
0
0
0
0.5
1
0
0
0
0
0
0
32
4
1
2
2
1
1
2
2
1
0
3
0
0
9,002
apache/airflow
apache_airflow/providers/openlineage/src/airflow/providers/openlineage/utils/utils.py
openlineage.utils.utils.DagInfo
from typing import TYPE_CHECKING, Any class DagInfo(InfoJsonEncodable): """Defines encoding DAG object to JSON.""" includes = ['dag_id', 'description', 'fileloc', 'owner', 'owner_links', 'schedule_interval', 'timetable_summary', 'start_date', 'tags'] casts = {'timetable': lambda dag: DagInfo.serialize_time...
class DagInfo(InfoJsonEncodable): '''Defines encoding DAG object to JSON.''' @classmethod def serialize_timetable(cls, dag: DAG) -> dict[str, Any]: pass def _serialize_ds(ds: BaseDatasetEventInput) -> dict[str, Any]: pass
4
1
20
0
20
0
3
0.09
1
4
1
0
0
0
1
33
37
2
34
8
31
3
12
7
10
3
3
1
3
9,003
apache/airflow
apache_airflow/providers/openlineage/src/airflow/providers/openlineage/utils/utils.py
openlineage.utils.utils.DagRunInfo
import datetime from airflow.models import DagRun, TaskReschedule class DagRunInfo(InfoJsonEncodable): """Defines encoding DagRun object to JSON.""" includes = ['conf', 'dag_id', 'data_interval_start', 'data_interval_end', 'external_trigger', 'logical_date', 'run_after', 'run_id', 'run_type', 'start_date', 'en...
class DagRunInfo(InfoJsonEncodable): '''Defines encoding DagRun object to JSON.''' @classmethod def duration(cls, dagrun: DagRun) -> float | None: pass @classmethod def dag_version_info(cls, dagrun: DagRun, key: str) -> str | int | None: pass
5
1
0
0
0
0
0
0.09
1
0
0
0
0
0
0
32
13
1
11
2
10
1
2
2
1
0
3
0
0
9,004
apache/airflow
apache_airflow/providers/openlineage/src/airflow/providers/openlineage/utils/utils.py
openlineage.utils.utils.InfoJsonEncodable
from typing import TYPE_CHECKING, Any import datetime import attrs class InfoJsonEncodable(dict): """ Airflow objects might not be json-encodable overall. The class provides additional attributes to control what and how is encoded: * renames: a dictionary of attribute name changes * | casts: ...
class InfoJsonEncodable(dict): ''' Airflow objects might not be json-encodable overall. The class provides additional attributes to control what and how is encoded: * renames: a dictionary of attribute name changes * | casts: a dictionary consisting of attribute names | and corresponding ...
7
1
11
0
11
0
4
0.22
1
8
0
10
4
2
5
32
81
10
59
18
52
13
46
17
40
9
2
3
19
9,005
apache/airflow
apache_airflow/providers/openlineage/src/airflow/providers/openlineage/utils/utils.py
openlineage.utils.utils.OpenLineageRedactor
from airflow.providers.openlineage.version_compat import AIRFLOW_V_3_0_PLUS, get_base_airflow_version_tuple import attrs from contextlib import suppress class OpenLineageRedactor(SecretsMasker): """ This class redacts sensitive data similar to SecretsMasker in Airflow logs. The difference is that our defa...
class OpenLineageRedactor(SecretsMasker): ''' This class redacts sensitive data similar to SecretsMasker in Airflow logs. The difference is that our default max recursion depth is way higher - due to the structure of OL events we need more depth. Additionally, we allow data structures to specify da...
6
2
29
0
26
3
7
0.24
1
7
1
0
1
0
2
15
69
3
54
7
50
13
30
5
27
12
3
5
13
9,006
apache/airflow
apache_airflow/providers/openlineage/src/airflow/providers/openlineage/utils/utils.py
openlineage.utils.utils.TaskGroupInfo
class TaskGroupInfo(InfoJsonEncodable): """Defines encoding TaskGroup object to JSON.""" renames = {'_group_id': 'group_id'} includes = ['downstream_group_ids', 'downstream_task_ids', 'prefix_group_id', 'tooltip', 'upstream_group_ids', 'upstream_task_ids']
class TaskGroupInfo(InfoJsonEncodable): '''Defines encoding TaskGroup object to JSON.''' pass
1
1
0
0
0
0
0
0.08
1
0
0
0
0
0
0
32
14
1
12
3
11
1
3
3
2
0
3
0
0
9,007
apache/airflow
apache_airflow/providers/openlineage/src/airflow/providers/openlineage/utils/utils.py
openlineage.utils.utils.TaskInfo
class TaskInfo(InfoJsonEncodable): """Defines encoding BaseOperator/AbstractOperator object to JSON.""" renames = {'_BaseOperator__from_mapped': 'mapped', '_downstream_task_ids': 'downstream_task_ids', '_upstream_task_ids': 'upstream_task_ids', '_is_setup': 'is_setup', '_is_teardown': 'is_teardown'} include...
class TaskInfo(InfoJsonEncodable): '''Defines encoding BaseOperator/AbstractOperator object to JSON.''' pass
1
1
0
0
0
0
0
0.02
1
3
3
1
0
0
0
32
49
1
47
4
46
1
4
4
3
0
3
0
0
9,008
apache/airflow
apache_airflow/providers/openlineage/src/airflow/providers/openlineage/utils/utils.py
openlineage.utils.utils.TaskInfoComplete
class TaskInfoComplete(TaskInfo): """Defines encoding BaseOperator/AbstractOperator object to JSON used when user enables full task info.""" includes = [] excludes = ['_BaseOperator__instantiated', '_dag', '_hook', '_log', '_outlets', '_inlets', '_lock_for_execution', 'handler', 'params', 'python_callable',...
class TaskInfoComplete(TaskInfo): '''Defines encoding BaseOperator/AbstractOperator object to JSON used when user enables full task info.''' pass
1
1
0
0
0
0
0
0.07
1
0
0
0
0
0
0
32
17
1
15
3
14
1
3
3
2
0
4
0
0
9,009
apache/airflow
apache_airflow/providers/openlineage/src/airflow/providers/openlineage/utils/utils.py
openlineage.utils.utils.TaskInstanceInfo
class TaskInstanceInfo(InfoJsonEncodable): """Defines encoding TaskInstance object to JSON.""" includes = ['duration', 'try_number', 'pool', 'queued_dttm', 'log_url'] casts = {'log_url': lambda ti: getattr(ti, 'log_url', None), 'map_index': lambda ti: ti.map_index if getattr(ti, 'map_index', -1) != -1 else ...
class TaskInstanceInfo(InfoJsonEncodable): '''Defines encoding TaskInstance object to JSON.''' pass
1
1
0
0
0
0
0
0.14
1
0
0
0
0
0
0
32
9
1
7
3
6
1
3
3
2
0
3
0
0
9,010
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/hooks/opensearch.py
opensearch.hooks.opensearch.OpenSearchClientArguments
from typing import TYPE_CHECKING, Any, TypedDict class OpenSearchClientArguments(TypedDict, total=False): """Typed arguments to the open search client.""" hosts: str | list[dict] | None use_ssl: bool verify_certs: bool connection_class: type[OpenSearchConnectionClass] | None http_auth: tuple[st...
class OpenSearchClientArguments(TypedDict, total=False): '''Typed arguments to the open search client.''' pass
1
1
0
0
0
0
0
0.17
2
0
0
0
0
0
0
0
8
1
6
1
5
1
6
1
5
0
1
0
0
9,011
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/hooks/opensearch.py
opensearch.hooks.opensearch.OpenSearchHook
import json from typing import TYPE_CHECKING, Any, TypedDict from opensearchpy import OpenSearch, RequestsHttpConnection from airflow.utils.strings import to_boolean from airflow.providers.opensearch.version_compat import BaseHook from functools import cached_property from airflow.exceptions import AirflowException cl...
class OpenSearchHook(BaseHook): ''' Provide a thin wrapper around the OpenSearch client. :param open_search_conn_id: Connection to use with OpenSearch :param log_query: Whether to log the query used for OpenSearch ''' def __init__(self, open_search_conn_id: str, log_query: bool, open_search_co...
11
6
11
1
8
3
2
0.39
1
9
2
1
6
6
7
19
102
13
64
29
47
25
36
20
28
4
2
2
12
9,012
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/log/os_json_formatter.py
opensearch.log.os_json_formatter.OpensearchJSONFormatter
import pendulum from datetime import datetime from airflow.utils.log.json_formatter import JSONFormatter class OpensearchJSONFormatter(JSONFormatter): """Convert a log record to JSON with ISO 8601 date and time format.""" default_time_format = '%Y-%m-%dT%H:%M:%S' default_msec_format = '%s.%03d' default...
class OpensearchJSONFormatter(JSONFormatter): '''Convert a log record to JSON with ISO 8601 date and time format.''' def formatTime(self, record, datefmt=None): '''Return the creation time of the LogRecord in ISO 8601 date/time format in the local time zone.''' pass
2
2
11
0
8
3
3
0.33
1
1
0
0
1
0
1
11
18
2
12
7
10
4
12
7
10
3
3
1
3
9,013
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/log/os_response.py
opensearch.log.os_response.AttributeDict
class AttributeDict: """Helper class to provide attribute like access to Dictionary objects.""" def __init__(self, d): super().__setattr__('_d_', d) def __getattr__(self, attr_name): """Retrieve an item as an attribute from the dictionary.""" try: return self.__getitem_...
class AttributeDict: '''Helper class to provide attribute like access to Dictionary objects.''' def __init__(self, d): pass def __getattr__(self, attr_name): '''Retrieve an item as an attribute from the dictionary.''' pass def __getitem__(self, key): '''Retrieve an ite...
5
3
3
0
3
1
1
0.25
0
3
0
3
4
0
4
4
19
4
12
5
7
3
12
5
7
2
0
1
5
9,014
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/log/os_response.py
opensearch.log.os_response.AttributeList
class AttributeList: """Helper class to provide attribute like access to List objects.""" def __init__(self, _list): if not isinstance(_list, list): _list = list(_list) self._l_ = _list def __getitem__(self, k): """Retrieve an item or a slice from the list. If the item ...
class AttributeList: '''Helper class to provide attribute like access to List objects.''' def __init__(self, _list): pass def __getitem__(self, k): '''Retrieve an item or a slice from the list. If the item is a dictionary, it is wrapped in an AttributeDict.''' pass def __iter_...
5
4
4
0
3
1
2
0.29
0
3
0
0
4
1
4
4
22
4
14
7
9
4
14
7
9
2
0
1
6
9,015
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/log/os_response.py
opensearch.log.os_response.Hit
class Hit(AttributeDict): """ The Hit class is used to manage and access elements in a document. It inherits from the AttributeDict class and provides attribute-like access to its elements, similar to a dictionary. """ def __init__(self, document): data = {} if '_source' in doc...
class Hit(AttributeDict): ''' The Hit class is used to manage and access elements in a document. It inherits from the AttributeDict class and provides attribute-like access to its elements, similar to a dictionary. ''' def __init__(self, document): pass
2
1
9
1
8
0
3
0.56
1
2
1
0
1
0
1
5
17
3
9
3
7
5
9
3
7
3
1
1
3
9,016
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/log/os_response.py
opensearch.log.os_response.HitMeta
class HitMeta(AttributeDict): """ The HitMeta class is used to manage and access metadata of a document. This class inherits from the AttributeDict class and provides attribute-like access to its elements. """ def __init__(self, document, exclude=('_source', '_fields')): d = {k[1:] if ...
class HitMeta(AttributeDict): ''' The HitMeta class is used to manage and access metadata of a document. This class inherits from the AttributeDict class and provides attribute-like access to its elements. ''' def __init__(self, document, exclude=('_source', '_fields')): pass
2
1
6
0
5
1
3
1
1
1
0
0
1
0
1
5
14
2
6
3
4
6
6
3
4
3
1
1
3
9,017
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/log/os_response.py
opensearch.log.os_response.OpensearchResponse
from collections.abc import Iterator class OpensearchResponse(AttributeDict): """ The OpensearchResponse class is used to manage and access the response from an Opensearch search. This class can be iterated over directly to access hits in the response. Indexing the class instance with an integer or sl...
class OpensearchResponse(AttributeDict): ''' The OpensearchResponse class is used to manage and access the response from an Opensearch search. This class can be iterated over directly to access hits in the response. Indexing the class instance with an integer or slice will also access the hits. The cla...
7
5
8
1
5
3
2
0.92
1
11
2
0
5
0
5
9
61
13
25
11
18
23
24
9
18
4
1
2
9
9,018
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/log/os_task_handler.py
opensearch.log.os_task_handler.OpensearchTaskHandler
import time from airflow.utils.module_loading import import_string from airflow.providers.opensearch.log.os_response import Hit, OpensearchResponse from opensearchpy.exceptions import NotFoundError from urllib.parse import urlparse from collections import defaultdict from airflow.utils.log.logging_mixin import External...
null
24
13
28
3
18
7
4
0.52
3
23
5
0
13
16
14
61
466
64
269
97
233
139
194
75
177
11
4
3
61
9,019
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/operators/opensearch.py
opensearch.operators.opensearch.OpenSearchAddDocumentOperator
from typing import TYPE_CHECKING, Any from airflow.exceptions import AirflowException from airflow.providers.opensearch.version_compat import BaseOperator from functools import cached_property from airflow.providers.opensearch.hooks.opensearch import OpenSearchHook from opensearchpy.exceptions import OpenSearchExceptio...
class OpenSearchAddDocumentOperator(BaseOperator): ''' Add a new document to a given Index or overwrite an existing one. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:OpenSearchAddDocumentOperator` :param index_name: The na...
5
3
13
0
12
1
2
0.33
1
8
3
0
3
5
3
3
58
6
39
22
25
13
23
11
19
5
1
2
7
9,020
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/operators/opensearch.py
opensearch.operators.opensearch.OpenSearchCreateIndexOperator
from opensearchpy.exceptions import OpenSearchException from airflow.exceptions import AirflowException from airflow.providers.opensearch.hooks.opensearch import OpenSearchHook from airflow.providers.opensearch.version_compat import BaseOperator from functools import cached_property from typing import TYPE_CHECKING, An...
class OpenSearchCreateIndexOperator(BaseOperator): ''' Create a new index on an OpenSearch cluster with a given index name. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:OpenSearchCreateIndexOperator` :param index_name: The...
5
3
7
0
6
1
1
0.52
1
7
3
0
3
3
3
3
37
5
21
16
9
11
13
7
9
2
1
1
4
9,021
apache/airflow
apache_airflow/providers/opensearch/src/airflow/providers/opensearch/operators/opensearch.py
opensearch.operators.opensearch.OpenSearchQueryOperator
from airflow.providers.opensearch.hooks.opensearch import OpenSearchHook from opensearchpy import RequestsHttpConnection from airflow.exceptions import AirflowException from typing import TYPE_CHECKING, Any from opensearchpy.exceptions import OpenSearchException from functools import cached_property from collections.ab...
class OpenSearchQueryOperator(BaseOperator): ''' Run a query search against a given index on an OpenSearch cluster and returns results. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:OpenSearchQueryOperator` :param query: A ...
5
3
16
0
15
1
3
0.29
1
9
3
0
3
6
3
3
70
7
49
24
34
14
29
12
25
7
1
2
9
9,022
apache/airflow
apache_airflow/providers/opsgenie/src/airflow/providers/opsgenie/hooks/opsgenie.py
opsgenie.hooks.opsgenie.OpsgenieAlertHook
from airflow.providers.opsgenie.version_compat import BaseHook from opsgenie_sdk import AlertApi, ApiClient, CloseAlertPayload, Configuration, CreateAlertPayload, OpenApiException, SuccessResponse from typing import Any, cast class OpsgenieAlertHook(BaseHook): """ This hook allows you to post alerts to Opsgeni...
class OpsgenieAlertHook(BaseHook): ''' This hook allows you to post alerts to Opsgenie. Accepts a connection that has an Opsgenie API key as the connection's password. This hook sets the domain to conn_id.host, and if not set will default to ``https://api.opsgenie.com``. Each Opsgenie API key c...
9
7
15
1
9
5
1
0.65
1
4
0
0
6
2
7
19
134
18
71
38
50
46
45
22
37
2
2
1
10
9,023
apache/airflow
apache_airflow/providers/opsgenie/src/airflow/providers/opsgenie/notifications/opsgenie.py
opsgenie.notifications.opsgenie.OpsgenieNotifier
from functools import cached_property from airflow.providers.opsgenie.hooks.opsgenie import OpsgenieAlertHook from collections.abc import Sequence from airflow.providers.common.compat.notifier import BaseNotifier class OpsgenieNotifier(BaseNotifier): """ This notifier allows you to post alerts to Opsgenie. ...
class OpsgenieNotifier(BaseNotifier): ''' This notifier allows you to post alerts to Opsgenie. Accepts a connection that has an Opsgenie API key as the connection's password. This notifier sets the domain to conn_id.host, and if not set will default to ``https://api.opsgenie.com``. Each Opsgeni...
5
3
5
0
4
1
1
0.94
1
5
3
0
3
2
3
23
40
9
16
13
6
15
10
7
6
1
2
0
3
9,024
apache/airflow
apache_airflow/providers/opsgenie/src/airflow/providers/opsgenie/operators/opsgenie.py
opsgenie.operators.opsgenie.OpsgenieCloseAlertOperator
from airflow.providers.opsgenie.version_compat import BaseOperator from typing import TYPE_CHECKING, Any from airflow.providers.opsgenie.hooks.opsgenie import OpsgenieAlertHook class OpsgenieCloseAlertOperator(BaseOperator): """ This operator allows you to close alerts to Opsgenie. Accepts a connection th...
class OpsgenieCloseAlertOperator(BaseOperator): ''' This operator allows you to close alerts to Opsgenie. Accepts a connection that has an Opsgenie API key as the connection's password. This operator sets the domain to conn_id.host, and if not set will default to ``https://api.opsgenie.com``. E...
4
3
17
1
13
2
2
0.61
1
6
2
0
3
8
3
3
77
11
41
26
26
25
21
15
17
3
1
2
5
9,025
apache/airflow
apache_airflow/providers/opsgenie/src/airflow/providers/opsgenie/operators/opsgenie.py
opsgenie.operators.opsgenie.OpsgenieCreateAlertOperator
from airflow.providers.opsgenie.hooks.opsgenie import OpsgenieAlertHook from airflow.providers.opsgenie.version_compat import BaseOperator from collections.abc import Sequence from typing import TYPE_CHECKING, Any class OpsgenieCreateAlertOperator(BaseOperator): """ This operator allows you to post alerts to O...
class OpsgenieCreateAlertOperator(BaseOperator): ''' This operator allows you to post alerts to Opsgenie. Accepts a connection that has an Opsgenie API key as the connection's password. This operator sets the domain to conn_id.host, and if not set will default to ``https://api.opsgenie.com``. E...
4
3
23
1
20
2
2
0.57
1
7
2
0
3
15
3
3
108
12
61
41
39
35
29
23
25
3
1
2
5
9,026
apache/airflow
apache_airflow/providers/opsgenie/src/airflow/providers/opsgenie/operators/opsgenie.py
opsgenie.operators.opsgenie.OpsgenieDeleteAlertOperator
from airflow.providers.opsgenie.hooks.opsgenie import OpsgenieAlertHook from airflow.providers.opsgenie.version_compat import BaseOperator from collections.abc import Sequence class OpsgenieDeleteAlertOperator(BaseOperator): """ This operator allows you to delete alerts in Opsgenie. Accepts a connection t...
class OpsgenieDeleteAlertOperator(BaseOperator): ''' This operator allows you to delete alerts in Opsgenie. Accepts a connection that has an Opsgenie API key as the connection's password. This operator sets the domain to conn_id.host, and if not set will default to ``https://api.opsgenie.com``. ...
3
2
13
1
12
1
1
0.69
1
4
2
0
2
5
2
2
52
8
26
19
14
18
12
10
9
1
1
0
2
9,027
apache/airflow
apache_airflow/providers/opsgenie/src/airflow/providers/opsgenie/typing/opsgenie.py
opsgenie.typing.opsgenie.CreateAlertPayload
from typing_extensions import NotRequired, Required from typing import TypedDict class CreateAlertPayload(TypedDict): """ Payload schema for creating an Opsgenie alert. :param message: The Message of the Opsgenie alert. :param alias: Client-defined identifier of the alert. :param description: Desc...
class CreateAlertPayload(TypedDict): ''' Payload schema for creating an Opsgenie alert. :param message: The Message of the Opsgenie alert. :param alias: Client-defined identifier of the alert. :param description: Description field of the alert. :param responders: Teams, users, escalations and s...
1
1
0
0
0
0
0
1.43
1
0
0
0
0
0
0
0
36
2
14
1
13
20
14
1
13
0
1
0
0
9,028
apache/airflow
apache_airflow/providers/oracle/src/airflow/providers/oracle/hooks/oracle.py
oracle.hooks.oracle.OracleHook
import warnings from airflow.providers.common.sql.hooks.sql import DbApiHook from typing import TYPE_CHECKING, Any from datetime import datetime import math import oracledb class OracleHook(DbApiHook): """ Interact with Oracle SQL. :param oracle_conn_id: The :ref:`Oracle connection id <howto/connection:or...
class OracleHook(DbApiHook): ''' Interact with Oracle SQL. :param oracle_conn_id: The :ref:`Oracle connection id <howto/connection:oracle>` used for Oracle credentials. :param thick_mode: Specify whether to use python-oracledb in thick mode. Defaults to False. If set to True, you must h...
15
9
59
7
40
14
10
0.47
1
15
0
1
5
5
5
66
386
46
238
80
200
113
154
50
146
27
3
3
58
9,029
apache/airflow
apache_airflow/providers/oracle/src/airflow/providers/oracle/operators/oracle.py
oracle.operators.oracle.OracleStoredProcedureOperator
from collections.abc import Sequence import re import oracledb from airflow.providers.oracle.hooks.oracle import OracleHook from airflow.providers.oracle.version_compat import BaseOperator class OracleStoredProcedureOperator(BaseOperator): """ Executes stored procedure in a specific Oracle database. :para...
class OracleStoredProcedureOperator(BaseOperator): ''' Executes stored procedure in a specific Oracle database. :param procedure: name of stored procedure to call (templated) :param oracle_conn_id: The :ref:`Oracle connection id <howto/connection:oracle>` reference to a specific Oracle database...
3
1
13
0
13
0
3
0.32
1
6
2
0
2
3
2
2
45
5
31
19
21
10
21
11
18
4
1
2
5
9,030
apache/airflow
apache_airflow/providers/oracle/src/airflow/providers/oracle/transfers/oracle_to_oracle.py
oracle.transfers.oracle_to_oracle.OracleToOracleOperator
from airflow.providers.oracle.version_compat import BaseOperator from collections.abc import Sequence from airflow.providers.oracle.hooks.oracle import OracleHook class OracleToOracleOperator(BaseOperator): """ Moves data from Oracle to Oracle. :param oracle_destination_conn_id: destination Oracle connect...
class OracleToOracleOperator(BaseOperator): ''' Moves data from Oracle to Oracle. :param oracle_destination_conn_id: destination Oracle connection. :param destination_table: destination table to insert rows. :param oracle_source_conn_id: :ref:`Source Oracle connection <howto/connection:oracle>`. ...
4
1
14
1
13
0
2
0.26
1
6
2
0
3
6
3
3
60
7
43
30
29
11
31
19
27
2
1
2
5
9,031
apache/airflow
apache_airflow/providers/pagerduty/src/airflow/providers/pagerduty/hooks/pagerduty.py
pagerduty.hooks.pagerduty.PagerdutyHook
from typing import Any import pagerduty from airflow.exceptions import AirflowException from airflow.providers.pagerduty.version_compat import BaseHook class PagerdutyHook(BaseHook): """ The PagerdutyHook can be used to interact with both the PagerDuty API and the PagerDuty Events API. Takes both PagerDut...
class PagerdutyHook(BaseHook): ''' The PagerdutyHook can be used to interact with both the PagerDuty API and the PagerDuty Events API. Takes both PagerDuty API token directly and connection that has PagerDuty API token. If both supplied, PagerDuty API token will be used. In these cases, the PagerDu...
8
4
12
1
9
2
2
0.43
1
6
1
0
3
3
5
17
88
16
51
22
39
22
37
20
27
5
2
2
10
9,032
apache/airflow
apache_airflow/providers/pagerduty/src/airflow/providers/pagerduty/hooks/pagerduty_events.py
pagerduty.hooks.pagerduty_events.PagerdutyEventsHook
import pagerduty from airflow.exceptions import AirflowException from airflow.providers.pagerduty.version_compat import BaseHook from typing import TYPE_CHECKING, Any class PagerdutyEventsHook(BaseHook): """ This class can be used to interact with the Pagerduty Events API. It takes both an Events API toke...
class PagerdutyEventsHook(BaseHook): ''' This class can be used to interact with the Pagerduty Events API. It takes both an Events API token and a PagerDuty connection with the Events API token (i.e. Integration key) as the password/Pagerduty API token. If both supplied, the token will be used. :p...
9
5
30
2
21
7
4
0.39
1
9
1
0
4
2
6
18
205
21
133
60
89
52
64
23
57
10
2
1
23
9,033
apache/airflow
apache_airflow/providers/pagerduty/src/airflow/providers/pagerduty/notifications/pagerduty.py
pagerduty.notifications.pagerduty.PagerdutyNotifier
from airflow.providers.common.compat.notifier import BaseNotifier from airflow.providers.pagerduty.hooks.pagerduty_events import PagerdutyEventsHook from functools import cached_property from typing import Any class PagerdutyNotifier(BaseNotifier): """ Pagerduty BaseNotifier. :param summary: Summary for t...
class PagerdutyNotifier(BaseNotifier): ''' Pagerduty BaseNotifier. :param summary: Summary for the event :param severity: Severity for the event, needs to be one of: info, warning, error, critical :param source: Specific human-readable unique identifier, such as a hostname, for the system h...
5
3
17
0
16
1
1
0.48
1
5
1
0
3
13
3
23
100
5
64
35
43
31
21
18
17
1
2
0
3
9,034
apache/airflow
apache_airflow/providers/papermill/src/airflow/providers/papermill/hooks/kernel.py
papermill.hooks.kernel.KernelConnection
class KernelConnection: """Class to represent kernel connection object.""" ip: str shell_port: int iopub_port: int stdin_port: int control_port: int hb_port: int session_key: str
class KernelConnection: '''Class to represent kernel connection object.''' pass
1
1
0
0
0
0
0
0.13
0
0
0
0
0
0
0
0
10
1
8
1
7
1
8
1
7
0
0
0
0
9,035
apache/airflow
apache_airflow/providers/papermill/src/airflow/providers/papermill/hooks/kernel.py
papermill.hooks.kernel.KernelHook
from airflow.providers.papermill.version_compat import BaseHook from typing import cast class KernelHook(BaseHook): """ The KernelHook can be used to interact with remote jupyter kernel. Takes kernel host/ip from connection and refers to jupyter kernel ports and session_key from ``extra`` field. ...
class KernelHook(BaseHook): ''' The KernelHook can be used to interact with remote jupyter kernel. Takes kernel host/ip from connection and refers to jupyter kernel ports and session_key from ``extra`` field. :param kernel_conn_id: connection that has kernel host/ip ''' def __init__(self,...
3
1
11
0
11
0
1
0.22
1
3
1
0
2
1
2
14
38
5
27
9
24
6
19
9
16
1
2
0
2
9,036
apache/airflow
apache_airflow/providers/papermill/src/airflow/providers/papermill/hooks/kernel.py
papermill.hooks.kernel.RemoteKernelEngine
from papermill.engines import NBClientEngine from papermill.utils import merge_kwargs, remove_args from papermill.clientwrap import PapermillNotebookClient class RemoteKernelEngine(NBClientEngine): """Papermill engine to use ``RemoteKernelManager`` to connect to remote kernel and execute notebook.""" @classme...
class RemoteKernelEngine(NBClientEngine): '''Papermill engine to use ``RemoteKernelManager`` to connect to remote kernel and execute notebook.''' @classmethod def execute_managed_notebook(cls, nb_man, kernel_name, log_output=False, stdout_file=None, stderr_file=None, start_timeout=60, execution_timeout=Non...
3
2
35
3
30
2
2
0.09
1
1
1
0
0
0
1
1
39
4
32
16
19
3
14
5
12
2
1
0
2
9,037
apache/airflow
apache_airflow/providers/papermill/src/airflow/providers/papermill/hooks/kernel.py
papermill.hooks.kernel.RemoteKernelManager
import typing from traitlets import Unicode from jupyter_client import AsyncKernelManager class RemoteKernelManager(AsyncKernelManager): """Jupyter kernel manager that connects to a remote kernel.""" session_key = Unicode('', config=True, help='Session key to connect to remote kernel') @property def h...
class RemoteKernelManager(AsyncKernelManager): '''Jupyter kernel manager that connects to a remote kernel.''' @property def has_kernel(self) -> bool: pass async def _async_is_alive(self) -> bool: pass def shutdown_kernel(self, now: bool=False, restart: bool=False): pass ...
6
2
6
0
5
1
1
0.13
1
7
0
0
4
6
4
4
32
5
24
15
18
3
13
8
8
1
1
0
4
9,038
apache/airflow
apache_airflow/providers/papermill/src/airflow/providers/papermill/operators/papermill.py
papermill.operators.papermill.NoteBook
import attr from typing import TYPE_CHECKING, ClassVar from airflow.providers.common.compat.lineage.entities import File @attr.s(auto_attribs=True) class NoteBook(File): """Jupyter notebook.""" template_fields: ClassVar[tuple[str, ...]] = ('parameters', *File.template_fields) type_hint: str | None = 'jupyt...
@attr.s(auto_attribs=True) class NoteBook(File): '''Jupyter notebook.''' pass
2
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
0
9
3
5
5
4
1
5
5
4
0
1
0
0
9,039
apache/airflow
apache_airflow/providers/papermill/src/airflow/providers/papermill/operators/papermill.py
papermill.operators.papermill.PapermillOperator
from collections.abc import Sequence from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_0_PLUS from functools import cached_property from airflow.providers.papermill.hooks.kernel import REMOTE_KERNEL_ENGINE, KernelHook from airflow.providers.papermill.version_compat import BaseOperator import paperm...
class PapermillOperator(BaseOperator): ''' Executes a jupyter notebook through papermill that is annotated with parameters. :param input_nb: input notebook, either path or NoteBook inlet. :param output_nb: output notebook, either path or NoteBook outlet. :param parameters: the notebook parameters t...
5
2
22
1
20
1
3
0.15
1
7
3
0
3
6
3
3
91
10
72
27
57
11
34
16
30
4
1
1
9
9,040
apache/airflow
apache_airflow/performance/src/performance_dags/performance_dag/performance_dag.py
performance_dag.DagShape
from enum import Enum import enum @enum.unique class DagShape(Enum): """Define shape of the Dag that will be used for testing.""" NO_STRUCTURE = 'no_structure' LINEAR = 'linear' BINARY_TREE = 'binary_tree' STAR = 'star' GRID = 'grid'
@enum.unique class DagShape(Enum): '''Define shape of the Dag that will be used for testing.''' pass
2
1
0
0
0
0
0
0.17
1
0
0
0
0
0
0
49
8
1
6
6
5
1
6
6
5
0
4
0
0
9,041
apache/airflow
apache_airflow/providers/pgvector/src/airflow/providers/pgvector/hooks/pgvector.py
pgvector.hooks.pgvector.PgVectorHook
from airflow.providers.postgres.hooks.postgres import PostgresHook class PgVectorHook(PostgresHook): """Extend PostgresHook for working with PostgreSQL and pgvector extension for vector data types.""" def __init__(self, *args, **kwargs) -> None: """Initialize a PgVectorHook.""" super().__init_...
class PgVectorHook(PostgresHook): '''Extend PostgresHook for working with PostgreSQL and pgvector extension for vector data types.''' def __init__(self, *args, **kwargs) -> None: '''Initialize a PgVectorHook.''' pass def create_table(self, table_name: str, columns: list[str], if_not_exist...
6
6
10
1
5
4
2
0.88
1
4
0
0
5
0
5
85
58
9
26
10
20
23
26
10
20
2
4
1
9
9,042
apache/airflow
apache_airflow/providers/pgvector/src/airflow/providers/pgvector/operators/pgvector.py
pgvector.operators.pgvector.PgVectorIngestOperator
from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator from pgvector.psycopg2 import register_vector class PgVectorIngestOperator(SQLExecuteQueryOperator): """ This operator is designed for ingesting data into a PostgreSQL database with pgvector support. It inherits from the SQLExe...
class PgVectorIngestOperator(SQLExecuteQueryOperator): ''' This operator is designed for ingesting data into a PostgreSQL database with pgvector support. It inherits from the SQLExecuteQueryOperator and extends its functionality by registering the pgvector data type with the database connection before ...
4
3
3
0
3
1
1
1.11
1
1
0
0
3
0
3
15
25
6
9
5
5
10
9
5
5
1
3
0
3
9,043
apache/airflow
apache_airflow/providers/apache/pig/src/airflow/providers/apache/pig/hooks/pig.py
pig.hooks.pig.PigCliHook
from airflow.exceptions import AirflowException import subprocess from typing import Any from tempfile import NamedTemporaryFile, TemporaryDirectory from airflow.providers.apache.pig.version_compat import BaseHook class PigCliHook(BaseHook): """ Simple wrapper around the pig CLI. :param pig_cli_conn_id: C...
class PigCliHook(BaseHook): ''' Simple wrapper around the pig CLI. :param pig_cli_conn_id: Connection id used by the hook :param pig_properties: additional properties added after pig cli command as list of strings. ''' def __init__(self, pig_cli_conn_id: str=default_conn_name, pig_properties: ...
4
3
22
2
17
3
4
0.23
1
9
1
1
3
3
3
15
81
12
56
24
50
13
46
21
42
7
2
3
12
9,044
apache/airflow
apache_airflow/providers/apache/pig/src/airflow/providers/apache/pig/operators/pig.py
pig.operators.pig.PigOperator
from airflow.providers.apache.pig.version_compat import BaseOperator from collections.abc import Sequence from airflow.providers.apache.pig.hooks.pig import PigCliHook import re from typing import TYPE_CHECKING, Any class PigOperator(BaseOperator): """ Executes pig script. :param pig: the pig latin script...
class PigOperator(BaseOperator): ''' Executes pig script. :param pig: the pig latin script to be executed. (templated) :param pig_cli_conn_id: reference to the Hive database :param pigparams_jinja_translate: when True, pig params-type templating ${var} gets translated into jinja-type templa...
5
1
7
0
7
0
1
0.39
1
6
1
0
4
6
4
4
51
6
33
23
19
13
21
14
16
2
1
1
5
9,045
apache/airflow
apache_airflow/providers/pinecone/src/airflow/providers/pinecone/hooks/pinecone.py
pinecone.hooks.pinecone.PineconeHook
import itertools from typing import TYPE_CHECKING, Any import os from pinecone import Pinecone, PodSpec, PodType, ServerlessSpec from airflow.providers.pinecone.version_compat import BaseHook from functools import cached_property class PineconeHook(BaseHook): """ Interact with Pinecone. This hook uses the Pine...
class PineconeHook(BaseHook): ''' Interact with Pinecone. This hook uses the Pinecone conn_id. :param conn_id: Optional, default connection id is `pinecone_default`. The connection id to use when connecting to Pinecone. ''' @classmethod def get_connection_form_widgets(cls) -> dict[str, ...
34
20
13
1
8
4
1
0.52
1
12
1
0
22
3
25
37
361
47
206
112
118
108
98
51
69
3
2
3
35
9,046
apache/airflow
apache_airflow/providers/pinecone/src/airflow/providers/pinecone/operators/pinecone.py
pinecone.operators.pinecone.CreatePodIndexOperator
from typing import TYPE_CHECKING, Any from functools import cached_property from airflow.providers.pinecone.version_compat import BaseOperator from airflow.providers.pinecone.hooks.pinecone import PineconeHook class CreatePodIndexOperator(BaseOperator): """ Create a pod based index in Pinecone. .. seealso...
class CreatePodIndexOperator(BaseOperator): ''' Create a pod based index in Pinecone. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:CreatePodIndexOperator` :param conn_id: The connection id to use when connecting to Pinecon...
5
1
16
0
16
0
1
0.35
1
7
2
0
3
12
3
3
74
5
51
34
30
18
20
17
16
1
1
0
3
9,047
apache/airflow
apache_airflow/providers/pinecone/src/airflow/providers/pinecone/operators/pinecone.py
pinecone.operators.pinecone.CreateServerlessIndexOperator
from typing import TYPE_CHECKING, Any from airflow.providers.pinecone.hooks.pinecone import PineconeHook from functools import cached_property from airflow.providers.pinecone.version_compat import BaseOperator class CreateServerlessIndexOperator(BaseOperator): """ Create a serverless index in Pinecone. .....
class CreateServerlessIndexOperator(BaseOperator): ''' Create a serverless index in Pinecone. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:CreateServerlessIndexOperator` :param conn_id: The connection id to use when connec...
5
1
10
0
10
0
1
0.39
1
6
2
0
3
7
3
3
51
5
33
24
17
13
15
12
11
1
1
0
3
9,048
apache/airflow
apache_airflow/providers/pinecone/src/airflow/providers/pinecone/operators/pinecone.py
pinecone.operators.pinecone.PineconeIngestOperator
from airflow.providers.pinecone.hooks.pinecone import PineconeHook from airflow.providers.pinecone.version_compat import BaseOperator from typing import TYPE_CHECKING, Any from functools import cached_property from collections.abc import Sequence class PineconeIngestOperator(BaseOperator): """ Ingest vector em...
class PineconeIngestOperator(BaseOperator): ''' Ingest vector embeddings into Pinecone. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:PineconeIngestOperator` :param conn_id: The connection id to use when connecting to Pinec...
5
3
11
0
10
1
1
0.47
1
9
2
0
3
6
3
3
54
7
32
22
17
15
15
11
11
1
1
0
3
9,049
apache/airflow
apache_airflow/providers/apache/pinot/src/airflow/providers/apache/pinot/hooks/pinot.py
pinot.hooks.pinot.PinotAdminHook
from airflow.exceptions import AirflowException from airflow.providers.apache.pinot.version_compat import BaseHook from typing import TYPE_CHECKING, Any import subprocess import os class PinotAdminHook(BaseHook): """ This hook is a wrapper around the pinot-admin.sh script. For now, only small subset of it...
class PinotAdminHook(BaseHook): ''' This hook is a wrapper around the pinot-admin.sh script. For now, only small subset of its subcommands are implemented, which are required to ingest offline data into Apache Pinot (i.e., AddSchema, AddTable, CreateSegment, and UploadSegment). Their command op...
8
6
26
4
19
4
5
0.34
1
8
1
1
7
5
7
19
222
38
137
53
104
47
100
27
92
19
2
4
35
9,050
apache/airflow
apache_airflow/providers/apache/pinot/src/airflow/providers/apache/pinot/hooks/pinot.py
pinot.hooks.pinot.PinotDbApiHook
from typing import TYPE_CHECKING, Any from urllib.parse import quote_plus from collections.abc import Iterable, Mapping from pinotdb import connect from airflow.providers.common.sql.hooks.sql import DbApiHook class PinotDbApiHook(DbApiHook): """ Interact with Pinot Broker Query API. This hook uses standar...
class PinotDbApiHook(DbApiHook): ''' Interact with Pinot Broker Query API. This hook uses standard-SQL endpoint since PQL endpoint is soon to be deprecated. https://docs.pinot.apache.org/users/api/querying-pinot-using-standard-sql ''' def get_conn(self) -> Any: '''Establish a connectio...
7
5
10
1
7
3
1
0.5
1
8
0
1
6
0
6
67
80
12
46
30
29
23
31
18
24
2
3
1
7
9,051
apache/airflow
apache_airflow/providers/postgres/src/airflow/providers/postgres/dialects/postgres.py
postgres.dialects.postgres.PostgresDialect
from collections.abc import Callable from methodtools import lru_cache from airflow.providers.common.sql.dialects.dialect import Dialect, T class PostgresDialect(Dialect): """Postgres dialect implementation.""" @property def name(self) -> str: return 'postgresql' @lru_cache(maxsize=None) ...
class PostgresDialect(Dialect): '''Postgres dialect implementation.''' @property def name(self) -> str: pass @lru_cache(maxsize=None) def get_primary_keys(self, table: str, schema: str | None=None) -> list[str] | None: ''' Get the table's primary key. :param table: N...
10
3
20
3
12
5
3
0.42
1
4
0
0
3
0
3
29
68
11
40
13
34
17
25
11
21
5
2
1
8
9,052
apache/airflow
apache_airflow/providers/postgres/src/airflow/providers/postgres/hooks/postgres.py
postgres.hooks.postgres.PostgresHook
from airflow.providers.postgres.dialects.postgres import PostgresDialect import psycopg2 from typing import TYPE_CHECKING, Any, Literal, Protocol, TypeAlias, cast, overload from airflow.exceptions import AirflowException, AirflowOptionalProviderFeatureException from copy import deepcopy import os from sqlalchemy.engine...
class PostgresHook(DbApiHook): ''' Interact with Postgres. You can specify ssl parameters in the extra field of your connection as ``{"sslmode": "require", "sslcert": "/path/to/cert.pem", etc}``. Also, you can choose cursor as ``{"cursor": "dictcursor"}``. Refer to the psycopg2.extras or psycop...
39
18
13
1
8
3
2
0.47
1
19
7
3
17
4
19
80
318
49
184
70
152
86
118
62
93
6
3
2
36
9,053
apache/airflow
apache_airflow/providers/presto/src/airflow/providers/presto/hooks/presto.py
presto.hooks.presto.PrestoException
class PrestoException(Exception): """Presto exception."""
class PrestoException(Exception): '''Presto exception.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
9,054
apache/airflow
apache_airflow/providers/presto/src/airflow/providers/presto/hooks/presto.py
presto.hooks.presto.PrestoHook
import prestodb from airflow.providers.common.sql.hooks.sql import DbApiHook from airflow.exceptions import AirflowException, AirflowOptionalProviderFeatureException, AirflowProviderDeprecationWarning from deprecated import deprecated from prestodb.transaction import IsolationLevel from prestodb.exceptions import Datab...
class PrestoHook(DbApiHook): ''' Interact with Presto through prestodb. >>> ph = PrestoHook() >>> sql = "SELECT count(1) AS num FROM airflow.static_babynames" >>> ph.get_records(sql) [[340698]] ''' def __init__(self, *args, **kwargs): pass def get_conn(self) -> Connection:...
13
5
16
1
12
3
2
0.28
1
13
2
2
7
1
8
69
149
16
106
45
81
30
61
27
51
5
3
1
19
9,055
apache/airflow
apache_airflow/providers/presto/src/airflow/providers/presto/transfers/gcs_to_presto.py
presto.transfers.gcs_to_presto.GCSToPrestoOperator
from airflow.providers.presto.version_compat import BaseOperator from airflow.providers.google.cloud.hooks.gcs import GCSHook import csv from tempfile import NamedTemporaryFile import json from airflow.providers.presto.hooks.presto import PrestoHook from collections.abc import Iterable, Sequence class GCSToPrestoOpera...
class GCSToPrestoOperator(BaseOperator): ''' Loads a csv file from Google Cloud Storage into a Presto table. Assumptions: 1. CSV file should not have headers 2. Presto table with requisite columns is already created 3. Optionally, a separate JSON file with headers or list of headers can be prov...
3
1
27
2
25
0
2
0.38
1
8
3
0
2
8
2
2
85
9
55
31
40
21
27
18
24
3
1
2
4
9,056
apache/airflow
apache_airflow/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
provider_documentation.Change
from typing import Any, NamedTuple class Change(NamedTuple): """Stores details about commits""" full_hash: str short_hash: str date: str version: str message: str message_without_backticks: str pr: str | None
class Change(NamedTuple): '''Stores details about commits''' pass
1
1
0
0
0
0
0
0.13
1
0
0
0
0
0
0
0
10
1
8
1
7
1
8
1
7
0
1
0
0
9,057
apache/airflow
apache_airflow/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
provider_documentation.ClassifiedChanges
class ClassifiedChanges: """Stores lists of changes classified automatically""" def __init__(self): self.fixes: list[Change] = [] self.misc: list[Change] = [] self.features: list[Change] = [] self.breaking_changes: list[Change] = [] self.docs: list[Change] = [] s...
class ClassifiedChanges: '''Stores lists of changes classified automatically''' def __init__(self): pass
2
1
7
0
7
0
1
0.13
0
2
1
0
1
6
1
1
10
1
8
8
6
1
8
8
6
1
0
0
1
9,058
apache/airflow
apache_airflow/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
provider_documentation.PrepareReleaseDocsChangesOnlyException
class PrepareReleaseDocsChangesOnlyException(Exception): """Raised when package has only documentation changes."""
class PrepareReleaseDocsChangesOnlyException(Exception): '''Raised when package has only documentation changes.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
9,059
apache/airflow
apache_airflow/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
provider_documentation.PrepareReleaseDocsErrorOccurredException
class PrepareReleaseDocsErrorOccurredException(Exception): """Raised when error occurred when preparing packages changes."""
class PrepareReleaseDocsErrorOccurredException(Exception): '''Raised when error occurred when preparing packages changes.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
9,060
apache/airflow
apache_airflow/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
provider_documentation.PrepareReleaseDocsNoChangesException
class PrepareReleaseDocsNoChangesException(Exception): """Raised when package has no changes."""
class PrepareReleaseDocsNoChangesException(Exception): '''Raised when package has no changes.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
9,061
apache/airflow
apache_airflow/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
provider_documentation.PrepareReleaseDocsUserQuitException
class PrepareReleaseDocsUserQuitException(Exception): """Raised when user decided to quit."""
class PrepareReleaseDocsUserQuitException(Exception): '''Raised when user decided to quit.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
9,062
apache/airflow
apache_airflow/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
provider_documentation.PrepareReleaseDocsUserSkippedException
class PrepareReleaseDocsUserSkippedException(Exception): """Raised when user skipped package."""
class PrepareReleaseDocsUserSkippedException(Exception): '''Raised when user skipped package.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
9,063
apache/airflow
apache_airflow/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
provider_documentation.TypeOfChange
from enum import Enum class TypeOfChange(Enum): DOCUMENTATION = 'd' BUGFIX = 'b' FEATURE = 'f' BREAKING_CHANGE = 'x' SKIP = 's' MISC = 'm' MIN_AIRFLOW_VERSION_BUMP = 'v'
class TypeOfChange(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
7
0
7
7
6
0
7
7
6
0
4
0
0
9,064
apache/airflow
apache_airflow/providers/microsoft/psrp/src/airflow/providers/microsoft/psrp/hooks/psrp.py
psrp.hooks.psrp.PsrpHook
from airflow.exceptions import AirflowException from contextlib import contextmanager from pypsrp.messages import MessageType from logging import DEBUG, ERROR, INFO, WARNING from weakref import WeakKeyDictionary from collections.abc import Callable, Generator from typing import TYPE_CHECKING, Any, cast from pypsrp.powe...
class PsrpHook(BaseHook): ''' Hook for PowerShell Remoting Protocol execution. When used as a context manager, the runspace pool is reused between shell sessions. :param psrp_conn_id: Required. The name of the PSRP connection. :param logging_level: Logging level for message streams whic...
12
6
19
2
16
2
3
0.31
1
11
1
0
9
8
9
21
237
29
159
67
131
49
115
47
104
10
2
6
33
9,065
apache/airflow
apache_airflow/providers/microsoft/psrp/src/airflow/providers/microsoft/psrp/operators/psrp.py
psrp.operators.psrp.PsrpOperator
from logging import DEBUG from airflow.providers.microsoft.psrp.hooks.psrp import PsrpHook from typing import TYPE_CHECKING, Any from airflow.exceptions import AirflowException from jinja2.nativetypes import NativeEnvironment from airflow.settings import json from pypsrp.serializer import TaggedValue from airflow.utils...
class PsrpOperator(BaseOperator): ''' PowerShell Remoting Protocol operator. Use one of the 'command', 'cmdlet', or 'powershell' arguments. The 'securestring' template filter can be used to tag a value for serialization into a `System.Security.SecureString` (applicable only for DAGs which have ...
5
1
24
2
22
1
5
0.48
1
10
2
0
3
10
3
3
147
15
90
39
71
43
57
23
52
11
1
3
19
9,066
apache/airflow
apache_airflow/providers/qdrant/src/airflow/providers/qdrant/hooks/qdrant.py
qdrant.hooks.qdrant.QdrantHook
from airflow.providers.qdrant.version_compat import BaseHook from typing import Any from grpc import RpcError from functools import cached_property from qdrant_client import QdrantClient from qdrant_client.http.exceptions import UnexpectedResponse class QdrantHook(BaseHook): """ Hook for interfacing with a Qdr...
class QdrantHook(BaseHook): ''' Hook for interfacing with a Qdrant instance. :param conn_id: The connection id to use when connecting to Qdrant. Defaults to `qdrant_default`. ''' @classmethod def get_connection_form_widgets(cls) -> dict[str, Any]: '''Return connection widgets to add...
11
7
12
0
11
1
1
0.12
1
7
0
0
5
1
7
19
103
11
82
30
68
10
37
26
26
2
2
1
8
9,067
apache/airflow
apache_airflow/providers/qdrant/src/airflow/providers/qdrant/operators/qdrant.py
qdrant.operators.qdrant.QdrantIngestOperator
from collections.abc import Iterable, Sequence from functools import cached_property from airflow.providers.qdrant.version_compat import BaseOperator from typing import TYPE_CHECKING, Any from airflow.providers.qdrant.hooks.qdrant import QdrantHook class QdrantIngestOperator(BaseOperator): """ Upload points to...
class QdrantIngestOperator(BaseOperator): ''' Upload points to a Qdrant collection. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:QdrantIngestOperator` :param conn_id: The connection id to connect to a Qdrant instance. ...
5
3
14
0
13
1
1
0.36
1
9
2
0
3
10
3
3
78
6
53
30
34
19
18
15
14
1
1
0
3
9,068
apache/airflow
apache_airflow/providers/redis/src/airflow/providers/redis/hooks/redis.py
redis.hooks.redis.RedisHook
from typing import Any from redis import Redis from airflow.providers.redis.version_compat import BaseHook class RedisHook(BaseHook): """ Wrapper for connection to interact with Redis in-memory data structure store. You can set your db in the extra field of your connection as ``{"db": 3}``. Also you c...
class RedisHook(BaseHook): ''' Wrapper for connection to interact with Redis in-memory data structure store. You can set your db in the extra field of your connection as ``{"db": 3}``. Also you can set ssl parameters as: ``{"ssl": true, "ssl_cert_reqs": "require", "ssl_certfile": "/path/to/cert.pem...
7
5
24
1
21
2
2
0.17
1
4
0
0
2
7
4
16
115
11
89
25
78
15
35
23
26
3
2
1
6
9,069
apache/airflow
apache_airflow/providers/redis/src/airflow/providers/redis/log/redis_task_handler.py
redis.log.redis_task_handler.RedisTaskHandler
from functools import cached_property from airflow.configuration import conf from airflow.providers.redis.hooks.redis import RedisHook from airflow.providers.redis.version_compat import AIRFLOW_V_3_0_PLUS from airflow.utils.log.file_task_handler import FileTaskHandler from airflow.utils.log.logging_mixin import Logging...
class RedisTaskHandler(FileTaskHandler, LoggingMixin): ''' RedisTaskHandler is a Python log handler that handles and reads task instance logs. It extends airflow FileTaskHandler and uploads to and reads from Redis. :param base_log_folder: base folder to store logs locally :param max_lines: ...
6
1
8
0
8
0
1
0.42
2
7
2
0
4
4
4
48
58
7
36
23
19
15
17
11
12
1
4
0
4
9,070
apache/airflow
apache_airflow/providers/redis/src/airflow/providers/redis/log/redis_task_handler.py
redis.log.redis_task_handler._RedisHandler
import logging class _RedisHandler(logging.Handler): def __init__(self, conn: Redis, key: str, max_lines: int, ttl_seconds: int): super().__init__() self.conn = conn self.key = key self.max_lines = max_lines self.ttl_seconds = ttl_seconds def emit(self, record): ...
class _RedisHandler(logging.Handler): def __init__(self, conn: Redis, key: str, max_lines: int, ttl_seconds: int): pass def emit(self, record): pass
3
0
6
0
6
0
1
0
1
3
0
0
2
4
2
22
14
1
13
8
10
0
13
8
10
1
3
0
2
9,071
apache/airflow
apache_airflow/providers/redis/src/airflow/providers/redis/operators/redis_publish.py
redis.operators.redis_publish.RedisPublishOperator
from airflow.providers.redis.version_compat import BaseOperator from collections.abc import Sequence from airflow.providers.redis.hooks.redis import RedisHook class RedisPublishOperator(BaseOperator): """ Publish a message to Redis. :param channel: redis channel to which the message is published (template...
class RedisPublishOperator(BaseOperator): ''' Publish a message to Redis. :param channel: redis channel to which the message is published (templated) :param message: the message to publish (templated) :param redis_conn_id: redis connection to use ''' def __init__(self, *, channel: str, mes...
3
2
9
2
5
2
1
0.83
1
4
2
0
2
3
2
2
30
8
12
9
9
10
12
9
9
1
1
0
2
9,072
apache/airflow
apache_airflow/providers/redis/src/airflow/providers/redis/sensors/redis_key.py
redis.sensors.redis_key.RedisKeySensor
from airflow.providers.redis.hooks.redis import RedisHook from airflow.providers.redis.version_compat import BaseSensorOperator from collections.abc import Sequence class RedisKeySensor(BaseSensorOperator): """Checks for the existence of a key in a Redis.""" template_fields: Sequence[str] = ('key',) ui_col...
class RedisKeySensor(BaseSensorOperator): '''Checks for the existence of a key in a Redis.''' def __init__(self, *, key: str, redis_conn_id: str, **kwargs) -> None: pass def poke(self, context: Context) -> bool: pass
3
1
4
0
4
0
1
0.2
1
5
2
0
2
2
2
23
14
3
10
7
7
2
10
7
7
1
3
0
2
9,073
apache/airflow
apache_airflow/providers/redis/src/airflow/providers/redis/sensors/redis_pub_sub.py
redis.sensors.redis_pub_sub.RedisPubSubSensor
from airflow.providers.redis.version_compat import BaseSensorOperator from functools import cached_property from airflow.providers.redis.hooks.redis import RedisHook from collections.abc import Sequence class RedisPubSubSensor(BaseSensorOperator): """ Redis sensor for reading a message from pub sub channels. ...
class RedisPubSubSensor(BaseSensorOperator): ''' Redis sensor for reading a message from pub sub channels. :param channels: The channels to be subscribed to (templated) :param redis_conn_id: the redis connection id ''' def __init__(self, *, channels: list[str] | str, redis_conn_id: str, **kwar...
5
2
10
2
6
2
1
0.62
1
6
2
0
3
2
3
24
43
10
21
11
16
13
20
10
16
2
3
1
4
9,074
apache/airflow
apache_airflow/scripts/in_container/run_generate_constraints.py
run_generate_constraints.ConfigParams
from functools import cached_property from dataclasses import dataclass from pathlib import Path @dataclass class ConfigParams: airflow_constraints_mode: str constraints_github_repository: str default_constraints_branch: str github_actions: bool python: str @cached_property def constraints...
@dataclass class ConfigParams: @cached_property def constraints_dir(self) -> Path: pass @cached_property def latest_constraints_file(self) -> Path: pass @cached_property def constraints_diff_file(self) -> Path: pass @cached_property def current_constraints_file(s...
10
0
4
0
4
0
2
0.08
0
3
0
0
11
0
11
11
77
11
61
24
38
5
45
13
33
2
0
1
17
9,075
apache/airflow
apache_airflow/scripts/in_container/run_provider_yaml_files_check.py
run_provider_yaml_files_check.ObjectType
from enum import Enum class ObjectType(Enum): MODULE = 'module' CLASS = 'class'
class ObjectType(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
3
0
3
3
2
0
3
3
2
0
4
0
0
9,076
apache/airflow
apache_airflow/scripts/in_container/run_resource_check.py
run_resource_check.Resource
from dataclasses import dataclass @dataclass class Resource: current: int minimumAllowed: int
@dataclass class Resource: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
0
0
0
9,077
apache/airflow
apache_airflow/scripts/in_container/run_template_fields_check.py
run_template_fields_check.InstanceFieldExtractor
import ast class InstanceFieldExtractor(ast.NodeVisitor): def __init__(self): self.current_class = None self.instance_fields = [] def visit_FunctionDef(self, node: ast.FunctionDef) -> ast.FunctionDef: if node.name == '__init__': self.generic_visit(node) return node...
class InstanceFieldExtractor(ast.NodeVisitor): def __init__(self): pass def visit_FunctionDef(self, node: ast.FunctionDef) -> ast.FunctionDef: pass def visit_Assign(self, node: ast.Assign) -> ast.Assign: pass def visit_AnnAssign(self, node: ast.AnnAssign) -> ast.AnnAssign: ...
5
0
5
0
5
0
2
0
1
0
0
0
4
2
4
7
23
3
20
9
15
0
20
9
15
4
2
2
9
9,078
apache/airflow
apache_airflow/providers/salesforce/src/airflow/providers/salesforce/hooks/salesforce.py
salesforce.hooks.salesforce.SalesforceHook
from simple_salesforce import Salesforce, api from functools import cached_property from typing import TYPE_CHECKING, Any, cast from collections.abc import Iterable from airflow.providers.salesforce.version_compat import BaseHook import time class SalesforceHook(BaseHook): """ Creates new connection to Salesfo...
class SalesforceHook(BaseHook): ''' Creates new connection to Salesforce and allows you to pull data out of SFDC and save it to a file. You can then use that file with other Airflow operators to move the data into another data source. :param conn_id: The name of the connection that has the parameters n...
19
14
24
3
12
9
2
0.78
1
12
0
0
11
3
14
26
376
56
180
69
141
140
101
50
80
5
2
2
27
9,079
apache/airflow
apache_airflow/providers/salesforce/src/airflow/providers/salesforce/operators/bulk.py
salesforce.operators.bulk.SalesforceBulkOperator
from airflow.providers.salesforce.version_compat import BaseOperator from typing import TYPE_CHECKING, cast from collections.abc import Iterable from airflow.providers.salesforce.hooks.salesforce import SalesforceHook class SalesforceBulkOperator(BaseOperator): """ Execute a Salesforce Bulk API and pushes resu...
class SalesforceBulkOperator(BaseOperator): ''' Execute a Salesforce Bulk API and pushes results to xcom. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:SalesforceBulkOperator` :param operation: Bulk operation to be performe...
4
2
23
2
20
2
4
0.31
1
9
2
0
3
7
3
3
92
11
62
27
47
19
31
16
27
7
1
1
11
9,080
apache/airflow
apache_airflow/providers/salesforce/src/airflow/providers/salesforce/operators/salesforce_apex_rest.py
salesforce.operators.salesforce_apex_rest.SalesforceApexRestOperator
from airflow.providers.salesforce.version_compat import BaseOperator from airflow.providers.salesforce.hooks.salesforce import SalesforceHook class SalesforceApexRestOperator(BaseOperator): """ Execute a APEX Rest API action. .. seealso:: For more information on how to use this operator, take a lo...
class SalesforceApexRestOperator(BaseOperator): ''' Execute a APEX Rest API action. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:SalesforceApexRestOperator` :param endpoint: The REST endpoint for the request. :param me...
3
2
15
1
11
3
2
0.65
1
5
2
0
2
4
2
2
44
6
23
19
12
15
15
11
12
2
1
1
3
9,081
apache/airflow
apache_airflow/providers/samba/src/airflow/providers/samba/hooks/samba.py
samba.hooks.samba.SambaHook
from functools import wraps from pathlib import PurePosixPath, PureWindowsPath import smbclient from shutil import copyfileobj from typing import TYPE_CHECKING, Any, Literal from airflow.providers.samba.version_compat import BaseHook class SambaHook(BaseHook): """ Allows for interaction with a Samba server. ...
class SambaHook(BaseHook): ''' Allows for interaction with a Samba server. The hook should be used as a context manager in order to correctly set up a session and disconnect open connections upon exit. :param samba_conn_id: The connection id reference. :param share: An optional share na...
64
4
6
0
5
0
1
0.12
1
5
0
1
29
4
30
42
237
38
177
81
109
22
81
43
50
3
2
1
34
9,082
apache/airflow
apache_airflow/providers/samba/src/airflow/providers/samba/transfers/gcs_to_samba.py
samba.transfers.gcs_to_samba.GCSToSambaOperator
from tempfile import NamedTemporaryFile from collections.abc import Sequence from airflow.exceptions import AirflowException from airflow.providers.google.cloud.hooks.gcs import GCSHook from airflow.providers.samba.hooks.samba import SambaHook import os from airflow.providers.samba.version_compat import BaseOperator c...
class GCSToSambaOperator(BaseOperator): ''' Transfer files from a Google Cloud Storage bucket to SMB server. .. code-block:: python with models.DAG( "example_gcs_to_smb", start_date=datetime(2020, 6, 19), schedule=None, ) as dag: # downloads f...
5
2
25
2
22
1
3
0.67
1
9
4
0
4
10
4
4
175
19
94
47
69
63
48
26
43
4
1
2
10
9,083
apache/airflow
apache_airflow/providers/segment/src/airflow/providers/segment/hooks/segment.py
segment.hooks.segment.SegmentHook
from airflow.providers.segment.version_compat import BaseHook import segment.analytics as analytics from airflow.exceptions import AirflowException class SegmentHook(BaseHook): """ Create new connection to Segment and allows you to pull data out of Segment or write to it. You can then use that file with o...
class SegmentHook(BaseHook): ''' Create new connection to Segment and allows you to pull data out of Segment or write to it. You can then use that file with other Airflow operators to move the data around or interact with segment. :param segment_conn_id: the name of the connection that has the para...
4
2
9
0
8
1
2
0.59
1
4
1
2
3
7
3
15
54
8
29
17
23
17
27
15
23
2
2
1
5
9,084
apache/airflow
apache_airflow/providers/segment/src/airflow/providers/segment/operators/segment_track_event.py
segment.operators.segment_track_event.SegmentTrackEventOperator
from airflow.providers.segment.version_compat import BaseOperator from airflow.providers.segment.hooks.segment import SegmentHook from collections.abc import Sequence class SegmentTrackEventOperator(BaseOperator): """ Send Track Event to Segment for a specified user_id and event. :param user_id: The ID fo...
class SegmentTrackEventOperator(BaseOperator): ''' Send Track Event to Segment for a specified user_id and event. :param user_id: The ID for this user in your database. (templated) :param event: The name of the event you're tracking. (templated) :param properties: A dictionary of properties for the...
3
1
14
1
13
1
1
0.38
1
6
2
0
2
5
2
2
44
6
29
20
17
11
15
11
12
1
1
0
2
9,085
apache/airflow
apache_airflow/providers/sftp/src/airflow/providers/sftp/decorators/sensors/sftp.py
sftp.decorators.sensors.sftp._DecoratedSFTPSensor
from collections.abc import Callable, Sequence from airflow.providers.sftp.sensors.sftp import SFTPSensor class _DecoratedSFTPSensor(SFTPSensor): """ Wraps a Python callable and captures args/kwargs when called for execution. :param python_callable: A reference to an object that is callable :param tas...
class _DecoratedSFTPSensor(SFTPSensor): ''' Wraps a Python callable and captures args/kwargs when called for execution. :param python_callable: A reference to an object that is callable :param task_id: task Id :param op_args: a list of positional arguments that will get unpacked when callin...
2
1
9
0
9
0
1
1.08
1
2
0
0
1
0
1
26
32
5
13
10
6
14
8
5
6
1
4
0
1
9,086
apache/airflow
apache_airflow/providers/sftp/src/airflow/providers/sftp/hooks/sftp.py
sftp.hooks.sftp.SFTPHook
from fnmatch import fnmatch from contextlib import contextmanager from typing import IO, TYPE_CHECKING, Any, cast from collections.abc import Callable, Generator, Sequence from airflow.providers.ssh.hooks.ssh import SSHHook from pathlib import Path import stat import concurrent.futures from airflow.exceptions import Ai...
class SFTPHook(SSHHook): ''' Interact with SFTP. This hook inherits the SSH hook. Please refer to SSH hook for the input arguments. :Pitfalls:: - In contrast with FTPHook describe_directory only returns size, type and modify. It doesn't return unix.owner, unix.mode, perm, unix.gro...
50
28
15
1
8
6
2
0.76
1
16
2
0
22
1
24
44
425
67
209
94
165
158
162
60
136
5
3
3
59
9,087
apache/airflow
apache_airflow/providers/sftp/src/airflow/providers/sftp/hooks/sftp.py
sftp.hooks.sftp.SFTPHookAsync
from airflow.providers.sftp.version_compat import BaseHook from asgiref.sync import sync_to_async from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning from collections.abc import Callable, Generator, Sequence import datetime import asyncssh from fnmatch import fnmatch from typing import IO...
null
8
7
19
1
15
4
4
0.35
1
10
2
0
7
9
7
19
159
18
108
54
87
38
87
38
79
9
2
2
25
9,088
apache/airflow
apache_airflow/providers/sftp/src/airflow/providers/sftp/operators/sftp.py
sftp.operators.sftp.SFTPOperation
class SFTPOperation: """Operation that can be used with SFTP.""" PUT = 'put' GET = 'get' DELETE = 'delete'
class SFTPOperation: '''Operation that can be used with SFTP.''' pass
1
1
0
0
0
0
0
0.25
0
0
0
0
0
0
0
0
6
1
4
4
3
1
4
4
3
0
0
0
0
9,089
apache/airflow
apache_airflow/providers/sftp/src/airflow/providers/sftp/operators/sftp.py
sftp.operators.sftp.SFTPOperator
from collections.abc import Sequence import socket from pathlib import Path from airflow.providers.sftp.version_compat import BaseOperator import paramiko from typing import Any from airflow.exceptions import AirflowException from airflow.providers.sftp.hooks.sftp import SFTPHook import os class SFTPOperator(BaseOpera...
class SFTPOperator(BaseOperator): ''' SFTPOperator for transferring files from remote host to local or vice a versa. This operator uses sftp_hook to open sftp transport channel that serve as basis for file transfer. :param ssh_conn_id: :ref:`ssh connection id<howto/connection:ssh>` from airflow...
5
2
48
5
40
3
8
0.25
1
15
4
0
4
8
4
4
232
30
162
48
143
40
103
34
96
23
1
5
33
9,090
apache/airflow
apache_airflow/providers/sftp/src/airflow/providers/sftp/sensors/sftp.py
sftp.sensors.sftp.SFTPSensor
from collections.abc import Callable, Sequence from airflow.providers.sftp.hooks.sftp import SFTPHook from airflow.providers.sftp.triggers.sftp import SFTPTrigger from airflow.utils.timezone import convert_to_utc, parse from typing import TYPE_CHECKING, Any from airflow.configuration import conf from airflow.exceptions...
class SFTPSensor(BaseSensorOperator): ''' Waits for a file or directory to be present on SFTP. :param path: Remote file or directory path :param file_pattern: The pattern that will be used to match the file (fnmatch format) :param sftp_conn_id: The connection to run the sensor against :param ne...
6
2
32
2
26
4
5
0.23
1
14
5
1
4
11
4
25
147
14
108
38
91
25
63
23
58
12
3
3
19
9,091
apache/airflow
apache_airflow/providers/sftp/src/airflow/providers/sftp/triggers/sftp.py
sftp.triggers.sftp.SFTPTrigger
from datetime import datetime from airflow.utils.timezone import convert_to_utc from airflow.exceptions import AirflowException from typing import Any from collections.abc import AsyncIterator from dateutil.parser import parse as parse_date import asyncio from airflow.triggers.base import BaseTrigger, TriggerEvent from...
class SFTPTrigger(BaseTrigger): ''' SFTPTrigger that fires in below listed scenarios. 1. The path on the SFTP server does not exist 2. The pattern do not match :param path: The path on the SFTP server to search for a file matching the file pattern. Authentication method used in the ...
5
3
23
1
20
2
5
0.25
1
13
3
0
4
5
4
37
109
9
80
26
68
20
52
18
47
15
5
6
18
9,092
apache/airflow
apache_airflow/providers/singularity/src/airflow/providers/singularity/operators/singularity.py
singularity.operators.singularity.SingularityOperator
from airflow.providers.singularity.version_compat import BaseOperator from collections.abc import Sequence import ast import os from spython.main import Client import shutil from airflow.exceptions import AirflowException from typing import TYPE_CHECKING, Any class SingularityOperator(BaseOperator): """ Execut...
class SingularityOperator(BaseOperator): ''' Execute a command inside a Singularity container. Singularity has more seamless connection to the host than Docker, so no special binds are needed to ensure binding content in the user $HOME and temporary directories. If the user needs custom binds, this...
5
1
28
4
21
5
4
0.4
1
7
1
0
4
13
4
4
147
22
95
43
76
38
68
29
63
10
1
3
16
9,093
apache/airflow
apache_airflow/providers/slack/src/airflow/providers/slack/hooks/slack.py
slack.hooks.slack.FileUploadTypeDef
from typing import TYPE_CHECKING, Any, TypedDict from typing_extensions import NotRequired class FileUploadTypeDef(TypedDict): """ Represents the structure of the file upload data. :ivar file: Optional. Path to file which need to be sent. :ivar content: Optional. File contents. If omitting this parame...
class FileUploadTypeDef(TypedDict): ''' Represents the structure of the file upload data. :ivar file: Optional. Path to file which need to be sent. :ivar content: Optional. File contents. If omitting this parameter, you must provide a file. :ivar filename: Optional. Displayed filename. :ivar ti...
1
1
0
0
0
0
0
1.29
1
0
0
0
0
0
0
0
18
2
7
1
6
9
7
1
6
0
1
0
0
9,094
apache/airflow
apache_airflow/providers/slack/src/airflow/providers/slack/hooks/slack.py
slack.hooks.slack.SlackHook
import warnings from typing import TYPE_CHECKING, Any, TypedDict from airflow.providers.slack.utils import ConnectionExtraConfig from airflow.exceptions import AirflowException, AirflowNotFoundException import json from pathlib import Path from collections.abc import Sequence from airflow.providers.slack.version_compat...
class SlackHook(BaseHook): ''' Creates a Slack API Connection to be used for calls. This class provide a thin wrapper around the ``slack_sdk.WebClient``. .. seealso:: - :ref:`Slack API connection <howto/connection:slack>` - https://api.slack.com/messaging - https://slack.dev/pyt...
16
12
23
2
16
5
3
0.48
1
19
3
0
9
7
11
23
317
40
188
72
143
91
99
41
83
6
2
2
32
9,095
apache/airflow
apache_airflow/providers/slack/src/airflow/providers/slack/hooks/slack_webhook.py
slack.hooks.slack_webhook.SlackWebhookHook
from typing import TYPE_CHECKING, Any from functools import cached_property, wraps from slack_sdk.webhook.async_client import AsyncWebhookClient import warnings from airflow.providers.slack.utils import ConnectionExtraConfig from slack_sdk import WebhookClient import json from airflow.providers.slack.version_compat imp...
class SlackWebhookHook(BaseHook): ''' This class provide a thin wrapper around the ``slack_sdk.WebhookClient``. This hook allows you to post messages to Slack by using Incoming Webhooks. .. seealso:: - :ref:`Slack Incoming Webhook connection <howto/connection:slack-incoming-webhook>` - ...
22
15
21
1
17
4
2
0.44
1
14
3
0
7
5
9
21
256
29
159
63
113
70
64
30
50
5
2
2
18
9,096
apache/airflow
apache_airflow/providers/slack/src/airflow/providers/slack/notifications/slack.py
slack.notifications.slack.SlackNotifier
from functools import cached_property import json from airflow.providers.slack.hooks.slack import SlackHook from collections.abc import Sequence from airflow.providers.common.compat.notifier import BaseNotifier class SlackNotifier(BaseNotifier): """ Slack BaseNotifier. :param slack_conn_id: Slack API toke...
class SlackNotifier(BaseNotifier): ''' Slack BaseNotifier. :param slack_conn_id: Slack API token (https://api.slack.com/web). :param text: The content of the message :param channel: The channel to send the message to. Optional :param username: The username to send the message as. Optional :...
5
3
18
0
17
1
1
0.37
1
7
1
0
3
13
3
23
78
5
54
36
33
20
22
19
18
1
2
0
3
9,097
apache/airflow
apache_airflow/providers/slack/src/airflow/providers/slack/notifications/slack_webhook.py
slack.notifications.slack_webhook.SlackWebhookNotifier
from functools import cached_property from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_1_PLUS from airflow.providers.slack.hooks.slack_webhook import SlackWebhookHook from airflow.providers.common.compat.notifier import BaseNotifier class SlackWebhookNotifier(BaseNotifier): """ Slack Inco...
class SlackWebhookNotifier(BaseNotifier): ''' Slack Incoming Webhooks Notifier. .. note:: ``SlackWebhookNotifier`` provide integration with Slack Incoming Webhooks, and may not function accurately within Legacy Slack Integration Incoming Webhook. :param slack_webhook_conn_id: :ref:`Slac...
6
4
13
0
13
1
1
0.46
1
6
1
0
3
9
3
23
66
6
41
27
24
19
17
14
13
1
2
0
3
9,098
apache/airflow
apache_airflow/providers/slack/src/airflow/providers/slack/operators/slack.py
slack.operators.slack.SlackAPIFileOperator
from typing import TYPE_CHECKING, Any, Literal from airflow.exceptions import AirflowProviderDeprecationWarning import warnings from collections.abc import Sequence class SlackAPIFileOperator(SlackAPIOperator): """ Send a file to a Slack channel. .. code-block:: python # Send file with filename a...
class SlackAPIFileOperator(SlackAPIOperator): ''' Send a file to a Slack channel. .. code-block:: python # Send file with filename and filetype slack_operator_file = SlackAPIFileOperator( task_id="slack_file_upload_1", dag=dag, slack_conn_id="slack", ...
3
1
12
0
12
0
1
0.72
1
4
1
0
3
8
3
7
88
8
47
26
31
34
19
14
15
2
2
1
4
9,099
apache/airflow
apache_airflow/providers/slack/src/airflow/providers/slack/operators/slack.py
slack.operators.slack.SlackAPIOperator
from typing import TYPE_CHECKING, Any, Literal from functools import cached_property from airflow.providers.slack.hooks.slack import SlackHook from airflow.providers.slack.version_compat import BaseOperator class SlackAPIOperator(BaseOperator): """ Base Slack Operator class. :param slack_conn_id: :ref:`Sl...
class SlackAPIOperator(BaseOperator): ''' Base Slack Operator class. :param slack_conn_id: :ref:`Slack API Connection <howto/connection:slack>` which its password is Slack API token. :param method: The Slack API Method to Call (https://api.slack.com/methods). :param api_params: API Method c...
6
3
13
1
10
2
2
0.51
1
11
2
2
4
7
4
4
69
7
41
25
24
21
21
13
16
3
1
1
6