brynq-sdk-ftp 3.0.0__tar.gz → 3.0.1__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.0
3
+ Version: 3.0.1
4
4
  Summary: FTP wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -26,16 +26,19 @@ class FTPS(BrynQ):
26
26
  self.username = credentials['username']
27
27
  self.password = credentials['password']
28
28
  except ValueError:
29
- print("No FTPS credentials found")
29
+ if debug:
30
+ print("No FTPS credentials found in the platform, falling back to environment variables")
30
31
  self.host = None
31
32
  # if no credentials are retrieved from the platform, fallback to Qlik FTP (can only be target, never source)
32
33
  if self.host is None:
33
34
  if system_type == 'target' and os.getenv("QLIK_HOST") is not None and os.getenv("QLIK_USER") is not None and os.getenv("QLIK_PASSWORD") is not None:
35
+ if debug:
36
+ print("Connecting to Qlik FTPs server")
34
37
  self.host = os.getenv("QLIK_HOST")
35
38
  self.username = os.getenv("QLIK_USER")
36
39
  self.password = os.getenv("QLIK_PASSWORD")
37
40
  else:
38
- raise ValueError("Set the environment variables QLIK_HOST, QLIK_USER and QLIK_PASSWORD or connect an FTPS authorization to your interface in BrynQ")
41
+ raise ValueError("Set the environment variables QLIK_HOST, QLIK_USER and QLIK_PASSWORD and pass system_type=target to use the Qlik FTPS server, otherwise connect an FTPS authorization to your interface in BrynQ")
39
42
  self.debug = debug
40
43
 
41
44
  @retry(stop=stop_after_attempt(5), wait=wait_exponential_jitter(initial=60, max=900), retry=retry_if_exception(is_ftp_exception), reraise=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq-sdk-ftp
3
- Version: 3.0.0
3
+ Version: 3.0.1
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.0',
5
+ version='3.0.1',
6
6
  description='FTP wrapper from BrynQ',
7
7
  long_description='FTP wrapper from Brynq',
8
8
  author='BrynQ',
File without changes