fivetran-connector-sdk 0.9.3.1__py3-none-any.whl → 0.9.9.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.
- fivetran_connector_sdk/__init__.py +7 -11
- {fivetran_connector_sdk-0.9.3.1.dist-info → fivetran_connector_sdk-0.9.9.1.dist-info}/METADATA +2 -2
- {fivetran_connector_sdk-0.9.3.1.dist-info → fivetran_connector_sdk-0.9.9.1.dist-info}/RECORD +6 -6
- {fivetran_connector_sdk-0.9.3.1.dist-info → fivetran_connector_sdk-0.9.9.1.dist-info}/WHEEL +1 -1
- {fivetran_connector_sdk-0.9.3.1.dist-info → fivetran_connector_sdk-0.9.9.1.dist-info}/entry_points.txt +0 -0
- {fivetran_connector_sdk-0.9.3.1.dist-info → fivetran_connector_sdk-0.9.9.1.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,6 @@
|
|
1
1
|
import argparse
|
2
|
+
from typing import Optional
|
3
|
+
|
2
4
|
import grpc
|
3
5
|
import importlib.util
|
4
6
|
import inspect
|
@@ -23,7 +25,7 @@ from fivetran_connector_sdk.protos import common_pb2
|
|
23
25
|
from fivetran_connector_sdk.protos import connector_sdk_pb2
|
24
26
|
from fivetran_connector_sdk.protos import connector_sdk_pb2_grpc
|
25
27
|
|
26
|
-
__version__ = "0.9.
|
28
|
+
__version__ = "0.9.09.1"
|
27
29
|
|
28
30
|
MAC_OS = "mac"
|
29
31
|
WIN_OS = "windows"
|
@@ -693,7 +695,7 @@ class Connector(connector_sdk_pb2_grpc.ConnectorServicer):
|
|
693
695
|
os._exit(1)
|
694
696
|
|
695
697
|
@staticmethod
|
696
|
-
def __get_connection_id(name: str, group: str, group_id: str, deploy_key: str) -> str
|
698
|
+
def __get_connection_id(name: str, group: str, group_id: str, deploy_key: str) -> Optional[str]:
|
697
699
|
"""Retrieves the connection ID for the specified connection schema name, group, and deployment key.
|
698
700
|
|
699
701
|
Args:
|
@@ -937,7 +939,6 @@ class Connector(connector_sdk_pb2_grpc.ConnectorServicer):
|
|
937
939
|
# This method starts both the server and the local testing environment
|
938
940
|
def debug(self,
|
939
941
|
project_path: str = None,
|
940
|
-
port: int = 50051,
|
941
942
|
configuration: dict = None,
|
942
943
|
state: dict = None,
|
943
944
|
log_level: Logging.Level = Logging.Level.FINE) -> bool:
|
@@ -945,7 +946,6 @@ class Connector(connector_sdk_pb2_grpc.ConnectorServicer):
|
|
945
946
|
|
946
947
|
Args:
|
947
948
|
project_path (str): The path to the project.
|
948
|
-
port (int): The port number to listen for incoming requests.
|
949
949
|
configuration (dict): The configuration dictionary.
|
950
950
|
state (dict): The state dictionary.
|
951
951
|
log_level (Logging.Level): The logging level.
|
@@ -1012,7 +1012,7 @@ class Connector(connector_sdk_pb2_grpc.ConnectorServicer):
|
|
1012
1012
|
project_path = os.getcwd() if project_path is None else project_path
|
1013
1013
|
self.validate_requirements_file(project_path, False)
|
1014
1014
|
print(f"INFO: Debugging connector at: {project_path}")
|
1015
|
-
server = self.run(
|
1015
|
+
server = self.run(50051, configuration, state, log_level=log_level)
|
1016
1016
|
|
1017
1017
|
# Uncomment this to run the tester manually
|
1018
1018
|
# server.wait_for_termination()
|
@@ -1020,7 +1020,7 @@ class Connector(connector_sdk_pb2_grpc.ConnectorServicer):
|
|
1020
1020
|
error = False
|
1021
1021
|
try:
|
1022
1022
|
print(f"INFO: Running connector tester...")
|
1023
|
-
for log_msg in self.__run_tester(java_exe, tester_root_dir, project_path,
|
1023
|
+
for log_msg in self.__run_tester(java_exe, tester_root_dir, project_path, 50051):
|
1024
1024
|
print(log_msg, end="")
|
1025
1025
|
except:
|
1026
1026
|
print(traceback.format_exc())
|
@@ -1342,7 +1342,6 @@ def main():
|
|
1342
1342
|
parser.add_argument("project_path", nargs='?', default=os.getcwd(), help="Path to connector project directory")
|
1343
1343
|
|
1344
1344
|
# Optional (Not all of these are valid with every mutually exclusive option below)
|
1345
|
-
parser.add_argument("--port", type=int, default=None, help="Provide port number to run gRPC server")
|
1346
1345
|
parser.add_argument("--state", type=str, default=None, help="Provide state as JSON string or file")
|
1347
1346
|
parser.add_argument("--configuration", type=str, default=None, help="Provide secrets as JSON file")
|
1348
1347
|
parser.add_argument("--api-key", type=str, default=None, help="Provide api key for deployment to production")
|
@@ -1381,15 +1380,12 @@ def main():
|
|
1381
1380
|
state = {}
|
1382
1381
|
|
1383
1382
|
if args.command.lower() == "deploy":
|
1384
|
-
if args.port:
|
1385
|
-
print("WARNING: 'port' parameter is not used for 'deploy' command")
|
1386
1383
|
if args.state:
|
1387
1384
|
print("WARNING: 'state' parameter is not used for 'deploy' command")
|
1388
1385
|
connector_object.deploy(args.project_path, ft_deploy_key, ft_group, ft_connection, configuration)
|
1389
1386
|
|
1390
1387
|
elif args.command.lower() == "debug":
|
1391
|
-
|
1392
|
-
connector_object.debug(args.project_path, port, configuration, state)
|
1388
|
+
connector_object.debug(args.project_path, configuration, state)
|
1393
1389
|
|
1394
1390
|
elif args.command.lower() == "reset":
|
1395
1391
|
files_path = os.path.join(args.project_path, OUTPUT_FILES_DIR)
|
{fivetran_connector_sdk-0.9.3.1.dist-info → fivetran_connector_sdk-0.9.9.1.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fivetran_connector_sdk
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.9.1
|
4
4
|
Summary: Build custom connectors on Fivetran platform
|
5
5
|
Author-email: Fivetran <developers@fivetran.com>
|
6
6
|
Project-URL: Homepage, https://fivetran.com/docs/connectors/connector-sdk
|
@@ -17,7 +17,7 @@ Requires-Dist: get-pypi-latest-version ==0.0.12
|
|
17
17
|
Requires-Dist: pipreqs ==0.5.0
|
18
18
|
|
19
19
|
# **fivetran-connector-sdk**
|
20
|
-
The *fivetran-connector-sdk*
|
20
|
+
The *fivetran-connector-sdk* allows users to execute custom, self-written Python code within [Fivetran's](https://www.fivetran.com/) secure cloud environment. Fivetran automatically manages running the connectors on your scheduled frequency and manages the required compute resources.
|
21
21
|
|
22
22
|
The Connector SDK service is the best fit for the following use cases:
|
23
23
|
- Fivetran doesn't have a connector for your source and is unlikely to support it soon.
|
{fivetran_connector_sdk-0.9.3.1.dist-info → fivetran_connector_sdk-0.9.9.1.dist-info}/RECORD
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
fivetran_connector_sdk/__init__.py,sha256=
|
1
|
+
fivetran_connector_sdk/__init__.py,sha256=1IK2j1TXtUwBxaFStCq2Jg3st7RREWWAjCVd4_q8iQw,57921
|
2
2
|
fivetran_connector_sdk/protos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
fivetran_connector_sdk/protos/common_pb2.py,sha256=kUwVcyZHgLigNR-KnHZn7dHrlxaMnUXqzprsRx6T72M,6831
|
4
4
|
fivetran_connector_sdk/protos/common_pb2.pyi,sha256=S0hdIzoXyyOKD5cjiGeDDLYpQ9J3LjAvu4rCj1JvJWE,9038
|
@@ -6,8 +6,8 @@ fivetran_connector_sdk/protos/common_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXH
|
|
6
6
|
fivetran_connector_sdk/protos/connector_sdk_pb2.py,sha256=9Ke_Ti1s0vAeXapfXT-EryrT2-TSGQb8mhs4gxTpUMk,7732
|
7
7
|
fivetran_connector_sdk/protos/connector_sdk_pb2.pyi,sha256=FWYxRgshEF3QDYAE0TM_mv4N2gGvkxCH_uPpxnMc4oA,8406
|
8
8
|
fivetran_connector_sdk/protos/connector_sdk_pb2_grpc.py,sha256=ZfJLp4DW7uP4pFOZ74s_wQ6tD3eIPi-08UfnLwe4tzo,7163
|
9
|
-
fivetran_connector_sdk-0.9.
|
10
|
-
fivetran_connector_sdk-0.9.
|
11
|
-
fivetran_connector_sdk-0.9.
|
12
|
-
fivetran_connector_sdk-0.9.
|
13
|
-
fivetran_connector_sdk-0.9.
|
9
|
+
fivetran_connector_sdk-0.9.9.1.dist-info/METADATA,sha256=20Epb7aIgCDGkK_6BMxnkZEcLAZ_Z8Mvil842ykVcT0,2783
|
10
|
+
fivetran_connector_sdk-0.9.9.1.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
11
|
+
fivetran_connector_sdk-0.9.9.1.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
|
12
|
+
fivetran_connector_sdk-0.9.9.1.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
|
13
|
+
fivetran_connector_sdk-0.9.9.1.dist-info/RECORD,,
|
File without changes
|
{fivetran_connector_sdk-0.9.3.1.dist-info → fivetran_connector_sdk-0.9.9.1.dist-info}/top_level.txt
RENAMED
File without changes
|