|
48 | 48 | # Once those issues are resolved, the below can be sorted with isort.
|
49 | 49 | import dunamai as _dunamai
|
50 | 50 |
|
51 |
| -from .destinations import Destination |
52 |
| -from .models import AirbyteConnectionStatus, AirbyteMessage, ConfiguredAirbyteCatalog, Status, Type, FailureType, AirbyteStream, AdvancedAuth, DestinationSyncMode, ConnectorSpecification, OAuthConfigSpecification, OrchestratorType, ConfiguredAirbyteStream, SyncMode, AirbyteLogMessage, Level, AirbyteRecordMessage |
53 |
| - |
54 |
| -from .sources import Source |
55 |
| -from .config_observation import create_connector_config_control_message, emit_configuration_as_airbyte_control_message |
| 51 | +from .config_observation import ( |
| 52 | + create_connector_config_control_message, |
| 53 | + emit_configuration_as_airbyte_control_message, |
| 54 | +) |
56 | 55 | from .connector import BaseConnector, Connector
|
57 |
| - |
58 |
| -from .entrypoint import launch, AirbyteEntrypoint |
59 |
| - |
| 56 | +from .destinations import Destination |
| 57 | +from .entrypoint import AirbyteEntrypoint, launch |
60 | 58 | from .logger import AirbyteLogFormatter, init_logger
|
61 |
| -from .sources import AbstractSource |
| 59 | +from .models import ( |
| 60 | + AdvancedAuth, |
| 61 | + AirbyteConnectionStatus, |
| 62 | + AirbyteLogMessage, |
| 63 | + AirbyteMessage, |
| 64 | + AirbyteRecordMessage, |
| 65 | + AirbyteStream, |
| 66 | + ConfiguredAirbyteCatalog, |
| 67 | + ConfiguredAirbyteStream, |
| 68 | + ConnectorSpecification, |
| 69 | + DestinationSyncMode, |
| 70 | + FailureType, |
| 71 | + Level, |
| 72 | + OAuthConfigSpecification, |
| 73 | + OrchestratorType, |
| 74 | + Status, |
| 75 | + SyncMode, |
| 76 | + Type, |
| 77 | +) |
| 78 | +from .sources import AbstractSource, Source |
62 | 79 | from .sources.concurrent_source.concurrent_source import ConcurrentSource
|
63 | 80 | from .sources.concurrent_source.concurrent_source_adapter import ConcurrentSourceAdapter
|
64 | 81 | from .sources.config import BaseConfig
|
65 |
| -from .sources.types import Config, Record, StreamSlice |
66 | 82 | from .sources.connector_state_manager import ConnectorStateManager
|
67 | 83 | from .sources.declarative.auth import DeclarativeOauth2Authenticator
|
68 |
| -from .sources.declarative.auth.declarative_authenticator import DeclarativeAuthenticator |
69 |
| -from .sources.declarative.auth.declarative_authenticator import NoAuth |
| 84 | +from .sources.declarative.auth.declarative_authenticator import DeclarativeAuthenticator, NoAuth |
70 | 85 | from .sources.declarative.auth.oauth import DeclarativeSingleUseRefreshTokenOauth2Authenticator
|
71 |
| -from .sources.declarative.auth.token import BasicHttpAuthenticator, BearerAuthenticator, ApiKeyAuthenticator |
| 86 | +from .sources.declarative.auth.token import ( |
| 87 | + ApiKeyAuthenticator, |
| 88 | + BasicHttpAuthenticator, |
| 89 | + BearerAuthenticator, |
| 90 | +) |
72 | 91 | from .sources.declarative.datetime.min_max_datetime import MinMaxDatetime
|
73 | 92 | from .sources.declarative.declarative_stream import DeclarativeStream
|
74 | 93 | from .sources.declarative.decoders import Decoder, JsonDecoder
|
|
77 | 96 | from .sources.declarative.extractors.record_extractor import RecordExtractor
|
78 | 97 | from .sources.declarative.extractors.record_filter import RecordFilter
|
79 | 98 | from .sources.declarative.incremental import DatetimeBasedCursor
|
80 |
| -from .sources.declarative.interpolation import InterpolatedString, InterpolatedBoolean |
| 99 | +from .sources.declarative.interpolation import InterpolatedBoolean, InterpolatedString |
81 | 100 | from .sources.declarative.manifest_declarative_source import ManifestDeclarativeSource
|
82 |
| -from .sources.declarative.migrations.legacy_to_per_partition_state_migration import LegacyToPerPartitionStateMigration |
83 |
| - |
84 |
| -from .sources.declarative.partition_routers import CartesianProductStreamSlicer, SinglePartitionRouter, SubstreamPartitionRouter |
| 101 | +from .sources.declarative.migrations.legacy_to_per_partition_state_migration import ( |
| 102 | + LegacyToPerPartitionStateMigration, |
| 103 | +) |
| 104 | +from .sources.declarative.partition_routers import ( |
| 105 | + CartesianProductStreamSlicer, |
| 106 | + SinglePartitionRouter, |
| 107 | + SubstreamPartitionRouter, |
| 108 | +) |
85 | 109 | from .sources.declarative.partition_routers.substream_partition_router import ParentStreamConfig
|
86 |
| -from .sources.declarative.requesters import Requester, HttpRequester |
87 |
| - |
| 110 | +from .sources.declarative.requesters import HttpRequester, Requester |
88 | 111 | from .sources.declarative.requesters.error_handlers import BackoffStrategy
|
89 | 112 | from .sources.declarative.requesters.paginators import DefaultPaginator, PaginationStrategy
|
90 |
| -from .sources.declarative.requesters.paginators.strategies import OffsetIncrement, CursorPaginationStrategy, PageIncrement, StopConditionPaginationStrategyDecorator |
91 |
| - |
| 113 | +from .sources.declarative.requesters.paginators.strategies import ( |
| 114 | + CursorPaginationStrategy, |
| 115 | + OffsetIncrement, |
| 116 | + PageIncrement, |
| 117 | + StopConditionPaginationStrategyDecorator, |
| 118 | +) |
92 | 119 | from .sources.declarative.requesters.request_option import RequestOption, RequestOptionType
|
93 |
| - |
94 |
| -from .sources.declarative.requesters.request_options.default_request_options_provider import DefaultRequestOptionsProvider |
95 |
| -from .sources.declarative.requesters.request_options.interpolated_request_input_provider import InterpolatedRequestInputProvider |
| 120 | +from .sources.declarative.requesters.request_options.default_request_options_provider import ( |
| 121 | + DefaultRequestOptionsProvider, |
| 122 | +) |
| 123 | +from .sources.declarative.requesters.request_options.interpolated_request_input_provider import ( |
| 124 | + InterpolatedRequestInputProvider, |
| 125 | +) |
96 | 126 | from .sources.declarative.requesters.requester import HttpMethod
|
97 | 127 | from .sources.declarative.retrievers import SimpleRetriever
|
98 | 128 | from .sources.declarative.schema import JsonFileSchemaLoader
|
99 |
| -from .sources.declarative.transformations.add_fields import AddFields, AddedFieldDefinition |
| 129 | +from .sources.declarative.transformations.add_fields import AddedFieldDefinition, AddFields |
100 | 130 | from .sources.declarative.transformations.transformation import RecordTransformation
|
101 | 131 | from .sources.declarative.types import FieldPointer
|
102 | 132 | from .sources.declarative.yaml_declarative_source import YamlDeclarativeSource
|
103 | 133 | from .sources.message import InMemoryMessageRepository, MessageRepository
|
104 | 134 | from .sources.source import TState
|
105 | 135 | from .sources.streams.availability_strategy import AvailabilityStrategy
|
106 |
| -from .sources.streams.call_rate import AbstractAPIBudget, HttpAPIBudget, HttpRequestMatcher, MovingWindowCallRatePolicy, Rate, CachedLimiterSession, LimiterSession |
| 136 | +from .sources.streams.call_rate import ( |
| 137 | + AbstractAPIBudget, |
| 138 | + CachedLimiterSession, |
| 139 | + HttpAPIBudget, |
| 140 | + HttpRequestMatcher, |
| 141 | + LimiterSession, |
| 142 | + MovingWindowCallRatePolicy, |
| 143 | + Rate, |
| 144 | +) |
107 | 145 | from .sources.streams.checkpoint import Cursor as LegacyCursor
|
108 | 146 | from .sources.streams.checkpoint import ResumableFullRefreshCursor
|
109 | 147 | from .sources.streams.concurrent.adapters import StreamFacade
|
110 |
| -from .sources.streams.concurrent.cursor import ConcurrentCursor, CursorField, FinalStateCursor |
111 |
| -from .sources.streams.concurrent.cursor import Cursor |
112 |
| -from .sources.streams.concurrent.state_converters.datetime_stream_state_converter import EpochValueConcurrentStreamStateConverter, IsoMillisConcurrentStreamStateConverter |
113 |
| -from .sources.streams.core import Stream, IncrementalMixin, package_name_from_class |
| 148 | +from .sources.streams.concurrent.cursor import ( |
| 149 | + ConcurrentCursor, |
| 150 | + Cursor, |
| 151 | + CursorField, |
| 152 | + FinalStateCursor, |
| 153 | +) |
| 154 | +from .sources.streams.concurrent.state_converters.datetime_stream_state_converter import ( |
| 155 | + EpochValueConcurrentStreamStateConverter, |
| 156 | + IsoMillisConcurrentStreamStateConverter, |
| 157 | +) |
| 158 | +from .sources.streams.core import IncrementalMixin, Stream, package_name_from_class |
114 | 159 | from .sources.streams.http import HttpStream, HttpSubStream
|
115 | 160 | from .sources.streams.http.availability_strategy import HttpAvailabilityStrategy
|
116 |
| -from .sources.streams.http.exceptions import BaseBackoffException, DefaultBackoffException, UserDefinedBackoffException |
| 161 | +from .sources.streams.http.exceptions import ( |
| 162 | + BaseBackoffException, |
| 163 | + DefaultBackoffException, |
| 164 | + UserDefinedBackoffException, |
| 165 | +) |
117 | 166 | from .sources.streams.http.rate_limiting import default_backoff_handler
|
118 |
| -from .sources.streams.http.requests_native_auth import Oauth2Authenticator, TokenAuthenticator, SingleUseRefreshTokenOauth2Authenticator |
| 167 | +from .sources.streams.http.requests_native_auth import ( |
| 168 | + Oauth2Authenticator, |
| 169 | + SingleUseRefreshTokenOauth2Authenticator, |
| 170 | + TokenAuthenticator, |
| 171 | +) |
119 | 172 | from .sources.streams.http.requests_native_auth.abstract_token import AbstractHeaderAuthenticator
|
| 173 | +from .sources.types import Config, Record, StreamSlice |
120 | 174 | from .sources.utils import casing
|
121 |
| -from .sources.utils.schema_helpers import InternalConfig, ResourceSchemaLoader, check_config_against_spec_or_exit, split_config, expand_refs |
| 175 | +from .sources.utils.schema_helpers import ( |
| 176 | + InternalConfig, |
| 177 | + ResourceSchemaLoader, |
| 178 | + check_config_against_spec_or_exit, |
| 179 | + expand_refs, |
| 180 | + split_config, |
| 181 | +) |
122 | 182 | from .sources.utils.transform import TransformConfig, TypeTransformer
|
123 | 183 | from .utils import AirbyteTracedException, is_cloud_environment
|
124 | 184 | from .utils.constants import ENV_REQUEST_CACHE_PATH
|
|
127 | 187 | from .utils.spec_schema_transformations import resolve_refs
|
128 | 188 | from .utils.stream_status_utils import as_airbyte_message
|
129 | 189 |
|
130 |
| - |
131 | 190 | __all__ = [
|
132 | 191 | # Availability strategy
|
133 | 192 | "AvailabilityStrategy",
|
|
0 commit comments