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.
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/PKG-INFO +1 -1
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/brynq_sdk_ftp/sftp.py +2 -3
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/brynq_sdk_ftp.egg-info/PKG-INFO +1 -1
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/setup.py +2 -2
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/brynq_sdk_ftp/__init__.py +0 -0
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/brynq_sdk_ftp/ftps.py +0 -0
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/brynq_sdk_ftp.egg-info/SOURCES.txt +0 -0
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/brynq_sdk_ftp.egg-info/dependency_links.txt +0 -0
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/brynq_sdk_ftp.egg-info/not-zip-safe +0 -0
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/brynq_sdk_ftp.egg-info/requires.txt +0 -0
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/brynq_sdk_ftp.egg-info/top_level.txt +0 -0
- {brynq_sdk_ftp-3.0.3 → brynq_sdk_ftp-3.0.4}/setup.cfg +0 -0
|
@@ -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('
|
|
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
|
|
@@ -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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|