wcp-library 1.0.3__tar.gz → 1.0.5__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 (21) hide show
  1. {wcp_library-1.0.3 → wcp_library-1.0.5}/PKG-INFO +1 -1
  2. {wcp_library-1.0.3 → wcp_library-1.0.5}/pyproject.toml +1 -1
  3. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/__init__.py +1 -1
  4. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/async_sql/oracle.py +3 -3
  5. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/sql/oracle.py +1 -1
  6. {wcp_library-1.0.3 → wcp_library-1.0.5}/README.md +0 -0
  7. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/async_credentials/__init__.py +0 -0
  8. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/async_credentials/api.py +0 -0
  9. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/async_credentials/oracle.py +0 -0
  10. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/async_credentials/postgres.py +0 -0
  11. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/async_sql/__init__.py +0 -0
  12. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/async_sql/postgres.py +0 -0
  13. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/credentials/__init__.py +0 -0
  14. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/credentials/api.py +0 -0
  15. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/credentials/oracle.py +0 -0
  16. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/credentials/postgres.py +0 -0
  17. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/emailing.py +0 -0
  18. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/informatica.py +0 -0
  19. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/logging.py +0 -0
  20. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/sql/__init__.py +0 -0
  21. {wcp_library-1.0.3 → wcp_library-1.0.5}/wcp_library/sql/postgres.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wcp-library
3
- Version: 1.0.3
3
+ Version: 1.0.5
4
4
  Summary: Common utilites for internal development at WCP
5
5
  Home-page: https://github.com/Whitecap-DNA/WCP-Library
6
6
  Author: Mitch-Petersen
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wcp-library"
3
- version = "1.0.3"
3
+ version = "1.0.5"
4
4
  description = "Common utilites for internal development at WCP"
5
5
  authors = ["Mitch-Petersen <mitch.petersen@wcap.ca>"]
6
6
  readme = "README.md"
@@ -11,4 +11,4 @@ if getattr(sys, 'frozen', False):
11
11
  application_path = sys.executable + '-'
12
12
  application_path = Path(application_path).parent
13
13
  else:
14
- application_path = Path(os.path.dirname(os.path.abspath(__file__)))
14
+ application_path = Path(os.environ['VIRTUAL_ENV']).parent
@@ -67,8 +67,8 @@ class AsyncOracleConnection(object):
67
67
 
68
68
  sid_or_service = self._database if self._database else self._sid
69
69
 
70
- self._session_pool = connect_warehouse(self._username, self._password, self._hostname, self._port,
71
- sid_or_service)
70
+ self._session_pool = await connect_warehouse(self._username, self._password, self._hostname, self._port,
71
+ sid_or_service)
72
72
 
73
73
  async def set_user(self, credentials_dict: dict) -> None:
74
74
  """
@@ -78,7 +78,7 @@ class AsyncOracleConnection(object):
78
78
  :return: None
79
79
  """
80
80
 
81
- if not all([credentials_dict['Service'], credentials_dict['SID']]):
81
+ if not ([credentials_dict['Service'] or credentials_dict['SID']]):
82
82
  raise ValueError("Either Service or SID must be provided")
83
83
 
84
84
  self._username: Optional[str] = credentials_dict['UserName']
@@ -76,7 +76,7 @@ class OracleConnection(object):
76
76
  :return: None
77
77
  """
78
78
 
79
- if not all([credentials_dict['Service'], credentials_dict['SID']]):
79
+ if not ([credentials_dict['Service'] or credentials_dict['SID']]):
80
80
  raise ValueError("Either Service or SID must be provided")
81
81
 
82
82
  self._username: Optional[str] = credentials_dict['UserName']
File without changes