singlestoredb 1.15.7__cp38-abi3-win32.whl → 1.15.8__cp38-abi3-win32.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 singlestoredb might be problematic. Click here for more details.

_singlestoredb_accel.pyd CHANGED
Binary file
singlestoredb/__init__.py CHANGED
@@ -13,7 +13,7 @@ Examples
13
13
 
14
14
  """
15
15
 
16
- __version__ = '1.15.7'
16
+ __version__ = '1.15.8'
17
17
 
18
18
  from typing import Any
19
19
 
singlestoredb/ai/chat.py CHANGED
@@ -90,9 +90,27 @@ def SingleStoreChatFactory(
90
90
  'signature_version': UNSIGNED,
91
91
  'retries': {'max_attempts': 1, 'mode': 'standard'},
92
92
  }
93
- if http_client is not None and http_client.timeout is not None:
94
- cfg_kwargs['read_timeout'] = http_client.timeout
95
- cfg_kwargs['connect_timeout'] = http_client.timeout
93
+ # Extract timeouts from http_client if provided
94
+ t = http_client.timeout if http_client is not None else None
95
+ connect_timeout = None
96
+ read_timeout = None
97
+ if t is not None:
98
+ if isinstance(t, httpx.Timeout):
99
+ if t.connect is not None:
100
+ connect_timeout = float(t.connect)
101
+ if t.read is not None:
102
+ read_timeout = float(t.read)
103
+ if connect_timeout is None and read_timeout is not None:
104
+ connect_timeout = read_timeout
105
+ if read_timeout is None and connect_timeout is not None:
106
+ read_timeout = connect_timeout
107
+ elif isinstance(t, (int, float)):
108
+ connect_timeout = float(t)
109
+ read_timeout = float(t)
110
+ if read_timeout is not None:
111
+ cfg_kwargs['read_timeout'] = read_timeout
112
+ if connect_timeout is not None:
113
+ cfg_kwargs['connect_timeout'] = connect_timeout
96
114
 
97
115
  cfg = Config(**cfg_kwargs)
98
116
  client = boto3.client(
@@ -66,9 +66,27 @@ def SingleStoreEmbeddingsFactory(
66
66
  'signature_version': UNSIGNED,
67
67
  'retries': {'max_attempts': 1, 'mode': 'standard'},
68
68
  }
69
- if http_client is not None and http_client.timeout is not None:
70
- cfg_kwargs['read_timeout'] = http_client.timeout
71
- cfg_kwargs['connect_timeout'] = http_client.timeout
69
+ # Extract timeouts from http_client if provided
70
+ t = http_client.timeout if http_client is not None else None
71
+ connect_timeout = None
72
+ read_timeout = None
73
+ if t is not None:
74
+ if isinstance(t, httpx.Timeout):
75
+ if t.connect is not None:
76
+ connect_timeout = float(t.connect)
77
+ if t.read is not None:
78
+ read_timeout = float(t.read)
79
+ if connect_timeout is None and read_timeout is not None:
80
+ connect_timeout = read_timeout
81
+ if read_timeout is None and connect_timeout is not None:
82
+ read_timeout = connect_timeout
83
+ elif isinstance(t, (int, float)):
84
+ connect_timeout = float(t)
85
+ read_timeout = float(t)
86
+ if read_timeout is not None:
87
+ cfg_kwargs['read_timeout'] = read_timeout
88
+ if connect_timeout is not None:
89
+ cfg_kwargs['connect_timeout'] = connect_timeout
72
90
 
73
91
  cfg = Config(**cfg_kwargs)
74
92
  client = boto3.client(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: singlestoredb
3
- Version: 1.15.7
3
+ Version: 1.15.8
4
4
  Summary: Interface to the SingleStoreDB database and workspace management APIs
5
5
  Home-page: https://github.com/singlestore-labs/singlestoredb-python
6
6
  Author: SingleStore
@@ -1,5 +1,5 @@
1
- _singlestoredb_accel.pyd,sha256=g4XwTtiB_Bh5u5Gp6ZqVGb9osbvsgxlvR_B0FpWP2tw,66048
2
- singlestoredb/__init__.py,sha256=u2CikpICZU2cfOtACmfPHcCpopQJh4sKnWIabY_St5I,2347
1
+ _singlestoredb_accel.pyd,sha256=_EOaWb2wrOt2oSYA94SJ76qmEaKLwy9H3Re41Ck8_ZA,66048
2
+ singlestoredb/__init__.py,sha256=-xs5A-tuNcZ5Xk8n4F9GfcC0YO60Sh-GPF807rEfUo4,2347
3
3
  singlestoredb/auth.py,sha256=RmYiH0Wlc2RXc4pTlRMysxtBI445ggCIwojWKC_eDLE,7844
4
4
  singlestoredb/config.py,sha256=rS8OmWMaHfMJQTkmSw_qwXR2R0HP80eP4gjzVmXkL2E,14419
5
5
  singlestoredb/connection.py,sha256=I2AP_0l7hNARfXiSuVW953CsGYn_rKbTg_NyWEiGHbY,47542
@@ -10,8 +10,8 @@ singlestoredb/pytest.py,sha256=TH364xRCN7_QaN0oRQDHixrEcDx_ZBgu3bmY0tvKrYU,9357
10
10
  singlestoredb/types.py,sha256=g6iJnOSCuRUkuUJOYSdRPt3QTjC9h2Dq4fqFFktXxXg,10770
11
11
  singlestoredb/vectorstore.py,sha256=4YvXml3PpOEOtUGO7gylucKG2Rny8Bx6L29kmhsFiCY,8600
12
12
  singlestoredb/ai/__init__.py,sha256=CRIMT-_UXo4t6_wR9hu-mpm-20t9BsWU7jLRDz01f-g,289
13
- singlestoredb/ai/chat.py,sha256=-BJ_kAfeCFQJsNea0uwsvMh_QsQ2aH30yY7dsGOv-TI,5233
14
- singlestoredb/ai/embeddings.py,sha256=uqUCpIMNDC58k6LcKeNHqu5TnMApwHIatzqB3dT9Xq8,4145
13
+ singlestoredb/ai/chat.py,sha256=VGEFI_etjq9Srqpa0mYRYgXj0xuoRNvqwMT34vZcX2g,6062
14
+ singlestoredb/ai/embeddings.py,sha256=3VmFaL8Zgj1pUYmltC_y_olKbLiKmhHu4G_W33r4TR0,4974
15
15
  singlestoredb/alchemy/__init__.py,sha256=bUmCl1xUn2v36RMbXLIrvgKzZSqx71mp1ReUw9JeVA8,2613
16
16
  singlestoredb/apps/__init__.py,sha256=7l4d4hCtm1ykDNf7UBi3Qnqg9N0qPs5jbQ0Al5tS5aM,173
17
17
  singlestoredb/apps/_cloud_functions.py,sha256=DMRC-4z3Q52hsKb_WlolfNcYV-5XmQGiJWbbaUxFZ0s,2794
@@ -175,9 +175,9 @@ singlestoredb/utils/results.py,sha256=wR70LhCqlobniZf52r67zYLBOKjWHQm68NAskdRQND
175
175
  singlestoredb/utils/xdict.py,sha256=-wi1lSPTnY99fhVMBhPKJ8cCsQhNG4GMUfkEBDKYgCw,13321
176
176
  sqlx/__init__.py,sha256=4Sdn8HN-Hf8v0_wCt60DCckCg8BvgM3-9r4YVfZycRE,89
177
177
  sqlx/magic.py,sha256=6VBlotgjautjev599tHaTYOfcfOA9m6gV_-P1_Qc4lI,3622
178
- singlestoredb-1.15.7.dist-info/LICENSE,sha256=Bojenzui8aPNjlF3w4ojguDP7sTf8vFV_9Gc2UAG1sg,11542
179
- singlestoredb-1.15.7.dist-info/METADATA,sha256=OcwiI1QeSFlKhbYIIPE48Etg2ARJh5XPnu_Fr18oMSI,5949
180
- singlestoredb-1.15.7.dist-info/WHEEL,sha256=c4k7z5HB0t-y0nBCv6KyJ6KCjn8SEGPddD0lhaPtU3E,96
181
- singlestoredb-1.15.7.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
182
- singlestoredb-1.15.7.dist-info/top_level.txt,sha256=lA65Vf4qAMfg_s1oG3LEO90h4t1Z-SPDbRqkevI3bSY,40
183
- singlestoredb-1.15.7.dist-info/RECORD,,
178
+ singlestoredb-1.15.8.dist-info/LICENSE,sha256=Bojenzui8aPNjlF3w4ojguDP7sTf8vFV_9Gc2UAG1sg,11542
179
+ singlestoredb-1.15.8.dist-info/METADATA,sha256=iw1SdtcJ7Z983914pzTXVehSK-dXYC5sBw9GtY7R7_w,5949
180
+ singlestoredb-1.15.8.dist-info/WHEEL,sha256=c4k7z5HB0t-y0nBCv6KyJ6KCjn8SEGPddD0lhaPtU3E,96
181
+ singlestoredb-1.15.8.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
182
+ singlestoredb-1.15.8.dist-info/top_level.txt,sha256=lA65Vf4qAMfg_s1oG3LEO90h4t1Z-SPDbRqkevI3bSY,40
183
+ singlestoredb-1.15.8.dist-info/RECORD,,