brynq-sdk-ftp 3.0.3__tar.gz → 3.0.4__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: 3.0.3
3
+ Version: 3.0.4
4
4
  Summary: FTP wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -60,13 +60,12 @@ class SFTP(BrynQ):
60
60
  self.password = credentials.get('password')
61
61
 
62
62
  # Key options
63
- self.private_key_path = credentials.get('private_key_password')
63
+ self.private_key_path = credentials.get('private_key_path')
64
64
  self.private_key_passphrase = credentials.get('private_key_password')
65
+ self.private_key = None
65
66
  if credentials.get('private_key'):
66
67
  self.private_key = RSAKey(file_obj=StringIO(credentials.get('private_key')), password=self.private_key_passphrase)
67
68
 
68
-
69
-
70
69
  def upload_file(self, local_filepath, remote_filepath, confirm=True) -> SFTPAttributes:
71
70
  """
72
71
  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: 3.0.3
3
+ Version: 3.0.4
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='3.0.3',
5
+ version='3.0.4',
6
6
  description='FTP wrapper from BrynQ',
7
7
  long_description='FTP wrapper from Brynq',
8
8
  author='BrynQ',
@@ -17,4 +17,4 @@ setup(
17
17
  'tenacity>=8,<9'
18
18
  ],
19
19
  zip_safe=False,
20
- )
20
+ )
File without changes