wcp-library 1.3.1__tar.gz → 1.3.3__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 (20) hide show
  1. {wcp_library-1.3.1 → wcp_library-1.3.3}/PKG-INFO +1 -1
  2. {wcp_library-1.3.1 → wcp_library-1.3.3}/pyproject.toml +1 -1
  3. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/credentials/credential_manager_asynchronous.py +1 -1
  4. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/sql/postgres.py +4 -0
  5. {wcp_library-1.3.1 → wcp_library-1.3.3}/README.md +0 -0
  6. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/__init__.py +0 -0
  7. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/credentials/__init__.py +0 -0
  8. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/credentials/credential_manager_synchronous.py +0 -0
  9. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/credentials/ftp.py +0 -0
  10. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/credentials/oracle.py +0 -0
  11. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/credentials/postgres.py +0 -0
  12. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/emailing.py +0 -0
  13. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/ftp/__init__.py +0 -0
  14. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/ftp/ftp.py +0 -0
  15. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/ftp/sftp.py +0 -0
  16. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/informatica.py +0 -0
  17. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/logging.py +0 -0
  18. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/selenium_helper.py +0 -0
  19. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/sql/__init__.py +0 -0
  20. {wcp_library-1.3.1 → wcp_library-1.3.3}/wcp_library/sql/oracle.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wcp-library
3
- Version: 1.3.1
3
+ Version: 1.3.3
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.3.1"
3
+ version = "1.3.3"
4
4
  description = "Common utilites for internal development at WCP"
5
5
  authors = ["Mitch-Petersen <mitch.petersen@wcap.ca>"]
6
6
  readme = "README.md"
@@ -4,7 +4,7 @@ from abc import ABC,abstractmethod
4
4
  import aiohttp
5
5
  from yarl import URL
6
6
 
7
- from wcp_library.async_credentials import MissingCredentialsError
7
+ from wcp_library.credentials import MissingCredentialsError
8
8
 
9
9
  logger = logging.getLogger(__name__)
10
10
 
@@ -245,6 +245,10 @@ class PostgresConnection(object):
245
245
  if remove_nan:
246
246
  dfObj = dfObj.replace({np.nan: None})
247
247
  main_dict = dfObj.to_dict('records')
248
+ for record in main_dict:
249
+ for key in record:
250
+ if record[key] == '':
251
+ record[key] = None
248
252
 
249
253
  query = """INSERT INTO {} ({}) VALUES ({})""".format(outputTableName, col, params)
250
254
  self.execute_many(query, main_dict)
File without changes