wcp-library 1.4.4__tar.gz → 1.4.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 (23) hide show
  1. {wcp_library-1.4.4 → wcp_library-1.4.6}/PKG-INFO +1 -1
  2. {wcp_library-1.4.4 → wcp_library-1.4.6}/pyproject.toml +1 -1
  3. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/__init__.py +3 -3
  4. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/sql/oracle.py +3 -3
  5. {wcp_library-1.4.4 → wcp_library-1.4.6}/README.md +0 -0
  6. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/credentials/__init__.py +0 -0
  7. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/credentials/_credential_manager_asynchronous.py +0 -0
  8. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/credentials/_credential_manager_synchronous.py +0 -0
  9. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/credentials/api.py +0 -0
  10. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/credentials/ftp.py +0 -0
  11. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/credentials/internet.py +0 -0
  12. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/credentials/oracle.py +0 -0
  13. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/credentials/postgres.py +0 -0
  14. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/emailing.py +0 -0
  15. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/ftp/__init__.py +0 -0
  16. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/ftp/ftp.py +0 -0
  17. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/ftp/sftp.py +0 -0
  18. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/informatica.py +0 -0
  19. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/logging.py +0 -0
  20. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/selenium_helper.py +0 -0
  21. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/sql/__init__.py +0 -0
  22. {wcp_library-1.4.4 → wcp_library-1.4.6}/wcp_library/sql/postgres.py +0 -0
  23. {wcp_library-1.4.4 → wcp_library-1.4.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.4.4
3
+ Version: 1.4.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
  [tool.poetry]
2
2
  name = "wcp-library"
3
- version = "1.4.4"
3
+ version = "1.4.6"
4
4
  description = "Common utilites for internal development at WCP"
5
5
  authors = ["Mitch-Petersen <mitch.petersen@wcap.ca>"]
6
6
  readme = "README.md"
@@ -1,6 +1,6 @@
1
- import os
2
1
  import sys
3
2
  from pathlib import Path
3
+ from typing import Generator
4
4
 
5
5
  # PyInstaller import
6
6
  import pip_system_certs.wrapt_requests
@@ -15,13 +15,13 @@ else:
15
15
  application_path = Path().absolute()
16
16
 
17
17
 
18
- def divide_chunks(list_obj: list, size: int) -> list:
18
+ def divide_chunks(list_obj: list, size: int) -> Generator:
19
19
  """
20
20
  Divide a list into chunks of size
21
21
 
22
22
  :param list_obj:
23
23
  :param size:
24
- :return:
24
+ :return: Generator
25
25
  """
26
26
 
27
27
  for i in range(0, len(list_obj), size):
@@ -89,7 +89,7 @@ class OracleConnection(object):
89
89
 
90
90
  self._retry_count = 0
91
91
  self.retry_limit = 50
92
- self.retry_error_codes = ['ORA-01033', 'DPY-6005', 'DPY-4011']
92
+ self.retry_error_codes = ['ORA-01033', 'DPY-6005', 'DPY-4011', 'ORA-08103']
93
93
 
94
94
  @retry
95
95
  def _connect(self) -> None:
@@ -326,7 +326,7 @@ class AsyncOracleConnection(object):
326
326
 
327
327
  self._retry_count = 0
328
328
  self.retry_limit = 50
329
- self.retry_error_codes = ['ORA-01033', 'DPY-6005', 'DPY-4011']
329
+ self.retry_error_codes = ['ORA-01033', 'DPY-6005', 'DPY-4011', 'ORA-08103']
330
330
 
331
331
  @async_retry
332
332
  async def _connect(self) -> None:
@@ -524,4 +524,4 @@ class AsyncOracleConnection(object):
524
524
  """
525
525
 
526
526
  deleteQuery = """DELETE FROM {}""".format(tableName)
527
- await self.execute(deleteQuery)
527
+ await self.execute(deleteQuery)
File without changes