|
10 | 10 | from typing import ( |
11 | 11 | Any, |
12 | 12 | Callable, |
| 13 | + Dict, |
13 | 14 | Iterable, |
14 | 15 | List, |
15 | 16 | Mapping, |
|
18 | 19 | Set, |
19 | 20 | Tuple, |
20 | 21 | Union, |
21 | | - Dict, |
22 | 22 | cast, |
23 | 23 | ) |
24 | 24 |
|
25 | 25 | import requests |
| 26 | +from pydantic import BaseModel |
| 27 | +from requests import Response |
26 | 28 | from typing_extensions import deprecated |
27 | 29 |
|
28 | 30 | from airbyte_cdk.models import AirbyteMessage |
| 31 | +from airbyte_cdk.sources.declarative.decoders import JsonDecoder |
29 | 32 | from airbyte_cdk.sources.declarative.extractors.http_selector import HttpSelector |
30 | | -from airbyte_cdk.sources.declarative.incremental import ResumableFullRefreshCursor |
| 33 | +from airbyte_cdk.sources.declarative.incremental import ( |
| 34 | + DatetimeBasedCursor, |
| 35 | + ResumableFullRefreshCursor, |
| 36 | +) |
31 | 37 | from airbyte_cdk.sources.declarative.incremental.declarative_cursor import DeclarativeCursor |
32 | 38 | from airbyte_cdk.sources.declarative.interpolation import InterpolatedString |
33 | | -from airbyte_cdk.sources.declarative.partition_routers.single_partition_router import ( |
34 | | - SinglePartitionRouter, |
35 | | -) |
36 | | -from airbyte_cdk.sources.declarative.requesters.paginators.no_pagination import NoPagination |
37 | | -from airbyte_cdk.sources.declarative.requesters.paginators.paginator import Paginator |
38 | | -from airbyte_cdk.sources.declarative.requesters.query_properties import QueryProperties |
39 | | -from airbyte_cdk.sources.declarative.requesters.request_options import ( |
40 | | - DefaultRequestOptionsProvider, |
41 | | - RequestOptionsProvider, |
42 | | -) |
43 | | -from airbyte_cdk.sources.declarative.requesters.requester import Requester |
44 | | -from airbyte_cdk.sources.declarative.retrievers.retriever import Retriever |
45 | | -from airbyte_cdk.sources.declarative.stream_slicers.stream_slicer import StreamSlicer |
46 | | -from airbyte_cdk.sources.http_logger import format_http_message |
47 | | -from airbyte_cdk.sources.source import ExperimentalClassWarning |
48 | | -from airbyte_cdk.sources.streams.core import StreamData |
49 | | -from airbyte_cdk.sources.types import Config, Record, StreamSlice, StreamState |
50 | | -from airbyte_cdk.utils.mapping_helpers import combine_mappings |
51 | 39 | from airbyte_cdk.sources.declarative.models.declarative_component_schema import ( |
52 | | - SimpleRetriever as SimpleRetrieverModel, |
53 | | -) |
54 | | -from airbyte_cdk.sources.declarative.parsers.component_constructor import ( |
55 | | - ComponentConstructor, |
56 | | - AdditionalFlags, |
| 40 | + CustomIncrementalSync as CustomIncrementalSyncModel, |
57 | 41 | ) |
58 | | -from airbyte_cdk.sources.declarative.transformations import RecordTransformation |
59 | | -from airbyte_cdk.sources.declarative.decoders import JsonDecoder |
60 | | -from pydantic import BaseModel |
61 | | -from airbyte_cdk.sources.declarative.retrievers.file_uploader import DefaultFileUploader |
62 | 42 | from airbyte_cdk.sources.declarative.models.declarative_component_schema import ( |
63 | | - IncrementingCountCursor as IncrementingCountCursorModel, |
| 43 | + CustomRequester as CustomRequesterModel, |
64 | 44 | ) |
65 | 45 | from airbyte_cdk.sources.declarative.models.declarative_component_schema import ( |
66 | 46 | DatetimeBasedCursor as DatetimeBasedCursorModel, |
67 | 47 | ) |
68 | | - |
69 | | -from airbyte_cdk.sources.declarative.models.declarative_component_schema import ( |
70 | | - CustomIncrementalSync as CustomIncrementalSyncModel, |
71 | | -) |
72 | | -from requests import Response |
73 | 48 | from airbyte_cdk.sources.declarative.models.declarative_component_schema import ( |
74 | 49 | HttpRequester as HttpRequesterModel, |
75 | 50 | ) |
76 | 51 | from airbyte_cdk.sources.declarative.models.declarative_component_schema import ( |
77 | | - CustomRequester as CustomRequesterModel, |
| 52 | + IncrementingCountCursor as IncrementingCountCursorModel, |
78 | 53 | ) |
79 | 54 | from airbyte_cdk.sources.declarative.models.declarative_component_schema import ( |
80 | 55 | QueryProperties as QueryPropertiesModel, |
81 | 56 | ) |
82 | | -from airbyte_cdk.sources.declarative.requesters.query_properties import QueryProperties |
83 | | -from airbyte_cdk.sources.declarative.incremental import DatetimeBasedCursor |
| 57 | +from airbyte_cdk.sources.declarative.models.declarative_component_schema import ( |
| 58 | + SimpleRetriever as SimpleRetrieverModel, |
| 59 | +) |
84 | 60 | from airbyte_cdk.sources.declarative.models.declarative_component_schema import ( |
85 | 61 | SubstreamPartitionRouter as SubstreamPartitionRouterModel, |
86 | 62 | ) |
| 63 | +from airbyte_cdk.sources.declarative.parsers.component_constructor import ( |
| 64 | + AdditionalFlags, |
| 65 | + ComponentConstructor, |
| 66 | +) |
| 67 | +from airbyte_cdk.sources.declarative.partition_routers.single_partition_router import ( |
| 68 | + SinglePartitionRouter, |
| 69 | +) |
| 70 | +from airbyte_cdk.sources.declarative.requesters.paginators.no_pagination import NoPagination |
| 71 | +from airbyte_cdk.sources.declarative.requesters.paginators.paginator import Paginator |
| 72 | +from airbyte_cdk.sources.declarative.requesters.query_properties import QueryProperties |
| 73 | +from airbyte_cdk.sources.declarative.requesters.request_options import ( |
| 74 | + DefaultRequestOptionsProvider, |
| 75 | + RequestOptionsProvider, |
| 76 | +) |
| 77 | +from airbyte_cdk.sources.declarative.requesters.requester import Requester |
| 78 | +from airbyte_cdk.sources.declarative.retrievers.file_uploader import DefaultFileUploader |
| 79 | +from airbyte_cdk.sources.declarative.retrievers.retriever import Retriever |
87 | 80 | from airbyte_cdk.sources.declarative.stream_slicers import StreamSlicerTestReadDecorator |
| 81 | +from airbyte_cdk.sources.declarative.stream_slicers.stream_slicer import StreamSlicer |
| 82 | +from airbyte_cdk.sources.declarative.transformations import RecordTransformation |
| 83 | +from airbyte_cdk.sources.http_logger import format_http_message |
| 84 | +from airbyte_cdk.sources.source import ExperimentalClassWarning |
| 85 | +from airbyte_cdk.sources.streams.core import StreamData |
| 86 | +from airbyte_cdk.sources.types import Config, Record, StreamSlice, StreamState |
| 87 | +from airbyte_cdk.utils.mapping_helpers import combine_mappings |
88 | 88 |
|
89 | 89 | FULL_REFRESH_SYNC_COMPLETE_KEY = "__ab_full_refresh_sync_complete" |
90 | 90 |
|
|
0 commit comments