wcp-library 1.4.4__py3-none-any.whl → 1.4.6__py3-none-any.whl
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.
wcp_library/__init__.py
CHANGED
@@ -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) ->
|
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):
|
wcp_library/sql/oracle.py
CHANGED
@@ -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)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
wcp_library/__init__.py,sha256=
|
1
|
+
wcp_library/__init__.py,sha256=bdNwVRQugYLeKlJFj3kE0U1LvqlK1O0k8CjF-_xqrEE,625
|
2
2
|
wcp_library/credentials/__init__.py,sha256=cfClJuFs9E3o_-5IPSKVJrkhQTiC3S2HhnZdrab9L6U,1856
|
3
3
|
wcp_library/credentials/_credential_manager_asynchronous.py,sha256=shdFh1_JG8WUyN4DRhVo5i9d4c9YIL-ca5xhhfkVOZE,6390
|
4
4
|
wcp_library/credentials/_credential_manager_synchronous.py,sha256=QUF3OOUgx0gu2PKFykkB69C-Kf_-9lyo2RIVA2JYvyc,5764
|
@@ -15,9 +15,9 @@ wcp_library/informatica.py,sha256=_g9lzSd-JLsY4e5_g6YcxQtOxP6fkg4sGfvNJaAN7jY,81
|
|
15
15
|
wcp_library/logging.py,sha256=e6gG7HFgUrMajUZs4Gs0atFfOJJmdmxN0GerfynNWlY,2061
|
16
16
|
wcp_library/selenium_helper.py,sha256=w8YUC0pq7TkWiobc2ri4QR5fcHrrZgB5RAEfAdxZiuk,3780
|
17
17
|
wcp_library/sql/__init__.py,sha256=TwbaOC-bPxJUM9XuT4sKq3erEvQ4IX_E2qNns_-ToFI,1932
|
18
|
-
wcp_library/sql/oracle.py,sha256=
|
18
|
+
wcp_library/sql/oracle.py,sha256=jcGoH2iGkgxW-RJV5FRf_CwNzilkxPN6_pJ27te5Qe0,15815
|
19
19
|
wcp_library/sql/postgres.py,sha256=Kfj5kfNwLyhE6bZIcqj6tjpbiGSyAMErY_Kr9eGm-2Q,14814
|
20
20
|
wcp_library/time.py,sha256=ktSzhK7SZnGPNXobFexnhFGQAcriLCJQKxnO0fed8fQ,1740
|
21
|
-
wcp_library-1.4.
|
22
|
-
wcp_library-1.4.
|
23
|
-
wcp_library-1.4.
|
21
|
+
wcp_library-1.4.6.dist-info/METADATA,sha256=YwtQ9rhvVG3n0C4XJG2-cDcX36Zr5TKLxyMEiJABAFw,1497
|
22
|
+
wcp_library-1.4.6.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
23
|
+
wcp_library-1.4.6.dist-info/RECORD,,
|