wcp-library 1.3.1__py3-none-any.whl → 1.3.3__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.
@@ -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)
@@ -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
  wcp_library/__init__.py,sha256=hwLbcu00uI6L_xjXO9-I0YcODl2WtIOkdNLoDcXv7zk,591
2
2
  wcp_library/credentials/__init__.py,sha256=HRmg7mqcATeclIz3lZQjSR4nmK6aY6MK9-QXEYZoFrw,1857
3
- wcp_library/credentials/credential_manager_asynchronous.py,sha256=oTuo-TJpOWU52eaW6fhQL6QZ3zZvz_1WSpuSeA9thco,5728
3
+ wcp_library/credentials/credential_manager_asynchronous.py,sha256=avAvolbtE1qPTTaUas_fMX7Oj_fiBUMutAFztRDDKJI,5722
4
4
  wcp_library/credentials/credential_manager_synchronous.py,sha256=ouPNLt20FvocuMoFx49mbDL7-Moj_WrlpR7k97mx-i4,5512
5
5
  wcp_library/credentials/ftp.py,sha256=O4oSPtCCv_0w6sLITFnY9EpN6-K2XxeibbGB0VnTHJ4,2589
6
6
  wcp_library/credentials/oracle.py,sha256=m0WtmSyUdKUfsz1SPkRgc7A080rK6cq7jVoQ0YcWJ50,2867
@@ -14,7 +14,7 @@ wcp_library/logging.py,sha256=e6gG7HFgUrMajUZs4Gs0atFfOJJmdmxN0GerfynNWlY,2061
14
14
  wcp_library/selenium_helper.py,sha256=rlphTXsUgnbaXZknY5nfQqxFhnc7UmrpzhV3hQ-cv7k,2509
15
15
  wcp_library/sql/__init__.py,sha256=s2psmwkq_ZU23iGWvXjJrLu0hD1fB6CDv6RHcK7y828,1917
16
16
  wcp_library/sql/oracle.py,sha256=TGiTC5L5UcM5QcHFajgn43NI8HygOGIEAtLmLbVFp2I,15772
17
- wcp_library/sql/postgres.py,sha256=ybk7WudcuT3_SmdkWrl01Z8rmiishHqvB1SCI9nng7g,14392
18
- wcp_library-1.3.1.dist-info/METADATA,sha256=jBdqrTJokOY93ioq_ZLIfykk6_V6Mdvx0qFQAaWxaWE,1513
19
- wcp_library-1.3.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
20
- wcp_library-1.3.1.dist-info/RECORD,,
17
+ wcp_library/sql/postgres.py,sha256=GElSjLDworrRlzA7DLrbcQlW7BqvhgMbvW89v-yZejk,14533
18
+ wcp_library-1.3.3.dist-info/METADATA,sha256=OsZJWIWZQ8iDOGtljfPsdpA4jQK8Chj1YihteHZwnQ4,1513
19
+ wcp_library-1.3.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
20
+ wcp_library-1.3.3.dist-info/RECORD,,