fivetran-connector-sdk 0.4.8.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,172 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+
6
+ # This is generated code but we need to make this adjustment so that
7
+ # it works when frozen with PyInstaller
8
+ from fivetran_connector_sdk import common_pb2 as common__pb2
9
+ from fivetran_connector_sdk import connector_sdk_pb2 as connector__sdk__pb2
10
+
11
+
12
+ class ConnectorStub(object):
13
+ """Fivetran (grpc client) <> Connector (grpc server)
14
+ """
15
+
16
+ def __init__(self, channel):
17
+ """Constructor.
18
+
19
+ Args:
20
+ channel: A grpc.Channel.
21
+ """
22
+ self.ConfigurationForm = channel.unary_unary(
23
+ '/fivetran_sdk.Connector/ConfigurationForm',
24
+ request_serializer=common__pb2.ConfigurationFormRequest.SerializeToString,
25
+ response_deserializer=common__pb2.ConfigurationFormResponse.FromString,
26
+ )
27
+ self.Test = channel.unary_unary(
28
+ '/fivetran_sdk.Connector/Test',
29
+ request_serializer=common__pb2.TestRequest.SerializeToString,
30
+ response_deserializer=common__pb2.TestResponse.FromString,
31
+ )
32
+ self.Schema = channel.unary_unary(
33
+ '/fivetran_sdk.Connector/Schema',
34
+ request_serializer=connector__sdk__pb2.SchemaRequest.SerializeToString,
35
+ response_deserializer=connector__sdk__pb2.SchemaResponse.FromString,
36
+ )
37
+ self.Update = channel.unary_stream(
38
+ '/fivetran_sdk.Connector/Update',
39
+ request_serializer=connector__sdk__pb2.UpdateRequest.SerializeToString,
40
+ response_deserializer=connector__sdk__pb2.UpdateResponse.FromString,
41
+ )
42
+
43
+
44
+ class ConnectorServicer(object):
45
+ """Fivetran (grpc client) <> Connector (grpc server)
46
+ """
47
+
48
+ def ConfigurationForm(self, request, context):
49
+ """Missing associated documentation comment in .proto file."""
50
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
51
+ context.set_details('Method not implemented!')
52
+ raise NotImplementedError('Method not implemented!')
53
+
54
+ def Test(self, request, context):
55
+ """Missing associated documentation comment in .proto file."""
56
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
57
+ context.set_details('Method not implemented!')
58
+ raise NotImplementedError('Method not implemented!')
59
+
60
+ def Schema(self, request, context):
61
+ """Missing associated documentation comment in .proto file."""
62
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
63
+ context.set_details('Method not implemented!')
64
+ raise NotImplementedError('Method not implemented!')
65
+
66
+ def Update(self, request, context):
67
+ """Missing associated documentation comment in .proto file."""
68
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
69
+ context.set_details('Method not implemented!')
70
+ raise NotImplementedError('Method not implemented!')
71
+
72
+
73
+ def add_ConnectorServicer_to_server(servicer, server):
74
+ rpc_method_handlers = {
75
+ 'ConfigurationForm': grpc.unary_unary_rpc_method_handler(
76
+ servicer.ConfigurationForm,
77
+ request_deserializer=common__pb2.ConfigurationFormRequest.FromString,
78
+ response_serializer=common__pb2.ConfigurationFormResponse.SerializeToString,
79
+ ),
80
+ 'Test': grpc.unary_unary_rpc_method_handler(
81
+ servicer.Test,
82
+ request_deserializer=common__pb2.TestRequest.FromString,
83
+ response_serializer=common__pb2.TestResponse.SerializeToString,
84
+ ),
85
+ 'Schema': grpc.unary_unary_rpc_method_handler(
86
+ servicer.Schema,
87
+ request_deserializer=connector__sdk__pb2.SchemaRequest.FromString,
88
+ response_serializer=connector__sdk__pb2.SchemaResponse.SerializeToString,
89
+ ),
90
+ 'Update': grpc.unary_stream_rpc_method_handler(
91
+ servicer.Update,
92
+ request_deserializer=connector__sdk__pb2.UpdateRequest.FromString,
93
+ response_serializer=connector__sdk__pb2.UpdateResponse.SerializeToString,
94
+ ),
95
+ }
96
+ generic_handler = grpc.method_handlers_generic_handler(
97
+ 'fivetran_sdk.Connector', rpc_method_handlers)
98
+ server.add_generic_rpc_handlers((generic_handler,))
99
+
100
+
101
+ # This class is part of an EXPERIMENTAL API.
102
+ class Connector(object):
103
+ """Fivetran (grpc client) <> Connector (grpc server)
104
+ """
105
+
106
+ @staticmethod
107
+ def ConfigurationForm(request,
108
+ target,
109
+ options=(),
110
+ channel_credentials=None,
111
+ call_credentials=None,
112
+ insecure=False,
113
+ compression=None,
114
+ wait_for_ready=None,
115
+ timeout=None,
116
+ metadata=None):
117
+ return grpc.experimental.unary_unary(request, target, '/fivetran_sdk.Connector/ConfigurationForm',
118
+ common__pb2.ConfigurationFormRequest.SerializeToString,
119
+ common__pb2.ConfigurationFormResponse.FromString,
120
+ options, channel_credentials,
121
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
122
+
123
+ @staticmethod
124
+ def Test(request,
125
+ target,
126
+ options=(),
127
+ channel_credentials=None,
128
+ call_credentials=None,
129
+ insecure=False,
130
+ compression=None,
131
+ wait_for_ready=None,
132
+ timeout=None,
133
+ metadata=None):
134
+ return grpc.experimental.unary_unary(request, target, '/fivetran_sdk.Connector/Test',
135
+ common__pb2.TestRequest.SerializeToString,
136
+ common__pb2.TestResponse.FromString,
137
+ options, channel_credentials,
138
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
139
+
140
+ @staticmethod
141
+ def Schema(request,
142
+ target,
143
+ options=(),
144
+ channel_credentials=None,
145
+ call_credentials=None,
146
+ insecure=False,
147
+ compression=None,
148
+ wait_for_ready=None,
149
+ timeout=None,
150
+ metadata=None):
151
+ return grpc.experimental.unary_unary(request, target, '/fivetran_sdk.Connector/Schema',
152
+ connector__sdk__pb2.SchemaRequest.SerializeToString,
153
+ connector__sdk__pb2.SchemaResponse.FromString,
154
+ options, channel_credentials,
155
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
156
+
157
+ @staticmethod
158
+ def Update(request,
159
+ target,
160
+ options=(),
161
+ channel_credentials=None,
162
+ call_credentials=None,
163
+ insecure=False,
164
+ compression=None,
165
+ wait_for_ready=None,
166
+ timeout=None,
167
+ metadata=None):
168
+ return grpc.experimental.unary_stream(request, target, '/fivetran_sdk.Connector/Update',
169
+ connector__sdk__pb2.UpdateRequest.SerializeToString,
170
+ connector__sdk__pb2.UpdateResponse.FromString,
171
+ options, channel_credentials,
172
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Fivetran
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,18 @@
1
+ Metadata-Version: 2.1
2
+ Name: fivetran_connector_sdk
3
+ Version: 0.4.8.1
4
+ Summary: Build custom connectors on Fivetran platform
5
+ Author-email: Fivetran <developers@fivetran.com>
6
+ Project-URL: Homepage, https://fivetran.com/docs/connector-sdk
7
+ Project-URL: Github, https://github.com/fivetran/fivetran_connector_sdk
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.9
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: grpcio ==1.59.3
15
+ Requires-Dist: grpcio-tools ==1.59.3
16
+ Requires-Dist: docker ==6.1.3
17
+ Requires-Dist: requests ==2.31.0
18
+
@@ -0,0 +1,14 @@
1
+ fivetran_connector_sdk/__init__.py,sha256=Et-91_d4nfl0sqgW0mXiddImUdVDfdSaN5TEdYUSvsI,29429
2
+ fivetran_connector_sdk/protos/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ fivetran_connector_sdk/protos/common_pb2.py,sha256=TtSQBIMjzugRMwBuC0mDaSpbqILjtlqdbg7Licw9BC0,6749
4
+ fivetran_connector_sdk/protos/common_pb2.pyi,sha256=aPFyc2tDOFJnQKhwP9moA2xrd3ygrDwYjTY6KT-INfY,9035
5
+ fivetran_connector_sdk/protos/common_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
6
+ fivetran_connector_sdk/protos/connector_sdk_pb2.py,sha256=I49KpGCshFNZVjGf3TcvPrO_4VzmpE-TYWjsAXliQkI,7454
7
+ fivetran_connector_sdk/protos/connector_sdk_pb2.pyi,sha256=T0NRVDpyl-B-yKy_6AxQYODH4bfim16cJ0q2Eo_MS8E,8404
8
+ fivetran_connector_sdk/protos/connector_sdk_pb2_grpc.py,sha256=4kmJ3SBcr3JTL5vh63wgMJ454HUJCv0dXlK3fvRyRQ0,7212
9
+ fivetran_connector_sdk-0.4.8.1.dist-info/LICENSE,sha256=Kutp3D0T7HmHuBifKmbw39OZLAL1ckaLRb8u9lyJxE8,1065
10
+ fivetran_connector_sdk-0.4.8.1.dist-info/METADATA,sha256=UDsADaUV8PiYsAesTI1nujMT5f0jRaGuXsUH554mjDc,669
11
+ fivetran_connector_sdk-0.4.8.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
12
+ fivetran_connector_sdk-0.4.8.1.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
13
+ fivetran_connector_sdk-0.4.8.1.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
14
+ fivetran_connector_sdk-0.4.8.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.43.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ fivetran = fivetran_connector_sdk:main
@@ -0,0 +1 @@
1
+ fivetran_connector_sdk