brynq-sdk-ftp 2.0.5__tar.gz → 2.0.7__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq_sdk_ftp
3
- Version: 2.0.5
3
+ Version: 2.0.7
4
4
  Summary: FTP wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -10,14 +10,15 @@ import os
10
10
 
11
11
 
12
12
  class SFTP(BrynQ):
13
- def __init__(self, label: Union[str, List], debug=False):
13
+ def __init__(self, interface_id:str ,system_type:str, debug=False):
14
14
  """
15
15
  Init the SFTP class
16
16
  :param label: The label of the connector
17
17
  :param debug: If you want to see debug messages
18
18
  """
19
19
  super().__init__()
20
- credentials = self.get_system_credential(system='sftp', label=label)
20
+ config = self.interfaces.credentials.get(interface_id=interface_id, system= "sftp",system_type=system_type)
21
+ credentials =config['data']
21
22
  self.debug = debug
22
23
  if self.debug:
23
24
  print(credentials)
@@ -35,10 +36,6 @@ class SFTP(BrynQ):
35
36
  self.client = SSHClient()
36
37
  self.client.set_missing_host_key_policy(AutoAddPolicy())
37
38
 
38
-
39
-
40
-
41
-
42
39
  def upload_file(self, local_filepath, remote_filepath, confirm=True) -> SFTPAttributes:
43
40
  """
44
41
  Upload a single file to a remote location. If there is no Private key
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq-sdk-ftp
3
- Version: 2.0.5
3
+ Version: 2.0.7
4
4
  Summary: FTP wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
2
2
 
3
3
  setup(
4
4
  name='brynq_sdk_ftp',
5
- version='2.0.5',
5
+ version='2.0.7',
6
6
  description='FTP wrapper from BrynQ',
7
7
  long_description='FTP wrapper from Brynq',
8
8
  author='BrynQ',
File without changes