fivetran-connector-sdk 0.8.26.1__py3-none-any.whl → 0.9.3.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 +21 -10
 - {fivetran_connector_sdk-0.8.26.1.dist-info → fivetran_connector_sdk-0.9.3.1.dist-info}/METADATA +3 -3
 - {fivetran_connector_sdk-0.8.26.1.dist-info → fivetran_connector_sdk-0.9.3.1.dist-info}/RECORD +6 -6
 - {fivetran_connector_sdk-0.8.26.1.dist-info → fivetran_connector_sdk-0.9.3.1.dist-info}/WHEEL +1 -1
 - {fivetran_connector_sdk-0.8.26.1.dist-info → fivetran_connector_sdk-0.9.3.1.dist-info}/entry_points.txt +0 -0
 - {fivetran_connector_sdk-0.8.26.1.dist-info → fivetran_connector_sdk-0.9.3.1.dist-info}/top_level.txt +0 -0
 
| 
         @@ -23,7 +23,7 @@ from fivetran_connector_sdk.protos import common_pb2 
     | 
|
| 
       23 
23 
     | 
    
         
             
            from fivetran_connector_sdk.protos import connector_sdk_pb2
         
     | 
| 
       24 
24 
     | 
    
         
             
            from fivetran_connector_sdk.protos import connector_sdk_pb2_grpc
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
       26 
     | 
    
         
            -
            __version__ = "0. 
     | 
| 
      
 26 
     | 
    
         
            +
            __version__ = "0.9.03.1"
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
28 
     | 
    
         
             
            MAC_OS = "mac"
         
     | 
| 
       29 
29 
     | 
    
         
             
            WIN_OS = "windows"
         
     | 
| 
         @@ -112,7 +112,7 @@ class Logging: 
     | 
|
| 
       112 
112 
     | 
    
         
             
                    Args:
         
     | 
| 
       113 
113 
     | 
    
         
             
                        message (str): The message to log.
         
     | 
| 
       114 
114 
     | 
    
         
             
                    """
         
     | 
| 
       115 
     | 
    
         
            -
                    if Logging.LOG_LEVEL  
     | 
| 
      
 115 
     | 
    
         
            +
                    if Logging.LOG_LEVEL <= Logging.Level.SEVERE:
         
     | 
| 
       116 
116 
     | 
    
         
             
                        Logging.__log(Logging.Level.SEVERE, message)
         
     | 
| 
       117 
117 
     | 
    
         | 
| 
       118 
118 
     | 
    
         | 
| 
         @@ -416,6 +416,13 @@ def is_connection_name_valid(connection: str): 
     | 
|
| 
       416 
416 
     | 
    
         
             
                return pattern.match(connection)
         
     | 
| 
       417 
417 
     | 
    
         | 
| 
       418 
418 
     | 
    
         | 
| 
      
 419 
     | 
    
         
            +
            def log_unused_deps_error(package_name: str, version: str):
         
     | 
| 
      
 420 
     | 
    
         
            +
                print(f"ERROR: Please remove `{package_name}` from requirements.txt."
         
     | 
| 
      
 421 
     | 
    
         
            +
                      f" The latest version of `{package_name}` is always available when executing your code."
         
     | 
| 
      
 422 
     | 
    
         
            +
                      f" Current version: {version}")
         
     | 
| 
      
 423 
     | 
    
         
            +
                os._exit(1)
         
     | 
| 
      
 424 
     | 
    
         
            +
             
     | 
| 
      
 425 
     | 
    
         
            +
             
     | 
| 
       419 
426 
     | 
    
         
             
            class Connector(connector_sdk_pb2_grpc.ConnectorServicer):
         
     | 
| 
       420 
427 
     | 
    
         
             
                def __init__(self, update, schema=None):
         
     | 
| 
       421 
428 
     | 
    
         
             
                    """Initializes the Connector instance.
         
     | 
| 
         @@ -476,7 +483,7 @@ class Connector(connector_sdk_pb2_grpc.ConnectorServicer): 
     | 
|
| 
       476 
483 
     | 
    
         
             
                        if not requirement or requirement.startswith("#"):  # Skip empty lines and comments
         
     | 
| 
       477 
484 
     | 
    
         
             
                            continue
         
     | 
| 
       478 
485 
     | 
    
         
             
                        try:
         
     | 
| 
       479 
     | 
    
         
            -
                            key 
     | 
