wcp-library 1.6.5__tar.gz → 1.6.6__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.
Files changed (28) hide show
  1. {wcp_library-1.6.5 → wcp_library-1.6.6}/PKG-INFO +1 -1
  2. {wcp_library-1.6.5 → wcp_library-1.6.6}/pyproject.toml +1 -1
  3. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/ftp/ftp.py +1 -1
  4. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/sql/oracle.py +5 -4
  5. {wcp_library-1.6.5 → wcp_library-1.6.6}/README.md +0 -0
  6. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/__init__.py +0 -0
  7. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/browser_automation/__init__.py +0 -0
  8. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/browser_automation/browser.py +0 -0
  9. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/browser_automation/interactions.py +0 -0
  10. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/credentials/__init__.py +0 -0
  11. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/credentials/_credential_manager_asynchronous.py +0 -0
  12. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/credentials/_credential_manager_synchronous.py +0 -0
  13. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/credentials/api.py +0 -0
  14. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/credentials/ftp.py +0 -0
  15. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/credentials/internet.py +0 -0
  16. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/credentials/oracle.py +0 -0
  17. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/credentials/postgres.py +0 -0
  18. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/emailing.py +0 -0
  19. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/ftp/__init__.py +0 -0
  20. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/ftp/sftp.py +0 -0
  21. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/informatica.py +0 -0
  22. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/logging.py +0 -0
  23. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/selenium/__init__.py +0 -0
  24. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/selenium/_selenium_driver.py +0 -0
  25. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/selenium/selenium_helper.py +0 -0
  26. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/sql/__init__.py +0 -0
  27. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/sql/postgres.py +0 -0
  28. {wcp_library-1.6.5 → wcp_library-1.6.6}/wcp_library/time.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: wcp-library
3
- Version: 1.6.5
3
+ Version: 1.6.6
4
4
  Summary: Common utilites for internal development at WCP
5
5
  Author: Mitch-Petersen
6
6
  Author-email: mitch.petersen@wcap.ca
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "wcp-library"
3
- version = "1.6.5"
3
+ version = "1.6.6"
4
4
  description = "Common utilites for internal development at WCP"
5
5
  authors = [{name="Mitch-Petersen", email="mitch.petersen@wcap.ca"}]
6
6
  readme = "README.md"
@@ -17,7 +17,7 @@ class FTP:
17
17
 
18
18
  self._ftp_factory: ftputil.session.session_factory = ftputil.session.session_factory(port=self.port)
19
19
  self.ftp_connection: Optional[ftputil.FTPHost] = None if not (self._username and self._password) \
20
- else ftputil.FTPHost(self.host, self._username, self._password, session_factory=self._ftp_factory)
20
+ else ftputil.FTPHost(self.host, self._username, self._password) #, session_factory=self._ftp_factory)
21
21
 
22
22
  def login(self, username: str, password: str) -> None:
23
23
  """
@@ -9,6 +9,7 @@ from oracledb import ConnectionPool, AsyncConnectionPool, Connection, AsyncConne
9
9
  from wcp_library.sql import retry, async_retry
10
10
 
11
11
  logger = logging.getLogger(__name__)
12
+ oracledb.defaults.fetch_lobs = False
12
13
 
13
14
 
14
15
  def _connect_warehouse(username: str, password: str, hostname: str, port: int, database: str, min_connections: int,
@@ -44,7 +45,7 @@ def _connect_warehouse(username: str, password: str, hostname: str, port: int, d
44
45
  connection = oracledb.connect(
45
46
  user=username,
46
47
  password=password,
47
- dsn=oracledb.makedsn(hostname, port, sid=database)
48
+ dsn=oracledb.makedsn(hostname, port, service_name=database)
48
49
  )
49
50
  return connection
50
51
 
@@ -82,7 +83,7 @@ async def _async_connect_warehouse(username: str, password: str, hostname: str,
82
83
  connection = await oracledb.connect_async(
83
84
  user=username,
84
85
  password=password,
85
- dsn=oracledb.makedsn(hostname, port, sid=database)
86
+ dsn=oracledb.makedsn(hostname, port, service_name=database)
86
87
  )
87
88
  return connection
88
89
 
@@ -113,7 +114,7 @@ class OracleConnection(object):
113
114
 
114
115
  self._retry_count = 0
115
116
  self.retry_limit = 50
116
- self.retry_error_codes = ['ORA-01033', 'DPY-6005', 'DPY-4011', 'ORA-08103']
117
+ self.retry_error_codes = ['ORA-01033', 'DPY-6005', 'DPY-4011', 'ORA-08103', 'ORA-04021']
117
118
 
118
119
  @retry
119
120
  def _connect(self) -> None:
@@ -392,7 +393,7 @@ class AsyncOracleConnection(object):
392
393
 
393
394
  self._retry_count = 0
394
395
  self.retry_limit = 50
395
- self.retry_error_codes = ['ORA-01033', 'DPY-6005', 'DPY-4011', 'ORA-08103']
396
+ self.retry_error_codes = ['ORA-01033', 'DPY-6005', 'DPY-4011', 'ORA-08103', 'ORA-04021']
396
397
 
397
398
  @async_retry
398
399
  async def _connect(self) -> None:
File without changes