datamarket 0.9.8__py3-none-any.whl → 0.9.9__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.

Potentially problematic release.


This version of datamarket might be problematic. Click here for more details.

@@ -112,6 +112,8 @@ class ClickhousePeer:
112
112
  def __init__(self, config):
113
113
  if "clickhouse" in config:
114
114
  self.config = config["clickhouse"]
115
+ self.credentials = {key: self.config[key] for key in ["user", "password", "host", "port"]}
116
+
115
117
  else:
116
118
  logger.warning("no clickhouse section in config")
117
119
 
@@ -121,7 +123,7 @@ class ClickhousePeer:
121
123
 
122
124
  self.ensure_database_exists(database)
123
125
  self.config["database"] = database
124
- self.client = clickhouse_driver.Client(**self.config)
126
+ self.client = clickhouse_driver.Client(**self.credentials)
125
127
 
126
128
  def _check_connection(self):
127
129
  if self.client is None:
@@ -129,7 +131,7 @@ class ClickhousePeer:
129
131
 
130
132
  def ensure_database_exists(self, database):
131
133
  logger.info(f"Checking if database '{database}' exists in Clickhouse")
132
- temp_client = clickhouse_driver.Client(**self.config)
134
+ temp_client = clickhouse_driver.Client(**self.credentials)
133
135
  databases = temp_client.execute("SHOW DATABASES")
134
136
  if database not in [db[0] for db in databases]:
135
137
  logger.info(f"Creating database '{database}'")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: datamarket
3
- Version: 0.9.8
3
+ Version: 0.9.9
4
4
  Summary: Utilities that integrate advanced scraping knowledge into just one library.
5
5
  License: GPL-3.0-or-later
6
6
  Author: DataMarket
@@ -5,7 +5,7 @@ datamarket/interfaces/aws.py,sha256=7KLUeBxmPN7avEMPsu5HC_KHB1N7W6Anp2X8fo43mlw,
5
5
  datamarket/interfaces/drive.py,sha256=shbV5jpQVe_KPE-8Idx6Z9te5Zu1SmVfrvSAyd9ZIgE,2915
6
6
  datamarket/interfaces/ftp.py,sha256=o0KlJxtksbop9OjCiQRzyAa2IeG_ExVXagS6apwrAQo,1881
7
7
  datamarket/interfaces/nominatim.py,sha256=_gFJ04D-ju5xn3wuaGT5Pj5jhf4F5eINpxOpuQL_dIQ,3664
8
- datamarket/interfaces/peerdb.py,sha256=pTILnhnV3fRZL7aaEg_MbPDu7KSuw7lAeG47-OJayyY,22087
8
+ datamarket/interfaces/peerdb.py,sha256=WKMMHlTGB8piDah-mpepWhgKFvgPZmhaVU3Ueh04oY0,22213
9
9
  datamarket/interfaces/proxy.py,sha256=updoOStKd8-nQBbxWbnD9eOt6HksnYi-5dQ0rEySf5M,3152
10
10
  datamarket/interfaces/tinybird.py,sha256=AYrcRGNOCoCt7ojilkWa27POROee9sTCwZ61GGHEPeM,2698
11
11
  datamarket/params/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -17,7 +17,7 @@ datamarket/utils/main.py,sha256=O6rX-65h4h0j2zs9dofdTPlly5reKDnvgLtTwbLmbWg,6529
17
17
  datamarket/utils/selenium.py,sha256=IMKlbLzXABFhACnWzhHmB0l2hhVzNwHGZwbo14nEewQ,2499
18
18
  datamarket/utils/soda.py,sha256=eZTXFbI1P3WoMd1MM-YjoVTpdjTcDSWuvBb7ViBMhSQ,941
19
19
  datamarket/utils/typer.py,sha256=FDF3l6gh3UlAFPsHCtesnekvct2rKz0oFn3uKARBQvE,814
20
- datamarket-0.9.8.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
21
- datamarket-0.9.8.dist-info/METADATA,sha256=Hokmy_KnaGN4bwDG4S2NjJRyYy2jNZd2ZkBq4hwA7Bc,6362
22
- datamarket-0.9.8.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
23
- datamarket-0.9.8.dist-info/RECORD,,
20
+ datamarket-0.9.9.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
21
+ datamarket-0.9.9.dist-info/METADATA,sha256=0CjAFeYD6ybomculTyKLtQqMgD67YXeXsRQ3UtTz31A,6362
22
+ datamarket-0.9.9.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
23
+ datamarket-0.9.9.dist-info/RECORD,,