| 
      
 486 
     | 
    
         
            +
                            key = re.split(r"==|>=|<=|>|<", requirement)[0]
         
     | 
| 
       480 
487 
     | 
    
         
             
                            requirements_dict[key.lower()] = requirement.lower()
         
     | 
| 
       481 
488 
     | 
    
         
             
                        except ValueError:
         
     | 
| 
       482 
489 
     | 
    
         
             
                            print(f"Error: Invalid requirement format: '{requirement}'")
         
     | 
| 
         @@ -501,6 +508,8 @@ class Connector(connector_sdk_pb2_grpc.ConnectorServicer): 
     | 
|
| 
       501 
508 
     | 
    
         | 
| 
       502 
509 
     | 
    
         
             
                    tmp_requirements = self.fetch_requirements_as_dict(self, tmp_requirements_file_path)
         
     | 
| 
       503 
510 
     | 
    
         
             
                    tmp_requirements.pop("fivetran_connector_sdk")
         
     | 
| 
      
 511 
     | 
    
         
            +
                    if tmp_requirements.get('requests') is not None:
         
     | 
| 
      
 512 
     | 
    
         
            +
                        tmp_requirements.pop("requests")
         
     | 
| 
       504 
513 
     | 
    
         
             
                    os.remove(tmp_requirements_file_path)
         
     | 
| 
       505 
514 
     | 
    
         | 
| 
       506 
515 
     | 
    
         
             
                    if len(tmp_requirements) > 0:
         
     | 
| 
         @@ -535,16 +544,18 @@ class Connector(connector_sdk_pb2_grpc.ConnectorServicer): 
     | 
|
| 
       535 
544 
     | 
    
         
             
                        unused_deps = list(requirements.keys() - tmp_requirements.keys())
         
     | 
| 
       536 
545 
     | 
    
         
             
                        if unused_deps:
         
     | 
| 
       537 
546 
     | 
    
         
             
                            if 'fivetran_connector_sdk' in unused_deps:
         
     | 
| 
       538 
     | 
    
         
            -
                                 
     | 
| 
       539 
     | 
    
         
            -
             
     | 
| 
       540 
     | 
    
         
            -
                                 
     | 
| 
       541 
     | 
    
         
            -
                             
     | 
| 
       542 
     | 
    
         
            -
             
     | 
| 
       543 
     | 
    
         
            -
             
     | 
| 
      
 547 
     | 
    
         
            +
                                log_unused_deps_error("fivetran_connector_sdk", __version__)
         
     | 
| 
      
 548 
     | 
    
         
            +
                            elif 'requests' in unused_deps:
         
     | 
| 
      
 549 
     | 
    
         
            +
                                log_unused_deps_error("requests", "2.32.3")
         
     | 
| 
      
 550 
     | 
    
         
            +
                            else:
         
     | 
| 
      
 551 
     | 
    
         
            +
                                print("INFO: The following dependencies are not needed, "
         
     | 
| 
      
 552 
     | 
    
         
            +
                                      "they are not used or already installed. Please remove them from requirements.txt:")
         
     | 
| 
      
 553 
     | 
    
         
            +
                                print(*unused_deps)
         
     | 
| 
       544 
554 
     | 
    
         
             
                    else:
         
     | 
| 
       545 
555 
     | 
    
         
             
                        if os.path.exists("requirements.txt"):
         
     | 
| 
       546 
556 
     | 
    
         
             
                            print("WARNING: `requirements.txt` is not required as no additional "
         
     | 
| 
       547 
     | 
    
         
            -
                                  "Python libraries are required for  
     | 
| 
      
 557 
     | 
    
         
            +
                                  "Python libraries are required or all required libraries for "
         
     | 
| 
      
 558 
     | 
    
         
            +
                                  "your code are pre-installed.")
         
     | 
| 
       548 
559 
     | 
    
         | 
| 
       549 
560 
     | 
    
         
             
                    if is_deploy: print("Successful validation of requirements.txt")
         
     | 
| 
       550 
561 
     | 
    
         | 
    
        {fivetran_connector_sdk-0.8.26.1.dist-info → fivetran_connector_sdk-0.9.3.1.dist-info}/METADATA
    RENAMED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            Metadata-Version: 2.1
         
     | 
| 
       2 
2 
     | 
    
         
             
            Name: fivetran_connector_sdk
         
     | 
