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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8,800 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/hooks/campaign_manager.py | google.marketing_platform.hooks.campaign_manager.GoogleCampaignManagerHook | from typing import TYPE_CHECKING, Any
from googleapiclient.discovery import Resource, build
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from collections.abc import Sequence
from airflow.exceptions import AirflowException
class GoogleCampaignManagerHook(GoogleBaseHook):
"""Hook for ... |
class GoogleCampaignManagerHook(GoogleBaseHook):
'''Hook for Google Campaign Manager.'''
def __init__(self, api_version: str='v4', gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None) -> None:
pass
def get_conn(self) -> Resource:
'''Retrieve conne... | 15 | 12 | 20 | 1 | 13 | 6 | 1 | 0.45 | 1 | 9 | 1 | 0 | 12 | 1 | 13 | 47 | 280 | 25 | 178 | 67 | 129 | 80 | 56 | 32 | 42 | 3 | 3 | 2 | 19 |
8,801 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/hooks/display_video.py | google.marketing_platform.hooks.display_video.GoogleDisplayVideo360Hook | from typing import Any
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from collections.abc import Sequence
from googleapiclient.discovery import Resource, build
class GoogleDisplayVideo360Hook(GoogleBaseHook):
"""Hook for Google Display & Video 360."""
_conn: Resource | None = Non... |
class GoogleDisplayVideo360Hook(GoogleBaseHook):
'''Hook for Google Display & Video 360.'''
def __init__(self, api_version: str='v4', gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs) -> None:
pass
def get_conn_to_display_video(self) -> Resou... | 8 | 6 | 12 | 1 | 7 | 4 | 1 | 0.62 | 1 | 6 | 0 | 0 | 14 | 1 | 15 | 49 | 196 | 31 | 102 | 36 | 79 | 63 | 48 | 29 | 32 | 2 | 3 | 1 | 17 |
8,802 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/hooks/search_ads.py | google.marketing_platform.hooks.search_ads.GoogleSearchAdsHook | from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from googleapiclient.discovery import build
from collections.abc import Sequence
class GoogleSearchAdsHook(GoogleBaseHook):
"""Hook for Google Search Ads 360."""
_conn: build | None = None
def __init__(self, api_version: str='v2'... |
class GoogleSearchAdsHook(GoogleBaseHook):
'''Hook for Google Search Ads 360.'''
def __init__(self, api_version: str='v2', gcp_conn_id: str='google_cloud_default', impersonation_chain: str | Sequence[str] | None=None, **kwargs) -> None:
pass
def get_conn(self):
'''Retrieve connection to G... | 3 | 2 | 12 | 0 | 12 | 1 | 2 | 0.08 | 1 | 3 | 0 | 0 | 2 | 1 | 2 | 36 | 30 | 3 | 25 | 12 | 16 | 2 | 10 | 6 | 7 | 2 | 3 | 1 | 3 |
8,803 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/hooks/search_ads.py | google.marketing_platform.hooks.search_ads.GoogleSearchAdsReportingHook | from google.oauth2.credentials import Credentials
from airflow.exceptions import AirflowException
from googleapiclient.discovery import build
from typing import TYPE_CHECKING, Any
from functools import cached_property
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
class GoogleSearchAdsRep... |
class GoogleSearchAdsReportingHook(GoogleBaseHook):
'''Hook for the Google Search Ads 360 Reporting API.'''
def __init__(self, api_version: str | None=None, gcp_conn_id: str='google_search_ads_default', **kwargs) -> None:
pass
def _get_config(self) -> None:
'''
Set up Google Searc... | 14 | 8 | 13 | 1 | 8 | 4 | 1 | 0.49 | 1 | 7 | 1 | 0 | 11 | 2 | 11 | 45 | 163 | 21 | 95 | 43 | 67 | 47 | 54 | 27 | 42 | 3 | 3 | 1 | 16 |
8,804 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/links/analytics_admin.py | google.marketing_platform.links.analytics_admin.GoogleAnalyticsBaseLink | from airflow.providers.google.version_compat import AIRFLOW_V_3_0_PLUS, BaseOperator
from typing import TYPE_CHECKING, ClassVar
class GoogleAnalyticsBaseLink(BaseOperatorLink):
"""
Base class for Google Analytics links.
:meta private:
"""
name: ClassVar[str]
key: ClassVar[str]
format_str: ... |
class GoogleAnalyticsBaseLink(BaseOperatorLink):
'''
Base class for Google Analytics links.
:meta private:
'''
def get_link(self, operator: BaseOperator, *, ti_key: TaskInstanceKey) -> str:
pass | 2 | 1 | 5 | 0 | 5 | 1 | 2 | 0.56 | 1 | 2 | 1 | 1 | 1 | 0 | 1 | 1 | 16 | 3 | 9 | 4 | 7 | 5 | 9 | 3 | 7 | 2 | 1 | 1 | 2 |
8,805 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/links/analytics_admin.py | google.marketing_platform.links.analytics_admin.GoogleAnalyticsPropertyLink | class GoogleAnalyticsPropertyLink(GoogleAnalyticsBaseLink):
"""Helper class for constructing Google Analytics Property Link."""
name = 'Data Analytics Property'
key = 'data_analytics_property'
format_str = 'p{property_id}/'
@staticmethod
def persist(context: Context, property_id: str):
... | class GoogleAnalyticsPropertyLink(GoogleAnalyticsBaseLink):
'''Helper class for constructing Google Analytics Property Link.'''
@staticmethod
def persist(context: Context, property_id: str):
pass | 3 | 1 | 10 | 0 | 10 | 0 | 1 | 0.07 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 18 | 2 | 15 | 10 | 8 | 1 | 6 | 5 | 4 | 1 | 2 | 0 | 1 |
8,806 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/analytics_admin.py | google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminCreateDataStreamOperator | from collections.abc import Sequence
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.analytics.admin_v1beta import Account, DataStream, GoogleAdsLink, Property
from airflow.providers.google.marketing_... |
class GoogleAnalyticsAdminCreateDataStreamOperator(GoogleCloudBaseOperator):
'''
Creates Data stream.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleAnalyticsAdminCreateDataStreamOperator`
:param property_id: ID of the... | 3 | 1 | 19 | 0 | 19 | 0 | 1 | 0.49 | 1 | 7 | 1 | 0 | 2 | 7 | 2 | 3 | 72 | 5 | 45 | 27 | 28 | 22 | 17 | 13 | 14 | 1 | 2 | 0 | 2 |
8,807 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/analytics_admin.py | google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminCreatePropertyOperator | from google.analytics.admin_v1beta import Account, DataStream, GoogleAdsLink, Property
from airflow.providers.google.marketing_platform.hooks.analytics_admin import GoogleAnalyticsAdminHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.operators.cloud_base impor... |
class GoogleAnalyticsAdminCreatePropertyOperator(GoogleCloudBaseOperator):
'''
Creates property.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleAnalyticsAdminCreatePropertyOperator`
:param analytics_property: The prope... | 3 | 1 | 21 | 1 | 20 | 0 | 1 | 0.45 | 1 | 9 | 2 | 0 | 2 | 6 | 2 | 3 | 74 | 6 | 47 | 26 | 31 | 21 | 18 | 13 | 15 | 1 | 2 | 0 | 2 |
8,808 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/analytics_admin.py | google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminDeleteDataStreamOperator | from airflow.providers.google.marketing_platform.hooks.analytics_admin import GoogleAnalyticsAdminHook
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from collections.abc import Sequence
class GoogleAnalyticsAd... |
class GoogleAnalyticsAdminDeleteDataStreamOperator(GoogleCloudBaseOperator):
'''
Deletes Data stream.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleAnalyticsAdminDeleteDataStreamOperator`
:param property_id: ID of the... | 3 | 1 | 19 | 0 | 19 | 0 | 1 | 0.47 | 1 | 6 | 1 | 0 | 2 | 7 | 2 | 3 | 71 | 5 | 45 | 26 | 28 | 21 | 17 | 12 | 14 | 1 | 2 | 0 | 2 |
8,809 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/analytics_admin.py | google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminDeletePropertyOperator | from airflow.providers.google.marketing_platform.hooks.analytics_admin import GoogleAnalyticsAdminHook
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.analytics.admin_v1beta import Account, DataStream... |
class GoogleAnalyticsAdminDeletePropertyOperator(GoogleCloudBaseOperator):
'''
Soft-delete property.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleAnalyticsAdminDeletePropertyOperator`
:param property_id: The id of th... | 3 | 1 | 18 | 0 | 18 | 0 | 1 | 0.49 | 1 | 6 | 1 | 0 | 2 | 6 | 2 | 3 | 66 | 5 | 41 | 25 | 25 | 20 | 16 | 12 | 13 | 1 | 2 | 0 | 2 |
8,810 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/analytics_admin.py | google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminGetGoogleAdsLinkOperator | from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from collections.abc import Sequence
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.analytics.admin_v1beta import Account, DataStream, GoogleAdsLink, Property
from airflow.exceptions import AirflowNo... |
class GoogleAnalyticsAdminGetGoogleAdsLinkOperator(GoogleCloudBaseOperator):
'''
Gets a Google Ads link associated with a given property.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleAnalyticsAdminGetGoogleAdsLinkOperato... | 3 | 1 | 23 | 0 | 23 | 0 | 2 | 0.4 | 1 | 7 | 2 | 0 | 2 | 7 | 2 | 3 | 79 | 5 | 53 | 29 | 36 | 21 | 20 | 14 | 17 | 2 | 2 | 1 | 3 |
8,811 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/analytics_admin.py | google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminListAccountsOperator | from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from airflow.providers.google.marketing_platform.hooks.analytics_admin import GoogleAnalyticsAdminHook
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from collections.abc import Sequence
from google.analytics.ad... |
class GoogleAnalyticsAdminListAccountsOperator(GoogleCloudBaseOperator):
'''
Lists all accounts to which the user has access.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleAnalyticsAdminListAccountsOperator`
:param pa... | 3 | 1 | 24 | 0 | 24 | 0 | 2 | 0.41 | 1 | 8 | 1 | 0 | 2 | 8 | 2 | 3 | 81 | 5 | 54 | 31 | 36 | 22 | 20 | 16 | 17 | 2 | 2 | 0 | 3 |
8,812 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/analytics_admin.py | google.marketing_platform.operators.analytics_admin.GoogleAnalyticsAdminListGoogleAdsLinksOperator | from collections.abc import Sequence
from airflow.providers.google.marketing_platform.hooks.analytics_admin import GoogleAnalyticsAdminHook
from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.analytics.ad... |
class GoogleAnalyticsAdminListGoogleAdsLinksOperator(GoogleCloudBaseOperator):
'''
Lists all Google Ads links associated with a given property.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleAnalyticsAdminListGoogleAdsLink... | 3 | 1 | 25 | 0 | 25 | 0 | 2 | 0.39 | 1 | 7 | 1 | 0 | 2 | 8 | 2 | 3 | 84 | 5 | 57 | 31 | 39 | 22 | 20 | 16 | 17 | 2 | 2 | 0 | 3 |
8,813 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/campaign_manager.py | google.marketing_platform.operators.campaign_manager.GoogleCampaignManagerBatchInsertConversionsOperator | from typing import TYPE_CHECKING, Any
from airflow.providers.google.version_compat import BaseOperator
from airflow.providers.google.marketing_platform.hooks.campaign_manager import GoogleCampaignManagerHook
from collections.abc import Sequence
class GoogleCampaignManagerBatchInsertConversionsOperator(BaseOperator):
... |
class GoogleCampaignManagerBatchInsertConversionsOperator(BaseOperator):
'''
Inserts conversions.
.. seealso::
Check official API docs:
`https://developers.google.com/doubleclick-advertisers/rest/v4/conversions/batchinsert`
.. seealso::
For more information on how to use this op... | 3 | 1 | 20 | 0 | 20 | 0 | 1 | 0.6 | 1 | 8 | 1 | 0 | 2 | 9 | 2 | 2 | 83 | 6 | 48 | 28 | 32 | 29 | 17 | 15 | 14 | 1 | 1 | 0 | 2 |
8,814 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/campaign_manager.py | google.marketing_platform.operators.campaign_manager.GoogleCampaignManagerBatchUpdateConversionsOperator | from collections.abc import Sequence
from typing import TYPE_CHECKING, Any
from airflow.providers.google.marketing_platform.hooks.campaign_manager import GoogleCampaignManagerHook
from airflow.providers.google.version_compat import BaseOperator
class GoogleCampaignManagerBatchUpdateConversionsOperator(BaseOperator):
... |
class GoogleCampaignManagerBatchUpdateConversionsOperator(BaseOperator):
'''
Updates existing conversions.
.. seealso::
Check official API docs:
`https://developers.google.com/doubleclick-advertisers/rest/v4/conversions/batchupdate`
.. seealso::
For more information on how to us... | 3 | 1 | 20 | 0 | 20 | 0 | 1 | 0.6 | 1 | 8 | 1 | 0 | 2 | 9 | 2 | 2 | 83 | 6 | 48 | 28 | 32 | 29 | 17 | 15 | 14 | 1 | 1 | 0 | 2 |
8,815 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/campaign_manager.py | google.marketing_platform.operators.campaign_manager.GoogleCampaignManagerDeleteReportOperator | from airflow.exceptions import AirflowException
from airflow.providers.google.marketing_platform.hooks.campaign_manager import GoogleCampaignManagerHook
from collections.abc import Sequence
from airflow.providers.google.version_compat import BaseOperator
class GoogleCampaignManagerDeleteReportOperator(BaseOperator):
... |
class GoogleCampaignManagerDeleteReportOperator(BaseOperator):
'''
Deletes a report by its ID.
.. seealso::
Check official API docs:
`https://developers.google.com/doubleclick-advertisers/rest/v4/reports/delete`
.. seealso::
For more information on how to use this operator, take... | 3 | 1 | 21 | 1 | 20 | 0 | 4 | 0.45 | 1 | 5 | 2 | 0 | 2 | 6 | 2 | 2 | 78 | 7 | 49 | 25 | 36 | 22 | 27 | 15 | 24 | 4 | 1 | 2 | 7 |
8,816 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/campaign_manager.py | google.marketing_platform.operators.campaign_manager.GoogleCampaignManagerDownloadReportOperator | from googleapiclient import http
from airflow.providers.google.cloud.hooks.gcs import GCSHook
import tempfile
import uuid
from airflow.providers.google.marketing_platform.hooks.campaign_manager import GoogleCampaignManagerHook
from airflow.providers.google.version_compat import BaseOperator
from collections.abc import ... |
class GoogleCampaignManagerDownloadReportOperator(BaseOperator):
'''
Retrieves a report and uploads it to GCS bucket.
.. seealso::
Check official API docs:
`https://developers.google.com/doubleclick-advertisers/rest/v4/reports/get`
.. seealso::
For more information on how to use... | 6 | 1 | 19 | 1 | 17 | 1 | 2 | 0.35 | 1 | 7 | 2 | 0 | 3 | 10 | 4 | 4 | 122 | 11 | 82 | 44 | 62 | 29 | 42 | 28 | 37 | 3 | 1 | 2 | 8 |
8,817 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/campaign_manager.py | google.marketing_platform.operators.campaign_manager.GoogleCampaignManagerInsertReportOperator | from airflow.providers.google.marketing_platform.hooks.campaign_manager import GoogleCampaignManagerHook
from typing import TYPE_CHECKING, Any
from collections.abc import Sequence
import json
from airflow.providers.google.version_compat import BaseOperator
class GoogleCampaignManagerInsertReportOperator(BaseOperator):... |
class GoogleCampaignManagerInsertReportOperator(BaseOperator):
'''
Creates a report.
.. seealso::
Check official API docs:
`https://developers.google.com/doubleclick-advertisers/rest/v4/reports/insert`
.. seealso::
For more information on how to use this operator, take a look at... | 4 | 1 | 11 | 0 | 11 | 0 | 1 | 0.54 | 1 | 6 | 1 | 0 | 3 | 5 | 3 | 3 | 71 | 8 | 41 | 24 | 28 | 22 | 22 | 14 | 18 | 2 | 1 | 2 | 4 |
8,818 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/campaign_manager.py | google.marketing_platform.operators.campaign_manager.GoogleCampaignManagerRunReportOperator | from airflow.providers.google.marketing_platform.hooks.campaign_manager import GoogleCampaignManagerHook
from airflow.providers.google.version_compat import BaseOperator
from collections.abc import Sequence
class GoogleCampaignManagerRunReportOperator(BaseOperator):
"""
Runs a report.
.. seealso::
... |
class GoogleCampaignManagerRunReportOperator(BaseOperator):
'''
Runs a report.
.. seealso::
Check official API docs:
`https://developers.google.com/doubleclick-advertisers/rest/v4/reports/run`
.. seealso::
For more information on how to use this operator, take a look at the guid... | 3 | 1 | 17 | 0 | 17 | 0 | 1 | 0.51 | 1 | 5 | 1 | 0 | 2 | 6 | 2 | 2 | 71 | 6 | 43 | 23 | 30 | 22 | 18 | 13 | 15 | 1 | 1 | 0 | 2 |
8,819 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/display_video.py | google.marketing_platform.operators.display_video.GoogleDisplayVideo360CreateSDFDownloadTaskOperator | from typing import TYPE_CHECKING, Any
from airflow.providers.google.version_compat import BaseOperator
from airflow.providers.google.marketing_platform.hooks.display_video import GoogleDisplayVideo360Hook
from collections.abc import Sequence
class GoogleDisplayVideo360CreateSDFDownloadTaskOperator(BaseOperator):
"... |
class GoogleDisplayVideo360CreateSDFDownloadTaskOperator(BaseOperator):
'''
Creates an SDF operation task.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleDisplayVideo360CreateSDFDownloadTaskOperator`
.. seealso::
... | 3 | 1 | 15 | 2 | 13 | 0 | 1 | 0.77 | 1 | 6 | 1 | 0 | 2 | 4 | 2 | 2 | 64 | 9 | 31 | 19 | 20 | 24 | 16 | 11 | 13 | 1 | 1 | 0 | 2 |
8,820 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/display_video.py | google.marketing_platform.operators.display_video.GoogleDisplayVideo360SDFtoGCSOperator | import tempfile
from airflow.providers.google.cloud.hooks.gcs import GCSHook
import zipfile
from collections.abc import Sequence
from airflow.providers.google.version_compat import BaseOperator
from airflow.providers.google.marketing_platform.hooks.display_video import GoogleDisplayVideo360Hook
import os
class GoogleD... |
class GoogleDisplayVideo360SDFtoGCSOperator(BaseOperator):
'''
Download SDF media and save it in the Google Cloud Storage.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleDisplayVideo360SDFtoGCSOperator`
.. seealso::
... | 3 | 1 | 25 | 2 | 23 | 0 | 1 | 0.46 | 1 | 6 | 2 | 0 | 2 | 7 | 2 | 2 | 86 | 10 | 52 | 27 | 38 | 24 | 24 | 15 | 21 | 1 | 1 | 1 | 2 |
8,821 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/search_ads.py | google.marketing_platform.operators.search_ads.GoogleSearchAdsGetCustomColumnOperator | class GoogleSearchAdsGetCustomColumnOperator(_GoogleSearchAdsBaseOperator):
"""
Retrieve details of a custom column for the given customer_id and campaign_id.
.. seealso:
For API documentation check:
https://developers.google.com/search-ads/reporting/api/reference/rest/v0/customers.customCo... | class GoogleSearchAdsGetCustomColumnOperator(_GoogleSearchAdsBaseOperator):
'''
Retrieve details of a custom column for the given customer_id and campaign_id.
.. seealso:
For API documentation check:
https://developers.google.com/search-ads/reporting/api/reference/rest/v0/customers.customCol... | 3 | 1 | 11 | 0 | 11 | 0 | 1 | 0.57 | 1 | 2 | 0 | 0 | 2 | 2 | 2 | 4 | 41 | 5 | 23 | 12 | 14 | 13 | 10 | 6 | 7 | 1 | 2 | 0 | 2 |
8,822 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/search_ads.py | google.marketing_platform.operators.search_ads.GoogleSearchAdsGetFieldOperator | from typing import TYPE_CHECKING, Any
class GoogleSearchAdsGetFieldOperator(_GoogleSearchAdsBaseOperator):
"""
Retrieve metadata for a resource or a field.
.. seealso:
For API documentation check:
https://developers.google.com/search-ads/reporting/api/reference/rest/v0/searchAds360Fields/g... |
class GoogleSearchAdsGetFieldOperator(_GoogleSearchAdsBaseOperator):
'''
Retrieve metadata for a resource or a field.
.. seealso:
For API documentation check:
https://developers.google.com/search-ads/reporting/api/reference/rest/v0/searchAds360Fields/get
.. seealso::
For more in... | 3 | 1 | 7 | 0 | 7 | 0 | 1 | 0.86 | 1 | 3 | 0 | 0 | 2 | 1 | 2 | 4 | 31 | 5 | 14 | 10 | 6 | 12 | 9 | 5 | 6 | 1 | 2 | 0 | 2 |
8,823 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/search_ads.py | google.marketing_platform.operators.search_ads.GoogleSearchAdsListCustomColumnsOperator | class GoogleSearchAdsListCustomColumnsOperator(_GoogleSearchAdsBaseOperator):
"""
List all custom columns.
.. seealso:
For API documentation check:
https://developers.google.com/search-ads/reporting/api/reference/rest/v0/customers.customColumns/list
.. seealso::
For more inform... | class GoogleSearchAdsListCustomColumnsOperator(_GoogleSearchAdsBaseOperator):
'''
List all custom columns.
.. seealso:
For API documentation check:
https://developers.google.com/search-ads/reporting/api/reference/rest/v0/customers.customColumns/list
.. seealso::
For more informat... | 3 | 1 | 7 | 0 | 7 | 0 | 1 | 0.86 | 1 | 2 | 0 | 0 | 2 | 1 | 2 | 4 | 31 | 5 | 14 | 10 | 6 | 12 | 9 | 5 | 6 | 1 | 2 | 0 | 2 |
8,824 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/search_ads.py | google.marketing_platform.operators.search_ads.GoogleSearchAdsSearchFieldsOperator | from collections.abc import Sequence
from typing import TYPE_CHECKING, Any
class GoogleSearchAdsSearchFieldsOperator(_GoogleSearchAdsBaseOperator):
"""
Retrieve metadata for resource(s) or field(s) by the query syntax.
.. seealso:
For API documentation check:
https://developers.google.com/... |
class GoogleSearchAdsSearchFieldsOperator(_GoogleSearchAdsBaseOperator):
'''
Retrieve metadata for resource(s) or field(s) by the query syntax.
.. seealso:
For API documentation check:
https://developers.google.com/search-ads/reporting/api/reference/rest/v0/searchAds360Fields/search
.. ... | 3 | 1 | 11 | 1 | 11 | 1 | 1 | 0.7 | 1 | 4 | 0 | 0 | 2 | 3 | 2 | 4 | 52 | 7 | 27 | 15 | 17 | 19 | 12 | 8 | 9 | 1 | 2 | 0 | 2 |
8,825 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/search_ads.py | google.marketing_platform.operators.search_ads.GoogleSearchAdsSearchOperator | from collections.abc import Sequence
class GoogleSearchAdsSearchOperator(_GoogleSearchAdsBaseOperator):
"""
Search a report by query.
.. seealso:
For API documentation check:
https://developers.google.com/search-ads/reporting/api/reference/rest/v0/customers.searchAds360/search
.. seea... |
class GoogleSearchAdsSearchOperator(_GoogleSearchAdsBaseOperator):
'''
Search a report by query.
.. seealso:
For API documentation check:
https://developers.google.com/search-ads/reporting/api/reference/rest/v0/customers.searchAds360/search
.. seealso::
For more information on h... | 3 | 1 | 17 | 0 | 17 | 0 | 1 | 0.64 | 1 | 4 | 0 | 0 | 2 | 7 | 2 | 4 | 70 | 6 | 39 | 23 | 25 | 25 | 16 | 12 | 13 | 1 | 2 | 0 | 2 |
8,826 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/operators/search_ads.py | google.marketing_platform.operators.search_ads._GoogleSearchAdsBaseOperator | from airflow.providers.google.version_compat import BaseOperator
from collections.abc import Sequence
from airflow.providers.google.marketing_platform.hooks.search_ads import GoogleSearchAdsReportingHook
from functools import cached_property
class _GoogleSearchAdsBaseOperator(BaseOperator):
"""
Base class to u... |
class _GoogleSearchAdsBaseOperator(BaseOperator):
'''
Base class to use in NextGen operator.
:param api_version: The version of the API that will be requested for example 'v0'.
:param gcp_conn_id: The connection ID to use when fetching connection info.
'''
def __init__(self, *, api_version: st... | 4 | 1 | 8 | 0 | 8 | 0 | 1 | 0.24 | 1 | 3 | 1 | 5 | 2 | 2 | 2 | 2 | 30 | 4 | 21 | 13 | 11 | 5 | 8 | 6 | 5 | 1 | 1 | 0 | 2 |
8,827 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/sensors/campaign_manager.py | google.marketing_platform.sensors.campaign_manager.GoogleCampaignManagerReportSensor | from airflow.providers.google.marketing_platform.hooks.campaign_manager import GoogleCampaignManagerHook
from collections.abc import Sequence
class GoogleCampaignManagerReportSensor(BaseSensorOperator):
"""
Check if report is ready.
.. seealso::
Check official API docs:
https://developers.... |
class GoogleCampaignManagerReportSensor(BaseSensorOperator):
'''
Check if report is ready.
.. seealso::
Check official API docs:
https://developers.google.com/doubleclick-advertisers/rest/v4/reports/get
.. seealso::
For more information on how to use this operator, take a look a... | 3 | 1 | 16 | 0 | 16 | 0 | 1 | 0.58 | 1 | 6 | 1 | 0 | 2 | 8 | 2 | 23 | 66 | 6 | 38 | 24 | 23 | 22 | 17 | 10 | 14 | 1 | 3 | 0 | 2 |
8,828 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/marketing_platform/sensors/display_video.py | google.marketing_platform.sensors.display_video.GoogleDisplayVideo360GetSDFDownloadOperationSensor | from airflow.exceptions import AirflowException
from airflow.providers.google.marketing_platform.hooks.display_video import GoogleDisplayVideo360Hook
from collections.abc import Sequence
class GoogleDisplayVideo360GetSDFDownloadOperationSensor(BaseSensorOperator):
"""
Sensor for detecting the completion of SDF... |
class GoogleDisplayVideo360GetSDFDownloadOperationSensor(BaseSensorOperator):
'''
Sensor for detecting the completion of SDF operation.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleDisplayVideo360GetSDFDownloadOperationS... | 3 | 1 | 16 | 0 | 16 | 0 | 2 | 0.47 | 1 | 7 | 2 | 0 | 2 | 6 | 2 | 23 | 59 | 6 | 36 | 23 | 23 | 17 | 19 | 13 | 16 | 3 | 3 | 1 | 4 |
8,829 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/suite/hooks/calendar.py | google.suite.hooks.calendar.GoogleCalendarHook | from typing import TYPE_CHECKING, Any
from airflow.exceptions import AirflowException
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from collections.abc import Sequence
from googleapiclient.discovery import build
class GoogleCalendarHook(GoogleBaseHook):
"""
Interact with Google ... |
class GoogleCalendarHook(GoogleBaseHook):
'''
Interact with Google Calendar via Google Cloud connection.
Reading and writing cells in Google Sheet: https://developers.google.com/calendar/api/v3/reference
:param gcp_conn_id: The connection ID to use when fetching connection info.
:param api_version:... | 5 | 4 | 38 | 2 | 25 | 12 | 2 | 0.61 | 1 | 10 | 1 | 0 | 4 | 2 | 4 | 38 | 173 | 14 | 99 | 46 | 62 | 60 | 27 | 14 | 22 | 3 | 3 | 2 | 8 |
8,830 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/suite/hooks/drive.py | google.suite.hooks.drive.GoogleDriveHook | from googleapiclient.http import HttpRequest, MediaFileUpload
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from googleapiclient.discovery import Resource, build
from typing import IO, Any
from collections.abc import Sequence
from googleapiclient.errors import Error as GoogleApiClientErro... |
class GoogleDriveHook(GoogleBaseHook):
'''
Hook for the Google Drive APIs.
:param api_version: API version used (for example v3).
:param gcp_conn_id: The connection ID to use when fetching connection info.
:param impersonation_chain: Optional service account to impersonate using short-term
... | 11 | 9 | 26 | 2 | 18 | 7 | 3 | 0.44 | 1 | 8 | 0 | 0 | 10 | 1 | 10 | 44 | 287 | 32 | 177 | 62 | 149 | 78 | 91 | 44 | 80 | 5 | 3 | 2 | 26 |
8,831 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/suite/hooks/sheets.py | google.suite.hooks.sheets.GSheetsHook | from typing import Any
from airflow.exceptions import AirflowException
from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
from googleapiclient.discovery import build
from google.api_core.client_options import ClientOptions
from collections.abc import Sequence
class GSheetsHook(GoogleBaseHook)... |
class GSheetsHook(GoogleBaseHook):
'''
Interact with Google Sheets via Google Cloud connection.
Reading and writing cells in Google Sheet: https://developers.google.com/sheets/api/guides/values
:param gcp_conn_id: The connection ID to use when fetching connection info.
:param api_version: API Versi... | 13 | 12 | 29 | 3 | 17 | 10 | 1 | 0.66 | 1 | 9 | 1 | 0 | 12 | 3 | 12 | 46 | 382 | 49 | 201 | 92 | 138 | 132 | 63 | 42 | 50 | 3 | 3 | 1 | 16 |
8,832 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/suite/operators/sheets.py | google.suite.operators.sheets.GoogleSheetsCreateSpreadsheetOperator | from typing import Any
from airflow.providers.google.suite.hooks.sheets import GSheetsHook
from airflow.providers.google.version_compat import BaseOperator
from collections.abc import Sequence
class GoogleSheetsCreateSpreadsheetOperator(BaseOperator):
"""
Creates a new spreadsheet.
.. seealso::
Fo... |
class GoogleSheetsCreateSpreadsheetOperator(BaseOperator):
'''
Creates a new spreadsheet.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GoogleSheetsCreateSpreadsheetOperator`
:param spreadsheet: an instance of Spreadsheet
... | 3 | 1 | 11 | 0 | 11 | 0 | 1 | 0.65 | 1 | 6 | 1 | 0 | 2 | 3 | 2 | 2 | 48 | 5 | 26 | 16 | 16 | 17 | 13 | 9 | 10 | 1 | 1 | 0 | 2 |
8,833 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/suite/sensors/drive.py | google.suite.sensors.drive.GoogleDriveFileExistenceSensor | from collections.abc import Sequence
from airflow.providers.google.suite.hooks.drive import GoogleDriveHook
class GoogleDriveFileExistenceSensor(BaseSensorOperator):
"""
Checks for the existence of a file in Google Cloud Storage.
:param folder_id: The Google drive folder where the file is.
:param file... |
class GoogleDriveFileExistenceSensor(BaseSensorOperator):
'''
Checks for the existence of a file in Google Cloud Storage.
:param folder_id: The Google drive folder where the file is.
:param file_name: The name of the file to check in Google Drive
:param drive_id: Optional. The id of the shared Goog... | 3 | 1 | 12 | 0 | 12 | 0 | 1 | 0.55 | 1 | 5 | 1 | 0 | 2 | 5 | 2 | 23 | 51 | 4 | 31 | 20 | 19 | 17 | 14 | 11 | 11 | 1 | 3 | 0 | 2 |
8,834 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/suite/transfers/gcs_to_gdrive.py | google.suite.transfers.gcs_to_gdrive.GCSToGoogleDriveOperator | from airflow.exceptions import AirflowException
from airflow.providers.google.cloud.hooks.gcs import GCSHook
import tempfile
from airflow.providers.google.version_compat import BaseOperator
from collections.abc import Sequence
from airflow.providers.google.suite.hooks.drive import GoogleDriveHook
class GCSToGoogleDriv... |
class GCSToGoogleDriveOperator(BaseOperator):
'''
Copies objects from a Google Cloud Storage service to a Google Drive service, with renaming if requested.
Using this operator requires the following OAuth 2.0 scope:
.. code-block:: none
https://www.googleapis.com/auth/drive
.. seealso::
... | 4 | 1 | 27 | 3 | 23 | 1 | 3 | 0.59 | 1 | 7 | 3 | 0 | 3 | 9 | 3 | 3 | 140 | 17 | 78 | 34 | 63 | 46 | 38 | 22 | 34 | 5 | 1 | 3 | 8 |
8,835 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/suite/transfers/gcs_to_sheets.py | google.suite.transfers.gcs_to_sheets.GCSToGoogleSheetsOperator | from typing import Any
import csv
from tempfile import NamedTemporaryFile
from airflow.providers.google.cloud.hooks.gcs import GCSHook
from airflow.providers.google.suite.hooks.sheets import GSheetsHook
from collections.abc import Sequence
from airflow.providers.google.version_compat import BaseOperator
class GCSToGoo... |
class GCSToGoogleSheetsOperator(BaseOperator):
'''
Uploads .csv file from Google Cloud Storage to provided Google Spreadsheet.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:GCSToGoogleSheets`
:param spreadsheet_id: The Goog... | 3 | 1 | 22 | 1 | 20 | 1 | 1 | 0.45 | 1 | 7 | 2 | 0 | 2 | 6 | 2 | 2 | 75 | 7 | 47 | 24 | 34 | 21 | 17 | 13 | 14 | 1 | 1 | 1 | 2 |
8,836 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/suite/transfers/local_to_drive.py | google.suite.transfers.local_to_drive.LocalFilesystemToGoogleDriveOperator | from airflow.providers.google.version_compat import BaseOperator
from collections.abc import Sequence
from airflow.exceptions import AirflowFailException
from pathlib import Path
import os
from airflow.providers.google.suite.hooks.drive import GoogleDriveHook
class LocalFilesystemToGoogleDriveOperator(BaseOperator):
... |
class LocalFilesystemToGoogleDriveOperator(BaseOperator):
'''
Upload a list of files to a Google Drive folder.
This operator uploads a list of local files to a Google Drive folder.
The local files can optionally be deleted after upload.
.. seealso::
For more information on how to use this o... | 3 | 1 | 30 | 3 | 27 | 0 | 4 | 0.6 | 1 | 11 | 2 | 0 | 2 | 10 | 2 | 2 | 105 | 12 | 58 | 31 | 42 | 35 | 32 | 18 | 29 | 6 | 1 | 3 | 7 |
8,837 | apache/airflow | apache_airflow/providers/google/src/airflow/providers/google/suite/transfers/sql_to_sheets.py | google.suite.transfers.sql_to_sheets.SQLToGoogleSheetsOperator | from typing import Any
from contextlib import closing
import numbers
from airflow.providers.google.suite.hooks.sheets import GSheetsHook
from airflow.providers.common.sql.operators.sql import BaseSQLOperator
import datetime
from collections.abc import Iterable, Mapping, Sequence
import logging
class SQLToGoogleSheetsO... |
class SQLToGoogleSheetsOperator(BaseSQLOperator):
'''
Copy data from SQL results to provided Google Spreadsheet.
:param sql: The SQL to execute.
:param spreadsheet_id: The Google Sheet ID to interact with.
:param conn_id: the connection ID used to connect to the database.
:param parameters: The... | 5 | 1 | 16 | 1 | 14 | 0 | 3 | 0.3 | 1 | 14 | 1 | 0 | 4 | 8 | 4 | 9 | 98 | 13 | 67 | 37 | 50 | 20 | 41 | 24 | 36 | 6 | 2 | 3 | 10 |
8,838 | apache/airflow | apache_airflow/providers/grpc/src/airflow/providers/grpc/hooks/grpc.py | grpc.hooks.grpc.GrpcHook | from airflow.providers.grpc.version_compat import BaseHook
from google.auth import jwt as google_auth_jwt
from collections.abc import Callable, Generator
from typing import Any
import grpc
from google import auth as google_auth
from google.auth.transport import grpc as google_auth_transport_grpc, requests as google_aut... |
class GrpcHook(BaseHook):
'''
General interaction with gRPC servers.
:param grpc_conn_id: The connection ID to use when fetching connection info.
:param interceptors: a list of gRPC interceptor objects which would be applied
to the connected gRPC channel. None by default.
Each intercept... | 7 | 4 | 21 | 1 | 19 | 1 | 4 | 0.15 | 1 | 10 | 1 | 0 | 4 | 5 | 5 | 17 | 130 | 13 | 102 | 44 | 85 | 15 | 67 | 33 | 58 | 10 | 2 | 3 | 20 |
8,839 | apache/airflow | apache_airflow/providers/grpc/src/airflow/providers/grpc/operators/grpc.py | grpc.operators.grpc.GrpcOperator | from collections.abc import Callable, Sequence
from typing import TYPE_CHECKING, Any
from airflow.providers.grpc.hooks.grpc import GrpcHook
from airflow.providers.grpc.version_compat import BaseOperator
class GrpcOperator(BaseOperator):
"""
Calls a gRPC endpoint to execute an action.
:param stub_class: Th... |
class GrpcOperator(BaseOperator):
'''
Calls a gRPC endpoint to execute an action.
:param stub_class: The stub client to use for this gRPC call
:param call_func: The client function name to call the gRPC endpoint
:param grpc_conn_id: The connection to run the operator against
:param data: The da... | 5 | 1 | 11 | 1 | 10 | 0 | 2 | 0.36 | 1 | 8 | 2 | 0 | 4 | 9 | 4 | 4 | 68 | 8 | 44 | 32 | 26 | 16 | 27 | 19 | 22 | 3 | 1 | 1 | 7 |
8,840 | apache/airflow | apache_airflow/providers/hashicorp/src/airflow/providers/hashicorp/_internal_client/vault_client.py | hashicorp._internal_client.vault_client._VaultClient | from hvac.exceptions import InvalidPath, VaultError
from functools import cached_property
from hvac.api.auth_methods import Kubernetes
from requests.adapters import HTTPAdapter
import hvac
from requests import Response, Session
import os
from airflow.utils.log.logging_mixin import LoggingMixin
from urllib3.util import ... | null | 21 | 7 | 22 | 1 | 18 | 3 | 4 | 0.29 | 1 | 8 | 0 | 0 | 18 | 24 | 18 | 24 | 456 | 42 | 321 | 100 | 265 | 93 | 190 | 63 | 169 | 15 | 1 | 3 | 72 |
8,841 | apache/airflow | apache_airflow/providers/hashicorp/src/airflow/providers/hashicorp/hooks/vault.py | hashicorp.hooks.vault.VaultHook | from airflow.providers.hashicorp._internal_client.vault_client import DEFAULT_KUBERNETES_JWT_PATH, DEFAULT_KV_ENGINE_VERSION, _VaultClient
from typing import TYPE_CHECKING, Any
from airflow.providers.hashicorp.version_compat import BaseHook
from airflow.utils.helpers import merge_dicts
from hvac.exceptions import Vault... | null | 16 | 9 | 22 | 2 | 16 | 4 | 4 | 0.44 | 1 | 11 | 1 | 0 | 11 | 2 | 13 | 25 | 364 | 55 | 214 | 67 | 163 | 95 | 103 | 33 | 85 | 22 | 2 | 3 | 47 |
8,842 | apache/airflow | apache_airflow/providers/hashicorp/src/airflow/providers/hashicorp/secrets/vault.py | hashicorp.secrets.vault.VaultBackend | from airflow.providers.hashicorp._internal_client.vault_client import _VaultClient
from typing import TYPE_CHECKING
from airflow.utils.log.logging_mixin import LoggingMixin
from airflow.secrets import BaseSecretsBackend
class VaultBackend(BaseSecretsBackend, LoggingMixin):
"""
Retrieves Connections and Variabl... | null | 7 | 5 | 25 | 1 | 21 | 4 | 4 | 0.63 | 2 | 7 | 2 | 0 | 6 | 6 | 6 | 38 | 226 | 20 | 126 | 55 | 88 | 80 | 59 | 26 | 50 | 5 | 5 | 2 | 24 |
8,843 | apache/airflow | apache_airflow/providers/apache/hdfs/src/airflow/providers/apache/hdfs/hooks/webhdfs.py | hdfs.hooks.webhdfs.AirflowWebHDFSHookException | from airflow.exceptions import AirflowException
class AirflowWebHDFSHookException(AirflowException):
"""Exception specific for WebHDFS hook.""" |
class AirflowWebHDFSHookException(AirflowException):
'''Exception specific for WebHDFS hook.'''
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 |
8,844 | apache/airflow | apache_airflow/providers/apache/hdfs/src/airflow/providers/apache/hdfs/hooks/webhdfs.py | hdfs.hooks.webhdfs.WebHDFSHook | from airflow.providers.apache.hdfs.version_compat import BaseHook
from typing import Any, cast
import socket
from hdfs import HdfsError, InsecureClient
import requests
class WebHDFSHook(BaseHook):
"""
Interact with HDFS. This class is a wrapper around the hdfscli library.
:param webhdfs_conn_id: The conne... |
class WebHDFSHook(BaseHook):
'''
Interact with HDFS. This class is a wrapper around the hdfscli library.
:param webhdfs_conn_id: The connection id for the webhdfs client to connect to.
:param proxy_user: The user used to authenticate.
'''
def __init__(self, webhdfs_conn_id: str=default_conn_na... | 8 | 6 | 18 | 2 | 11 | 5 | 3 | 0.48 | 1 | 10 | 1 | 0 | 7 | 2 | 7 | 19 | 148 | 25 | 83 | 37 | 71 | 40 | 68 | 31 | 60 | 8 | 2 | 3 | 18 |
8,845 | apache/airflow | apache_airflow/providers/apache/hdfs/src/airflow/providers/apache/hdfs/log/hdfs_task_handler.py | hdfs.log.hdfs_task_handler.HdfsTaskHandler | from airflow.utils.log.logging_mixin import LoggingMixin
import logging
from typing import TYPE_CHECKING
from airflow.configuration import conf
from pathlib import Path
from airflow.utils.log.file_task_handler import FileTaskHandler
from urllib.parse import urlsplit
class HdfsTaskHandler(FileTaskHandler, LoggingMixin)... |
class HdfsTaskHandler(FileTaskHandler, LoggingMixin):
'''
HdfsTaskHandler is a Python logging handler that handles and reads task instance logs.
It extends airflow FileTaskHandler and uploads to and reads from HDFS.
'''
def __init__(self, base_log_folder: str, hdfs_log_folder: str, max_bytes: int=... | 5 | 2 | 13 | 1 | 9 | 3 | 2 | 0.33 | 2 | 4 | 1 | 0 | 5 | 6 | 5 | 49 | 72 | 11 | 46 | 21 | 39 | 15 | 42 | 20 | 36 | 5 | 4 | 2 | 11 |
8,846 | apache/airflow | apache_airflow/providers/apache/hdfs/src/airflow/providers/apache/hdfs/sensors/web_hdfs.py | hdfs.sensors.web_hdfs.MultipleFilesWebHdfsSensor | from collections.abc import Sequence
from typing import TYPE_CHECKING, Any
from airflow.providers.apache.hdfs.version_compat import BaseSensorOperator
class MultipleFilesWebHdfsSensor(BaseSensorOperator):
"""Waits for multiple files in a folder to land in HDFS."""
template_fields: Sequence[str] = ('directory_p... |
class MultipleFilesWebHdfsSensor(BaseSensorOperator):
'''Waits for multiple files in a folder to land in HDFS.'''
def __init__(self, *, directory_path: str, expected_filenames: Sequence[str], webhdfs_conn_id: str='webhdfs_default', **kwargs: Any) -> None:
pass
def poke(self, context: Context) -> ... | 3 | 1 | 13 | 2 | 12 | 0 | 2 | 0.04 | 1 | 7 | 1 | 0 | 2 | 3 | 2 | 23 | 32 | 6 | 25 | 19 | 14 | 1 | 18 | 12 | 14 | 2 | 3 | 1 | 3 |
8,847 | apache/airflow | apache_airflow/providers/apache/hdfs/src/airflow/providers/apache/hdfs/sensors/web_hdfs.py | hdfs.sensors.web_hdfs.WebHdfsSensor | from airflow.providers.apache.hdfs.version_compat import BaseSensorOperator
from collections.abc import Sequence
from typing import TYPE_CHECKING, Any
class WebHdfsSensor(BaseSensorOperator):
"""Waits for a file or folder to land in HDFS."""
template_fields: Sequence[str] = ('filepath',)
def __init__(self... |
class WebHdfsSensor(BaseSensorOperator):
'''Waits for a file or folder to land in HDFS.'''
def __init__(self, *, filepath: str, webhdfs_conn_id: str='webhdfs_default', **kwargs: Any) -> None:
pass
def poke(self, context: Context) -> bool:
pass | 3 | 1 | 5 | 1 | 5 | 0 | 1 | 0.09 | 1 | 5 | 1 | 0 | 2 | 2 | 2 | 23 | 16 | 4 | 11 | 8 | 7 | 1 | 11 | 8 | 7 | 1 | 3 | 0 | 2 |
8,848 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/hooks/hive.py | hive.hooks.hive.HiveCliHook | from tempfile import NamedTemporaryFile, TemporaryDirectory
from airflow.configuration import conf
import re
from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from typing import TYPE_CHECKING, Any, Literal
from airflow.utils.helpers import as_flattened_list
from airflow.security import ... | null | 17 | 11 | 33 | 3 | 25 | 7 | 5 | 0.33 | 1 | 14 | 1 | 2 | 9 | 10 | 12 | 24 | 458 | 51 | 315 | 114 | 260 | 103 | 214 | 71 | 197 | 12 | 2 | 4 | 66 |
8,849 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/hooks/hive.py | hive.hooks.hive.HiveMetastoreHook | from airflow.providers.apache.hive.version_compat import AIRFLOW_VAR_NAME_FORMAT_MAPPING, BaseHook
import socket
from airflow.configuration import conf
from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
from typing import TYPE_CHECKING, Any, Literal
class HiveMetastoreHook(BaseHook):
... |
class HiveMetastoreHook(BaseHook):
'''
Wrapper to interact with the Hive Metastore.
:param metastore_conn_id: reference to the
:ref: `metastore thrift service connection id <howto/connection:hive_metastore>`.
'''
def __init__(self, metastore_conn_id: str=default_conn_name) -> None:
... | 19 | 14 | 17 | 2 | 9 | 6 | 2 | 0.64 | 1 | 12 | 1 | 1 | 15 | 2 | 16 | 28 | 318 | 52 | 162 | 70 | 129 | 104 | 123 | 53 | 99 | 5 | 2 | 3 | 35 |
8,850 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/hooks/hive.py | hive.hooks.hive.HiveServer2Hook | from deprecated import deprecated
from collections.abc import Iterable, Mapping
from airflow.providers.common.sql.hooks.sql import DbApiHook
from typing_extensions import overload
from airflow.configuration import conf
import contextlib
from typing import TYPE_CHECKING, Any, Literal
import csv
from airflow.exceptions i... |
class HiveServer2Hook(DbApiHook):
'''
Wrapper around the pyhive library.
Notes:
* the default auth_mechanism is PLAIN, to override it you
can specify it in the ``extra`` of your connection in the UI
* the default for run_set_variable_statements is true, if you
are using impala you may need ... | 15 | 6 | 33 | 4 | 21 | 9 | 4 | 0.52 | 1 | 13 | 1 | 1 | 6 | 0 | 6 | 67 | 225 | 31 | 130 | 75 | 89 | 67 | 87 | 41 | 76 | 10 | 3 | 4 | 25 |
8,851 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/operators/hive.py | hive.operators.hive.HiveOperator | from functools import cached_property
import os
from airflow.providers.apache.hive.hooks.hive import HiveCliHook
from airflow.configuration import conf
import re
from airflow.providers.apache.hive.version_compat import AIRFLOW_VAR_NAME_FORMAT_MAPPING, BaseOperator, context_to_airflow_vars
from collections.abc import Se... | null | 9 | 3 | 13 | 1 | 12 | 1 | 2 | 0.32 | 1 | 7 | 1 | 0 | 7 | 13 | 7 | 7 | 144 | 13 | 100 | 47 | 75 | 32 | 51 | 30 | 43 | 4 | 1 | 2 | 13 |
8,852 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/operators/hive_stats.py | hive.operators.hive_stats.HiveStatsCollectionOperator | from airflow.providers.apache.hive.version_compat import BaseOperator
from airflow.providers.mysql.hooks.mysql import MySqlHook
from airflow.exceptions import AirflowException
from airflow.providers.apache.hive.hooks.hive import HiveMetastoreHook
from airflow.providers.presto.hooks.presto import PrestoHook
from typing ... |
class HiveStatsCollectionOperator(BaseOperator):
'''
Gather partition statistics and insert them into MySQL.
Statistics are gathered with a dynamically generated Presto query and
inserted with this format. Stats overwrite themselves if you rerun the
same date/partition.
.. code-block:: sql
... | 4 | 2 | 37 | 2 | 34 | 0 | 4 | 0.26 | 1 | 10 | 4 | 0 | 3 | 10 | 3 | 3 | 148 | 15 | 106 | 46 | 88 | 28 | 62 | 32 | 58 | 6 | 1 | 3 | 12 |
8,853 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/plugins/hive.py | hive.plugins.hive.HivePlugin | from airflow.plugins_manager import AirflowPlugin
from airflow.providers.apache.hive.macros.hive import closest_ds_partition, max_partition
class HivePlugin(AirflowPlugin):
"""Hive plugin - delivering macros used by users that use the provider."""
name = 'hive'
macros = [max_partition, closest_ds_partition... |
class HivePlugin(AirflowPlugin):
'''Hive plugin - delivering macros used by users that use the provider.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 5 | 1 | 3 | 3 | 2 | 1 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
8,854 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/sensors/hive_partition.py | hive.sensors.hive_partition.HivePartitionSensor | from airflow.providers.apache.hive.hooks.hive import HiveMetastoreHook
from typing import TYPE_CHECKING, Any
from airflow.providers.apache.hive.version_compat import BaseSensorOperator
from collections.abc import Sequence
class HivePartitionSensor(BaseSensorOperator):
"""
Waits for a partition to show up in Hi... |
class HivePartitionSensor(BaseSensorOperator):
'''
Waits for a partition to show up in Hive.
Note: Because ``partition`` supports general logical operators, it
can be inefficient. Consider using NamedHivePartitionSensor instead if
you don't need the full flexibility of HivePartitionSensor.
:par... | 3 | 1 | 12 | 0 | 12 | 0 | 3 | 0.48 | 1 | 6 | 1 | 0 | 2 | 4 | 2 | 23 | 50 | 5 | 31 | 19 | 19 | 15 | 18 | 10 | 15 | 3 | 3 | 1 | 5 |
8,855 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/sensors/metastore_partition.py | hive.sensors.metastore_partition.MetastorePartitionSensor | from collections.abc import Sequence
from typing import TYPE_CHECKING, Any
from airflow.providers.common.sql.sensors.sql import SqlSensor
class MetastorePartitionSensor(SqlSensor):
"""
An alternative to the HivePartitionSensor that talk directly to the MySQL db.
This was created as a result of observing s... |
class MetastorePartitionSensor(SqlSensor):
'''
An alternative to the HivePartitionSensor that talk directly to the MySQL db.
This was created as a result of observing sub optimal queries generated by the
Metastore thrift service when hitting subpartitioned tables. The Thrift service's
queries were ... | 3 | 1 | 18 | 0 | 16 | 3 | 2 | 0.56 | 1 | 3 | 0 | 0 | 2 | 6 | 2 | 26 | 57 | 5 | 34 | 19 | 23 | 19 | 17 | 11 | 14 | 3 | 4 | 2 | 4 |
8,856 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/sensors/named_hive_partition.py | hive.sensors.named_hive_partition.NamedHivePartitionSensor | from collections.abc import Sequence
from typing import TYPE_CHECKING, Any
from airflow.providers.apache.hive.version_compat import BaseSensorOperator
class NamedHivePartitionSensor(BaseSensorOperator):
"""
Waits for a set of partitions to show up in Hive.
:param partition_names: List of fully qualified n... |
class NamedHivePartitionSensor(BaseSensorOperator):
'''
Waits for a set of partitions to show up in Hive.
:param partition_names: List of fully qualified names of the
partitions to wait for. A fully qualified name is of the
form ``schema.table/pk1=pv1/pk2=pv2``, for example,
default... | 6 | 3 | 14 | 2 | 12 | 1 | 3 | 0.3 | 1 | 11 | 1 | 0 | 3 | 4 | 4 | 25 | 79 | 12 | 53 | 30 | 38 | 16 | 40 | 21 | 34 | 3 | 3 | 2 | 11 |
8,857 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/transfers/hive_to_mysql.py | hive.transfers.hive_to_mysql.HiveToMySqlOperator | from collections.abc import Sequence
from airflow.providers.apache.hive.version_compat import BaseOperator, context_to_airflow_vars
from airflow.providers.apache.hive.hooks.hive import HiveServer2Hook
from airflow.providers.mysql.hooks.mysql import MySqlHook
from tempfile import NamedTemporaryFile
class HiveToMySqlOpe... |
class HiveToMySqlOperator(BaseOperator):
'''
Moves data from Hive to MySQL.
Note that for now the data is loaded into memory before being pushed
to MySQL, so this operator should be used for smallish amount of data.
:param sql: SQL query to execute against Hive server. (templated)
:param mysql_... | 4 | 1 | 19 | 1 | 18 | 0 | 2 | 0.36 | 1 | 6 | 2 | 0 | 3 | 8 | 3 | 3 | 96 | 10 | 64 | 34 | 48 | 23 | 40 | 21 | 36 | 4 | 1 | 2 | 7 |
8,858 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/transfers/hive_to_samba.py | hive.transfers.hive_to_samba.HiveToSambaOperator | from tempfile import NamedTemporaryFile
from airflow.providers.apache.hive.version_compat import BaseOperator, context_to_airflow_vars
from airflow.providers.apache.hive.hooks.hive import HiveServer2Hook
from airflow.providers.samba.hooks.samba import SambaHook
from collections.abc import Sequence
class HiveToSambaOpe... |
class HiveToSambaOperator(BaseOperator):
'''
Execute hql code in a specific Hive database and load the results as a csv to a Samba location.
:param hql: the hql to be exported. (templated)
:param destination_filepath: the file path to where the file will be pushed onto samba
:param samba_conn_id: r... | 3 | 1 | 12 | 0 | 12 | 0 | 1 | 0.27 | 1 | 4 | 2 | 0 | 2 | 4 | 2 | 2 | 42 | 4 | 30 | 21 | 19 | 8 | 19 | 12 | 16 | 1 | 1 | 1 | 2 |
8,859 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/transfers/mssql_to_hive.py | hive.transfers.mssql_to_hive.MsSqlToHiveOperator | from airflow.providers.apache.hive.version_compat import BaseOperator
from airflow.providers.apache.hive.hooks.hive import HiveCliHook
from tempfile import NamedTemporaryFile
import csv
from airflow.providers.microsoft.mssql.hooks.mssql import MsSqlHook
import pymssql
from collections.abc import Sequence
class MsSqlTo... |
class MsSqlToHiveOperator(BaseOperator):
'''
Moves data from Microsoft SQL Server to Hive.
The operator runs your query against Microsoft SQL Server, stores
the file locally before loading it into a Hive table. If the
``create`` or ``recreate`` arguments are set to ``True``, a
``CREATE TABLE`` ... | 5 | 2 | 21 | 0 | 20 | 0 | 2 | 0.45 | 1 | 8 | 2 | 0 | 2 | 10 | 3 | 3 | 103 | 8 | 66 | 43 | 47 | 30 | 38 | 25 | 34 | 3 | 1 | 4 | 5 |
8,860 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/transfers/mysql_to_hive.py | hive.transfers.mysql_to_hive.MySqlToHiveOperator | from contextlib import closing
import csv
from tempfile import NamedTemporaryFile
from typing import TYPE_CHECKING, Literal
from collections.abc import Sequence
from airflow.providers.mysql.hooks.mysql import MySqlHook
from airflow.providers.apache.hive.hooks.hive import HiveCliHook
from airflow.providers.apache.hive.v... |
class MySqlToHiveOperator(BaseOperator):
'''
Moves data from MySql to Hive.
The operator runs your query against MySQL, stores the file locally
before loading it into a Hive table.
If the ``create`` or ``recreate`` arguments are set to ``True``,
a ``CREATE TABLE`` and ``DROP TABLE`` statements ... | 5 | 2 | 27 | 0 | 27 | 1 | 2 | 0.43 | 1 | 8 | 2 | 0 | 2 | 13 | 3 | 3 | 129 | 7 | 87 | 48 | 65 | 37 | 41 | 28 | 37 | 4 | 1 | 4 | 6 |
8,861 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/transfers/s3_to_hive.py | hive.transfers.s3_to_hive.S3ToHiveOperator | import tempfile
from airflow.providers.amazon.aws.hooks.s3 import S3Hook
import os
import gzip
from tempfile import NamedTemporaryFile, TemporaryDirectory
from typing import TYPE_CHECKING, Any
from airflow.exceptions import AirflowException
import bz2
from collections.abc import Sequence
from airflow.providers.apache.h... |
class S3ToHiveOperator(BaseOperator):
'''
Moves data from S3 to Hive.
The operator downloads a file from S3, stores the file locally
before loading it into a Hive table.
If the ``create`` or ``recreate`` arguments are set to ``True``,
a ``CREATE TABLE`` and ``DROP TABLE`` statements are generat... | 7 | 1 | 35 | 2 | 32 | 1 | 5 | 0.34 | 1 | 12 | 3 | 0 | 4 | 17 | 5 | 5 | 240 | 23 | 163 | 68 | 135 | 55 | 102 | 42 | 96 | 14 | 1 | 4 | 25 |
8,862 | apache/airflow | apache_airflow/providers/apache/hive/src/airflow/providers/apache/hive/transfers/vertica_to_hive.py | hive.transfers.vertica_to_hive.VerticaToHiveOperator | from typing import TYPE_CHECKING, Any
from airflow.providers.vertica.hooks.vertica import VerticaHook
from airflow.providers.apache.hive.version_compat import BaseOperator
from collections.abc import Sequence
from airflow.providers.apache.hive.hooks.hive import HiveCliHook
import csv
from tempfile import NamedTemporary... |
class VerticaToHiveOperator(BaseOperator):
'''
Moves data from Vertica to Hive.
The operator runs your query against Vertica, stores the file
locally before loading it into a Hive table. If the ``create``
or ``recreate`` arguments are set to ``True``,
a ``CREATE TABLE`` and ``DROP TABLE`` state... | 5 | 2 | 24 | 1 | 21 | 2 | 2 | 0.49 | 1 | 8 | 2 | 0 | 2 | 9 | 3 | 3 | 109 | 9 | 68 | 41 | 50 | 33 | 39 | 26 | 35 | 3 | 1 | 2 | 5 |
8,863 | apache/airflow | apache_airflow/providers/http/src/airflow/providers/http/exceptions.py | http.exceptions.HttpErrorException | from airflow.exceptions import AirflowException
class HttpErrorException(AirflowException):
"""Exception raised for HTTP error in Http hook.""" |
class HttpErrorException(AirflowException):
'''Exception raised for HTTP error in Http hook.'''
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 |
8,864 | apache/airflow | apache_airflow/providers/http/src/airflow/providers/http/exceptions.py | http.exceptions.HttpMethodException | from airflow.exceptions import AirflowException
class HttpMethodException(AirflowException):
"""Exception raised for invalid HTTP methods in Http hook.""" |
class HttpMethodException(AirflowException):
'''Exception raised for invalid HTTP methods in Http hook.'''
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 |
8,865 | apache/airflow | apache_airflow/providers/http/src/airflow/providers/http/hooks/http.py | http.hooks.http.HttpAsyncHook | from aiohttp import ClientResponseError
from collections.abc import Callable
from typing import TYPE_CHECKING, Any, cast
from asgiref.sync import sync_to_async
from airflow.providers.http.version_compat import BaseHook
import aiohttp
from airflow.providers.http.exceptions import HttpErrorException, HttpMethodException
... | null | 4 | 3 | 40 | 3 | 30 | 7 | 9 | 0.27 | 1 | 16 | 2 | 1 | 3 | 6 | 4 | 16 | 178 | 19 | 126 | 49 | 105 | 34 | 89 | 32 | 84 | 22 | 2 | 3 | 34 |
8,866 | apache/airflow | apache_airflow/providers/http/src/airflow/providers/http/hooks/http.py | http.hooks.http.HttpHook | from requests_toolbelt.adapters.socket_options import TCPKeepAliveAdapter
from typing import TYPE_CHECKING, Any, cast
from airflow.providers.http.version_compat import BaseHook
from airflow.exceptions import AirflowException
from collections.abc import Callable
from urllib.parse import urlparse
from requests.auth impor... | null | 18 | 9 | 16 | 1 | 11 | 4 | 2 | 0.44 | 1 | 16 | 1 | 5 | 15 | 7 | 15 | 27 | 274 | 38 | 165 | 71 | 121 | 72 | 116 | 41 | 100 | 5 | 2 | 2 | 34 |
8,867 | apache/airflow | apache_airflow/providers/http/src/airflow/providers/http/operators/http.py | http.operators.http.HttpOperator | import base64
from airflow.exceptions import AirflowException
import pickle
from airflow.providers.http.version_compat import BaseHook, BaseOperator
from aiohttp import BasicAuth
from airflow.utils.helpers import merge_dicts
from requests import Response
from airflow.providers.http.triggers.http import HttpTrigger, ser... |
class HttpOperator(BaseOperator):
'''
Calls an endpoint on an HTTP system to execute an action.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:HttpOperator`
:param http_conn_id: The :ref:`http connection<howto/connection:htt... | 15 | 7 | 19 | 1 | 16 | 2 | 2 | 0.4 | 1 | 15 | 5 | 1 | 10 | 18 | 11 | 11 | 282 | 26 | 186 | 79 | 145 | 74 | 98 | 51 | 85 | 5 | 1 | 2 | 26 |
8,868 | apache/airflow | apache_airflow/providers/http/src/airflow/providers/http/sensors/http.py | http.sensors.http.HttpSensor | from airflow.configuration import conf
from datetime import timedelta
from typing import TYPE_CHECKING, Any
from airflow.exceptions import AirflowException
from airflow.providers.http.hooks.http import HttpHook
from airflow.providers.http.triggers.http import HttpSensorTrigger
from airflow.providers.http.version_compat... |
class HttpSensor(BaseSensorOperator):
'''
Execute HTTP GET statement; return False on failure 404 Not Found or `response_check` returning False.
HTTP Error codes other than 404 (like 403) or Connection Refused Error
would raise an exception and fail the sensor itself directly (no more poking).
To a... | 5 | 1 | 22 | 2 | 21 | 0 | 3 | 0.54 | 1 | 13 | 4 | 0 | 4 | 16 | 4 | 25 | 148 | 19 | 84 | 45 | 60 | 45 | 38 | 24 | 32 | 4 | 3 | 2 | 10 |
8,869 | apache/airflow | apache_airflow/providers/http/src/airflow/providers/http/triggers/http.py | http.triggers.http.HttpSensorTrigger | from collections.abc import AsyncIterator
import asyncio
import aiohttp
from airflow.exceptions import AirflowException
from airflow.providers.http.hooks.http import HttpAsyncHook
from airflow.triggers.base import BaseTrigger, TriggerEvent
from typing import TYPE_CHECKING, Any
class HttpSensorTrigger(BaseTrigger):
... | null | 5 | 3 | 14 | 0 | 13 | 1 | 2 | 0.24 | 1 | 11 | 3 | 0 | 4 | 7 | 4 | 37 | 72 | 5 | 54 | 24 | 40 | 13 | 25 | 13 | 20 | 4 | 5 | 3 | 7 |
8,870 | apache/airflow | apache_airflow/providers/http/src/airflow/providers/http/triggers/http.py | http.triggers.http.HttpTrigger | import pickle
from requests.structures import CaseInsensitiveDict
import base64
import requests
import aiohttp
from airflow.triggers.base import BaseTrigger, TriggerEvent
from typing import TYPE_CHECKING, Any
from airflow.providers.http.hooks.http import HttpAsyncHook
from requests.cookies import RequestsCookieJar
from... | null | 6 | 4 | 18 | 0 | 17 | 1 | 2 | 0.25 | 1 | 14 | 2 | 0 | 3 | 7 | 4 | 37 | 94 | 5 | 71 | 30 | 56 | 18 | 35 | 18 | 30 | 2 | 5 | 2 | 6 |
8,871 | apache/airflow | apache_airflow/providers/apache/iceberg/src/airflow/providers/apache/iceberg/hooks/iceberg.py | iceberg.hooks.iceberg.IcebergHook | from airflow.providers.apache.iceberg.version_compat import BaseHook
from typing import Any, cast
from requests import HTTPError
import requests
class IcebergHook(BaseHook):
"""
This hook acts as a base hook for iceberg services.
It offers the ability to generate temporary, short-lived
session tokens ... |
class IcebergHook(BaseHook):
'''
This hook acts as a base hook for iceberg services.
It offers the ability to generate temporary, short-lived
session tokens to use within Airflow submitted jobs.
:param iceberg_conn_id: The :ref:`Iceberg connection id<howto/connection:iceberg>`
which refers ... | 7 | 4 | 8 | 0 | 7 | 1 | 1 | 0.24 | 1 | 8 | 0 | 0 | 4 | 1 | 5 | 17 | 62 | 10 | 42 | 19 | 35 | 10 | 30 | 17 | 24 | 3 | 2 | 1 | 7 |
8,872 | apache/airflow | apache_airflow/providers/imap/src/airflow/providers/imap/hooks/imap.py | imap.hooks.imap.ImapHook | from airflow.providers.imap.version_compat import BaseHook
import ssl
import os
from collections.abc import Iterable
from typing import TYPE_CHECKING, Any
from airflow.exceptions import AirflowException
import imaplib
class ImapHook(BaseHook):
"""
This hook connects to a mail server by using the imap protocol.... |
class ImapHook(BaseHook):
'''
This hook connects to a mail server by using the imap protocol.
.. note:: Please call this Hook as context manager via `with`
to automatically open and close the connection to the mail server.
:param imap_conn_id: The :ref:`imap connection id <howto/connection:imap... | 19 | 5 | 12 | 1 | 8 | 3 | 2 | 0.36 | 1 | 14 | 3 | 0 | 18 | 2 | 18 | 30 | 252 | 40 | 157 | 72 | 112 | 57 | 109 | 46 | 89 | 9 | 2 | 3 | 43 |
8,873 | apache/airflow | apache_airflow/providers/imap/src/airflow/providers/imap/hooks/imap.py | imap.hooks.imap.Mail | import email
from collections.abc import Iterable
from airflow.utils.log.logging_mixin import LoggingMixin
from typing import TYPE_CHECKING, Any
class Mail(LoggingMixin):
"""
This class simplifies working with mails returned by the imaplib client.
:param mail_body: The mail body of a mail received from im... |
class Mail(LoggingMixin):
'''
This class simplifies working with mails returned by the imaplib client.
:param mail_body: The mail body of a mail received from imaplib client.
'''
def __init__(self, mail_body: str) -> None:
pass
def has_attachments(self) -> bool:
'''
Ch... | 5 | 3 | 10 | 1 | 6 | 3 | 3 | 0.62 | 1 | 8 | 1 | 0 | 4 | 1 | 4 | 10 | 51 | 9 | 26 | 14 | 19 | 16 | 22 | 12 | 17 | 5 | 1 | 3 | 10 |
8,874 | apache/airflow | apache_airflow/providers/imap/src/airflow/providers/imap/hooks/imap.py | imap.hooks.imap.MailPart | from typing import TYPE_CHECKING, Any
import re
class MailPart:
"""
This class is a wrapper for a Mail object's part and gives it more features.
:param part: The mail part in a Mail object.
"""
def __init__(self, part: Any) -> None:
self.part = part
def is_attachment(self) -> bool:
... |
class MailPart:
'''
This class is a wrapper for a Mail object's part and gives it more features.
:param part: The mail part in a Mail object.
'''
def __init__(self, part: Any) -> None:
pass
def is_attachment(self) -> bool:
'''
Check if the part is a valid mail attachme... | 6 | 5 | 6 | 1 | 2 | 4 | 1 | 2.09 | 0 | 4 | 0 | 0 | 5 | 1 | 5 | 5 | 43 | 10 | 11 | 7 | 5 | 23 | 11 | 7 | 5 | 1 | 0 | 0 | 5 |
8,875 | apache/airflow | apache_airflow/providers/imap/src/airflow/providers/imap/sensors/imap_attachment.py | imap.sensors.imap_attachment.ImapAttachmentSensor | from airflow.providers.imap.hooks.imap import ImapHook
from airflow.providers.imap.version_compat import BaseSensorOperator
from collections.abc import Sequence
class ImapAttachmentSensor(BaseSensorOperator):
"""
Waits for a specific attachment on a mail server.
:param attachment_name: The name of the att... |
class ImapAttachmentSensor(BaseSensorOperator):
'''
Waits for a specific attachment on a mail server.
:param attachment_name: The name of the attachment that will be checked.
:param check_regex: If set to True the attachment's name will be parsed as regular expression.
Through this you can get ... | 3 | 2 | 17 | 2 | 13 | 3 | 1 | 0.59 | 1 | 4 | 2 | 0 | 2 | 5 | 2 | 23 | 50 | 7 | 27 | 19 | 15 | 16 | 13 | 9 | 10 | 1 | 3 | 1 | 2 |
8,876 | apache/airflow | apache_airflow/providers/apache/impala/src/airflow/providers/apache/impala/hooks/impala.py | impala.hooks.impala.ImpalaHook | from airflow.providers.common.sql.hooks.sql import DbApiHook
from impala.dbapi import connect
class ImpalaHook(DbApiHook):
"""Interact with Apache Impala through impyla."""
conn_name_attr = 'impala_conn_id'
default_conn_name = 'impala_default'
conn_type = 'impala'
hook_name = 'Impala'
def get_... |
class ImpalaHook(DbApiHook):
'''Interact with Apache Impala through impyla.'''
def get_conn(self) -> Connection:
pass | 2 | 1 | 11 | 0 | 11 | 0 | 1 | 0.06 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 62 | 19 | 2 | 16 | 8 | 14 | 1 | 9 | 8 | 7 | 1 | 3 | 0 | 1 |
8,877 | apache/airflow | apache_airflow/providers/influxdb/src/airflow/providers/influxdb/hooks/influxdb.py | influxdb.hooks.influxdb.InfluxDBHook | from typing import TYPE_CHECKING, Any
from airflow.providers.influxdb.version_compat import BaseHook
from influxdb_client import InfluxDBClient
from influxdb_client.client.write_api import SYNCHRONOUS
from influxdb_client.client.write.point import Point
class InfluxDBHook(BaseHook):
"""
Interact with InfluxDB.... |
class InfluxDBHook(BaseHook):
'''
Interact with InfluxDB.
Performs a connection to InfluxDB and retrieves client.
:param influxdb_conn_id: Reference to :ref:`Influxdb connection id <howto/connection:influxdb>`.
'''
def __init__(self, conn_id: str=default_conn_name, *args, **kwargs) -> None:
... | 15 | 12 | 8 | 1 | 5 | 2 | 1 | 0.43 | 1 | 5 | 0 | 0 | 12 | 5 | 13 | 25 | 130 | 31 | 69 | 37 | 51 | 30 | 58 | 36 | 41 | 3 | 2 | 1 | 18 |
8,878 | apache/airflow | apache_airflow/providers/influxdb/src/airflow/providers/influxdb/operators/influxdb.py | influxdb.operators.influxdb.InfluxDBOperator | from collections.abc import Sequence
from airflow.providers.influxdb.version_compat import BaseOperator
from airflow.providers.influxdb.hooks.influxdb import InfluxDBHook
class InfluxDBOperator(BaseOperator):
"""
Executes sql code in a specific InfluxDB database.
.. seealso::
For more information ... |
class InfluxDBOperator(BaseOperator):
'''
Executes sql code in a specific InfluxDB database.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:InfluxDBOperator`
:param sql: the sql code to be executed. Can receive a str represe... | 3 | 1 | 7 | 0 | 7 | 0 | 1 | 0.56 | 1 | 4 | 2 | 0 | 2 | 3 | 2 | 2 | 30 | 5 | 16 | 13 | 7 | 9 | 10 | 7 | 7 | 1 | 1 | 0 | 2 |
8,879 | apache/airflow | apache_airflow/scripts/in_container/install_airflow_and_providers.py | install_airflow_and_providers.InstallationSpec | from typing import NamedTuple
import os
class InstallationSpec(NamedTuple):
airflow_distribution: str | None
airflow_core_distribution: str | None
airflow_constraints_location: str | None
airflow_task_sdk_distribution: str | None
airflow_ctl_distribution: str | None
airflow_ctl_constraints_loca... |
class InstallationSpec(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 |
8,880 | apache/airflow | apache_airflow/providers/common/io/src/airflow/providers/common/io/operators/file_transfer.py | io.operators.file_transfer.FileTransferOperator | from collections.abc import Sequence
class FileTransferOperator(BaseOperator):
"""
Copies a file from a source to a destination.
This streams the file from the source to the destination if required
, so it does not need to fit into memory.
:param src: The source file path or ObjectStoragePath obj... |
class FileTransferOperator(BaseOperator):
'''
Copies a file from a source to a destination.
This streams the file from the source to the destination if required
, so it does not need to fit into memory.
:param src: The source file path or ObjectStoragePath object.
:param dst: The destination fi... | 7 | 1 | 13 | 1 | 10 | 1 | 2 | 0.29 | 1 | 6 | 2 | 0 | 3 | 5 | 4 | 4 | 77 | 15 | 48 | 30 | 30 | 14 | 32 | 20 | 24 | 3 | 1 | 2 | 10 |
8,881 | apache/airflow | apache_airflow/providers/common/io/src/airflow/providers/common/io/xcom/backend.py | io.xcom.backend.XComObjectStorageBackend | from airflow.utils.json import XComDecoder, XComEncoder
from urllib.parse import urlsplit
import json
import uuid
import contextlib
from typing import TYPE_CHECKING, Any, TypeVar
from airflow.providers.common.io.version_compat import AIRFLOW_V_3_0_PLUS
from pathlib import Path
class XComObjectStorageBackend(BaseXCom):... |
class XComObjectStorageBackend(BaseXCom):
'''
XCom backend that stores data in an object store or database depending on the size of the data.
If the value is larger than the configured threshold, it will be stored in an object store.
Otherwise, it will be stored in the database. If it is stored in an o... | 9 | 3 | 21 | 2 | 16 | 5 | 4 | 0.37 | 1 | 12 | 3 | 0 | 0 | 0 | 4 | 23 | 102 | 14 | 67 | 30 | 50 | 25 | 48 | 15 | 43 | 6 | 3 | 2 | 15 |
8,882 | apache/airflow | apache_airflow/providers/jdbc/src/airflow/providers/jdbc/hooks/jdbc.py | jdbc.hooks.jdbc.JdbcHook | from typing import TYPE_CHECKING, Any, cast
import jaydebeapi
from airflow.exceptions import AirflowException
from sqlalchemy.engine import URL
from urllib.parse import quote_plus, urlencode
from airflow.providers.common.sql.hooks.sql import DbApiHook
from threading import RLock
class JdbcHook(DbApiHook):
"""
... |
class JdbcHook(DbApiHook):
'''
General hook for JDBC access.
JDBC URL, username and password will be taken from the predefined connection.
Note that the whole JDBC URL must be specified in the "host" field in the DB.
Raises an airflow error if the given connection id doesn't exist.
To configure... | 15 | 6 | 13 | 1 | 10 | 2 | 2 | 0.42 | 1 | 7 | 2 | 1 | 8 | 3 | 9 | 70 | 173 | 22 | 106 | 41 | 84 | 45 | 64 | 31 | 52 | 4 | 3 | 2 | 19 |
8,883 | apache/airflow | apache_airflow/providers/jenkins/src/airflow/providers/jenkins/hooks/jenkins.py | jenkins.hooks.jenkins.JenkinsHook | import jenkins
from typing import Any
from airflow.providers.jenkins.version_compat import BaseHook
class JenkinsHook(BaseHook):
"""Hook to manage connection to jenkins server."""
conn_name_attr = 'conn_id'
default_conn_name = 'jenkins_default'
conn_type = 'jenkins'
hook_name = 'Jenkins'
@clas... |
class JenkinsHook(BaseHook):
'''Hook to manage connection to jenkins server.'''
@classmethod
def get_connection_form_widgets(cls) -> dict[str, Any]:
'''Return connection widgets to add to Jenkins connection form.'''
pass
@classmethod
def get_ui_field_behaviour(cls) -> dict[str, Any]... | 10 | 4 | 8 | 0 | 7 | 1 | 1 | 0.11 | 1 | 6 | 0 | 0 | 5 | 2 | 7 | 19 | 70 | 10 | 55 | 26 | 43 | 6 | 38 | 24 | 28 | 2 | 2 | 1 | 9 |
8,884 | apache/airflow | apache_airflow/providers/jenkins/src/airflow/providers/jenkins/operators/jenkins_job_trigger.py | jenkins.operators.jenkins_job_trigger.JenkinsJobTriggerOperator | from airflow.providers.jenkins.version_compat import BaseOperator
from collections.abc import Iterable, Mapping, Sequence
from airflow.exceptions import AirflowException
from requests import Request
import ast
from functools import cached_property
import json
from jenkins import Jenkins, JenkinsException
from typing im... |
class JenkinsJobTriggerOperator(BaseOperator):
'''
Trigger a Jenkins Job and monitor its execution.
This operator depend on the python-jenkins library version >= 0.4.15 to
communicate with the Jenkins server. You'll also need to configure a Jenkins
connection in the connections screen.
:param j... | 7 | 4 | 27 | 2 | 18 | 7 | 4 | 0.51 | 1 | 12 | 2 | 0 | 5 | 6 | 5 | 5 | 161 | 16 | 97 | 37 | 80 | 49 | 62 | 25 | 56 | 7 | 1 | 4 | 18 |
8,885 | apache/airflow | apache_airflow/providers/jenkins/src/airflow/providers/jenkins/sensors/jenkins.py | jenkins.sensors.jenkins.JenkinsBuildSensor | from collections.abc import Iterable
from airflow.exceptions import AirflowException
from airflow.providers.jenkins.hooks.jenkins import JenkinsHook
from airflow.providers.jenkins.version_compat import BaseSensorOperator
class JenkinsBuildSensor(BaseSensorOperator):
"""
Monitor a Jenkins job and pass when it i... |
class JenkinsBuildSensor(BaseSensorOperator):
'''
Monitor a Jenkins job and pass when it is finished building.
This is regardless of the build outcome.
:param jenkins_connection_id: The jenkins connection to use for this job
:param job_name: The name of the job to check
:param build_number: Bui... | 3 | 1 | 17 | 1 | 16 | 0 | 2 | 0.21 | 1 | 8 | 3 | 0 | 2 | 4 | 2 | 23 | 46 | 6 | 33 | 20 | 22 | 7 | 21 | 12 | 18 | 3 | 3 | 1 | 4 |
8,886 | apache/airflow | apache_airflow/providers/atlassian/jira/src/airflow/providers/atlassian/jira/hooks/jira.py | jira.hooks.jira.JiraHook | from typing import Any, cast
from airflow.providers.atlassian.jira.version_compat import BaseHook
from atlassian import Jira
from airflow.exceptions import AirflowException
class JiraHook(BaseHook):
"""
Jira interaction hook, a Wrapper around Atlassian Jira Python SDK.
:param jira_conn_id: reference to a ... |
class JiraHook(BaseHook):
'''
Jira interaction hook, a Wrapper around Atlassian Jira Python SDK.
:param jira_conn_id: reference to a pre-defined Jira Connection
'''
def __init__(self, jira_conn_id: str=default_conn_name, proxies: Any | None=None) -> None:
pass
def get_conn(self) -... | 7 | 3 | 11 | 1 | 9 | 1 | 2 | 0.19 | 1 | 5 | 1 | 0 | 2 | 3 | 4 | 16 | 61 | 11 | 42 | 19 | 33 | 8 | 29 | 17 | 22 | 4 | 2 | 2 | 7 |
8,887 | apache/airflow | apache_airflow/providers/atlassian/jira/src/airflow/providers/atlassian/jira/notifications/jira.py | jira.notifications.jira.JiraNotifier | from airflow.providers.atlassian.jira.hooks.jira import JiraHook
from typing import Any
from functools import cached_property
from airflow.providers.common.compat.notifier import BaseNotifier
class JiraNotifier(BaseNotifier):
"""
Jira notifier for creating Jira issues upon failures.
:param jira_conn_id: T... |
class JiraNotifier(BaseNotifier):
'''
Jira notifier for creating Jira issues upon failures.
:param jira_conn_id: The HTTP connection ID for the Jira instance.
:param proxies: Proxies to make the Jira REST API call. Optional
:param description: The content for the body of the issue
:param summar... | 5 | 1 | 10 | 0 | 10 | 0 | 1 | 0.3 | 1 | 7 | 1 | 0 | 3 | 7 | 3 | 23 | 48 | 5 | 33 | 24 | 18 | 10 | 16 | 13 | 12 | 1 | 2 | 0 | 3 |
8,888 | apache/airflow | apache_airflow/providers/atlassian/jira/src/airflow/providers/atlassian/jira/operators/jira.py | jira.operators.jira.JiraOperator | from airflow.providers.atlassian.jira.hooks.jira import JiraHook
from typing import TYPE_CHECKING, Any
from collections.abc import Callable, Sequence
from airflow.providers.atlassian.jira.version_compat import BaseOperator
class JiraOperator(BaseOperator):
"""
JiraOperator to interact and perform action on Jir... |
class JiraOperator(BaseOperator):
'''
JiraOperator to interact and perform action on Jira issue tracking system.
This operator is designed to use Atlassian Jira SDK. For more information:
https://atlassian-python-api.readthedocs.io/jira.html
:param jira_conn_id: Reference to a pre-defined Jira Conn... | 3 | 1 | 21 | 2 | 16 | 3 | 3 | 0.52 | 1 | 5 | 1 | 0 | 2 | 5 | 2 | 2 | 59 | 9 | 33 | 22 | 21 | 17 | 22 | 13 | 19 | 5 | 1 | 2 | 6 |
8,889 | apache/airflow | apache_airflow/providers/atlassian/jira/src/airflow/providers/atlassian/jira/sensors/jira.py | jira.sensors.jira.JiraSensor | from typing import TYPE_CHECKING, Any
from airflow.providers.atlassian.jira.hooks.jira import JiraHook
from collections.abc import Callable, Sequence
from airflow.providers.atlassian.jira.version_compat import BaseSensorOperator
class JiraSensor(BaseSensorOperator):
"""
Monitors a jira ticket for any change.
... |
class JiraSensor(BaseSensorOperator):
'''
Monitors a jira ticket for any change.
:param jira_conn_id: reference to a pre-defined Jira Connection
:param method_name: method name from atlassian-python-api JIRA sdk to execute
:param method_params: parameters for the method method_name
:param resul... | 3 | 1 | 12 | 0 | 12 | 0 | 2 | 0.29 | 1 | 5 | 1 | 1 | 2 | 4 | 2 | 23 | 34 | 3 | 24 | 18 | 13 | 7 | 16 | 10 | 13 | 2 | 3 | 1 | 4 |
8,890 | apache/airflow | apache_airflow/providers/atlassian/jira/src/airflow/providers/atlassian/jira/sensors/jira.py | jira.sensors.jira.JiraTicketSensor | from typing import TYPE_CHECKING, Any
from collections.abc import Callable, Sequence
class JiraTicketSensor(JiraSensor):
"""
Monitors a jira ticket for given change in terms of function.
:param jira_conn_id: reference to a pre-defined Jira Connection
:param ticket_id: id of the ticket to be monitored
... |
class JiraTicketSensor(JiraSensor):
'''
Monitors a jira ticket for given change in terms of function.
:param jira_conn_id: reference to a pre-defined Jira Connection
:param ticket_id: id of the ticket to be monitored
:param field: field of the ticket to be monitored
:param expected_value: expec... | 4 | 2 | 17 | 1 | 16 | 0 | 3 | 0.18 | 1 | 6 | 0 | 0 | 3 | 6 | 3 | 26 | 67 | 8 | 50 | 22 | 37 | 9 | 29 | 13 | 25 | 7 | 4 | 3 | 10 |
8,891 | apache/airflow | apache_airflow/providers/apache/kafka/src/airflow/providers/apache/kafka/hooks/base.py | kafka.hooks.base.KafkaBaseHook | from airflow.providers.apache.kafka.version_compat import BaseHook
from typing import Any
from confluent_kafka.admin import AdminClient
from functools import cached_property
class KafkaBaseHook(BaseHook):
"""
A base hook for interacting with Apache Kafka.
:param kafka_config_id: The connection object to u... |
class KafkaBaseHook(BaseHook):
'''
A base hook for interacting with Apache Kafka.
:param kafka_config_id: The connection object to use, defaults to "kafka_default"
'''
def __init__(self, kafka_config_id=default_conn_name, *args, **kwargs):
'''Initialize our Base.'''
pass
@c... | 8 | 5 | 7 | 1 | 5 | 1 | 2 | 0.24 | 1 | 8 | 0 | 4 | 4 | 1 | 5 | 17 | 52 | 10 | 34 | 17 | 26 | 8 | 26 | 14 | 20 | 3 | 2 | 2 | 8 |
8,892 | apache/airflow | apache_airflow/providers/apache/kafka/src/airflow/providers/apache/kafka/hooks/client.py | kafka.hooks.client.KafkaAdminClientHook | from confluent_kafka import KafkaException
from collections.abc import Sequence
from typing import Any
from airflow.providers.apache.kafka.hooks.base import KafkaBaseHook
from confluent_kafka.admin import NewTopic
class KafkaAdminClientHook(KafkaBaseHook):
"""
A hook for interacting with the Kafka Cluster.
... |
class KafkaAdminClientHook(KafkaBaseHook):
'''
A hook for interacting with the Kafka Cluster.
:param kafka_config_id: The connection object to use, defaults to "kafka_default"
'''
def __init__(self, kafka_config_id=KafkaBaseHook.default_conn_name) -> None:
pass
def create_topic(se... | 4 | 3 | 14 | 2 | 9 | 3 | 2 | 0.46 | 1 | 4 | 0 | 0 | 3 | 0 | 3 | 20 | 51 | 10 | 28 | 18 | 18 | 13 | 21 | 11 | 17 | 4 | 3 | 3 | 7 |
8,893 | apache/airflow | apache_airflow/providers/apache/kafka/src/airflow/providers/apache/kafka/hooks/consume.py | kafka.hooks.consume.KafkaAuthenticationError | class KafkaAuthenticationError(Exception):
"""Custom exception for Kafka authentication failures."""
pass | class KafkaAuthenticationError(Exception):
'''Custom exception for Kafka authentication failures.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
8,894 | apache/airflow | apache_airflow/providers/apache/kafka/src/airflow/providers/apache/kafka/hooks/consume.py | kafka.hooks.consume.KafkaConsumerHook | from airflow.providers.apache.kafka.hooks.base import KafkaBaseHook
from collections.abc import Sequence
from confluent_kafka import Consumer, KafkaError
from airflow.utils.module_loading import import_string
class KafkaConsumerHook(KafkaBaseHook):
"""
A hook for creating a Kafka Consumer.
:param kafka_co... |
class KafkaConsumerHook(KafkaBaseHook):
'''
A hook for creating a Kafka Consumer.
:param kafka_config_id: The connection object to use, defaults to "kafka_default"
:param topics: A list of topics to subscribe to.
'''
def __init__(self, topics: Sequence[str], kafka_config_id=KafkaBaseHook.defau... | 4 | 2 | 5 | 0 | 5 | 0 | 1 | 0.4 | 1 | 3 | 0 | 0 | 3 | 1 | 3 | 20 | 26 | 5 | 15 | 7 | 11 | 6 | 14 | 7 | 10 | 2 | 3 | 1 | 4 |
8,895 | apache/airflow | apache_airflow/providers/apache/kafka/src/airflow/providers/apache/kafka/hooks/produce.py | kafka.hooks.produce.KafkaProducerHook | from airflow.providers.apache.kafka.hooks.base import KafkaBaseHook
from confluent_kafka import Producer
class KafkaProducerHook(KafkaBaseHook):
"""
A hook for creating a Kafka Producer.
:param kafka_config_id: The connection object to use, defaults to "kafka_default"
"""
def __init__(self, kafka... |
class KafkaProducerHook(KafkaBaseHook):
'''
A hook for creating a Kafka Producer.
:param kafka_config_id: The connection object to use, defaults to "kafka_default"
'''
def __init__(self, kafka_config_id=KafkaBaseHook.default_conn_name) -> None:
pass
def _get_client(self, config) -... | 4 | 2 | 3 | 0 | 3 | 0 | 1 | 0.56 | 1 | 1 | 0 | 0 | 3 | 0 | 3 | 20 | 19 | 5 | 9 | 5 | 5 | 5 | 9 | 5 | 5 | 1 | 3 | 0 | 3 |
8,896 | apache/airflow | apache_airflow/providers/apache/kafka/src/airflow/providers/apache/kafka/operators/consume.py | kafka.operators.consume.ConsumeFromTopicOperator | from airflow.providers.apache.kafka.version_compat import BaseOperator
from airflow.providers.apache.kafka.hooks.consume import KafkaConsumerHook
from collections.abc import Callable, Sequence
from airflow.utils.module_loading import import_string
from typing import Any
from airflow.exceptions import AirflowException
f... |
class ConsumeFromTopicOperator(BaseOperator):
'''
An operator that consumes from Kafka a topic(s) and processing the messages.
The operator creates a Kafka consumer that reads a batch of messages from the cluster and processes them
using the user supplied callable function. The consumer will continue t... | 7 | 4 | 56 | 10 | 46 | 2 | 11 | 0.37 | 1 | 11 | 2 | 0 | 2 | 11 | 2 | 2 | 158 | 26 | 100 | 36 | 84 | 37 | 61 | 23 | 58 | 15 | 1 | 3 | 21 |
8,897 | apache/airflow | apache_airflow/providers/apache/kafka/src/airflow/providers/apache/kafka/operators/produce.py | kafka.operators.produce.ProduceToTopicOperator | from typing import Any
from airflow.providers.apache.kafka.hooks.produce import KafkaProducerHook
from collections.abc import Callable, Sequence
from airflow.utils.module_loading import import_string
from airflow.exceptions import AirflowException
from functools import partial
from airflow.providers.apache.kafka.versio... |
class ProduceToTopicOperator(BaseOperator):
'''
An operator that produces messages to a Kafka topic.
Registers a producer to a kafka topic and publishes messages to the log.
:param kafka_config_id: The connection object to use, defaults to "kafka_default"
:param topic: The topic the producer should... | 3 | 1 | 28 | 4 | 23 | 2 | 4 | 0.43 | 1 | 10 | 2 | 0 | 2 | 8 | 2 | 2 | 89 | 14 | 53 | 27 | 39 | 23 | 29 | 16 | 26 | 4 | 1 | 2 | 7 |
8,898 | apache/airflow | apache_airflow/providers/apache/kafka/src/airflow/providers/apache/kafka/sensors/kafka.py | kafka.sensors.kafka.AwaitMessageSensor | from airflow.providers.apache.kafka.version_compat import BaseOperator
from collections.abc import Callable, Sequence
from typing import Any
from airflow.providers.apache.kafka.triggers.await_message import AwaitMessageTrigger
class AwaitMessageSensor(BaseOperator):
"""
An Airflow sensor that defers until a sp... |
class AwaitMessageSensor(BaseOperator):
'''
An Airflow sensor that defers until a specific message is published to Kafka.
The sensor creates a consumer that reads the Kafka log until it encounters a positive event.
The behavior of the consumer for this trigger is as follows:
- poll the Kafka topics... | 4 | 1 | 13 | 0 | 13 | 0 | 1 | 0.52 | 1 | 7 | 1 | 0 | 3 | 8 | 3 | 3 | 84 | 12 | 48 | 26 | 33 | 25 | 20 | 15 | 16 | 2 | 1 | 1 | 4 |
8,899 | apache/airflow | apache_airflow/providers/apache/kafka/src/airflow/providers/apache/kafka/sensors/kafka.py | kafka.sensors.kafka.AwaitMessageTriggerFunctionSensor | from collections.abc import Callable, Sequence
from typing import Any
from airflow.providers.apache.kafka.version_compat import BaseOperator
from airflow.providers.apache.kafka.triggers.await_message import AwaitMessageTrigger
class AwaitMessageTriggerFunctionSensor(BaseOperator):
"""
Defer until a specific me... |
class AwaitMessageTriggerFunctionSensor(BaseOperator):
'''
Defer until a specific message is published to Kafka, trigger a registered function, then resume waiting.
The behavior of the consumer for this trigger is as follows:
- poll the Kafka topics for a message
- if no message returned, sleep
... | 4 | 1 | 19 | 1 | 18 | 0 | 1 | 0.38 | 1 | 9 | 1 | 0 | 3 | 8 | 3 | 3 | 101 | 14 | 64 | 26 | 49 | 24 | 22 | 15 | 18 | 2 | 1 | 1 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.