| 
       3 
     | 
    
         
            -
            Version: 0. 
     | 
| 
      
 3 
     | 
    
         
            +
            Version: 0.9.3.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
         
     | 
| 
         @@ -12,7 +12,7 @@ Requires-Python: >=3.9 
     | 
|
| 
       12 
12 
     | 
    
         
             
            Description-Content-Type: text/markdown
         
     | 
| 
       13 
13 
     | 
    
         
             
            Requires-Dist: grpcio ==1.60.1
         
     | 
| 
       14 
14 
     | 
    
         
             
            Requires-Dist: grpcio-tools ==1.60.1
         
     | 
| 
       15 
     | 
    
         
            -
            Requires-Dist: requests ==2. 
     | 
| 
      
 15 
     | 
    
         
            +
            Requires-Dist: requests ==2.32.3
         
     | 
| 
       16 
16 
     | 
    
         
             
            Requires-Dist: get-pypi-latest-version ==0.0.12
         
     | 
| 
       17 
17 
     | 
    
         
             
            Requires-Dist: pipreqs ==0.5.0
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
         @@ -32,7 +32,7 @@ To learn more, see our [Connector SDK documentation](https://fivetran.com/docs/c 
     | 
|
| 
       32 
32 
     | 
    
         
             
                pip install fivetran-connector-sdk
         
     | 
| 
       33 
33 
     | 
    
         | 
| 
       34 
34 
     | 
    
         
             
            ## **Requirements**
         
     | 
| 
       35 
     | 
    
         
            -
            - Python ≥3.9 and ≤3. 
     | 
| 
      
 35 
     | 
    
         
            +
            - Python ≥3.9 and ≤3.11
         
     | 
| 
       36 
36 
     | 
    
         
             
            - Operating System:
         
     | 
| 
       37 
37 
     | 
    
         
             
                - Windows 10 or later
         
     | 
| 
       38 
38 
     | 
    
         
             
                - MacOS 13 (Ventura) or later
         
     | 
    
        {fivetran_connector_sdk-0.8.26.1.dist-info → fivetran_connector_sdk-0.9.3.1.dist-info}/RECORD
    RENAMED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            fivetran_connector_sdk/__init__.py,sha256= 
     | 
| 
      
 1 
     | 
    
         
            +
            fivetran_connector_sdk/__init__.py,sha256=3xhEjOGGRnyCuR6E7PgBoG3hkHU8m1qwstY2HYSlEEw,58259
         
     | 
| 
       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. 
     | 
| 
       10 
     | 
    
         
            -
            fivetran_connector_sdk-0. 
     | 
| 
       11 
     | 
    
         
            -
            fivetran_connector_sdk-0. 
     | 
| 
       12 
     | 
    
         
            -
            fivetran_connector_sdk-0. 
     | 
| 
       13 
     | 
    
         
            -
            fivetran_connector_sdk-0. 
     | 
| 
      
 9 
     | 
    
         
            +
            fivetran_connector_sdk-0.9.3.1.dist-info/METADATA,sha256=hyyxShPlB8rgsvn8iMgnmoSg1sulKdqCdn1CEZ8_ibQ,2787
         
     | 
| 
      
 10 
     | 
    
         
            +
            fivetran_connector_sdk-0.9.3.1.dist-info/WHEEL,sha256=ixB2d4u7mugx_bCBycvM9OzZ5yD7NmPXFRtKlORZS2Y,91
         
     | 
| 
      
 11 
     | 
    
         
            +
            fivetran_connector_sdk-0.9.3.1.dist-info/entry_points.txt,sha256=uQn0KPnFlQmXJfxlk0tifdNsSXWfVlnAFzNqjXZM_xM,57
         
     | 
| 
      
 12 
     | 
    
         
            +
            fivetran_connector_sdk-0.9.3.1.dist-info/top_level.txt,sha256=-_xk2MFY4psIh7jw1lJePMzFb5-vask8_ZtX-UzYWUI,23
         
     | 
| 
      
 13 
     | 
    
         
            +
            fivetran_connector_sdk-0.9.3.1.dist-info/RECORD,,
         
     | 
| 
         
            File without changes
         
     | 
    
        {fivetran_connector_sdk-0.8.26.1.dist-info → fivetran_connector_sdk-0.9.3.1.dist-info}/top_level.txt
    RENAMED
    
    | 
         
            File without changes
         
     |