singlestoredb 1.15.7__py3-none-any.whl → 1.15.8__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 singlestoredb might be problematic. Click here for more details.

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,4 +1,4 @@
1
- singlestoredb/__init__.py,sha256=UYEMO4CiO41DrAiO6xne5VttZqH7BvSD2Q-skkFRNeU,2272
1
+ singlestoredb/__init__.py,sha256=Se5cDVTuc9ipv2VOQyvD8_zf9Bqw3XfNE1Md0L2hk7U,2272
2
2
  singlestoredb/auth.py,sha256=u8D9tpKzrqa4ssaHjyZnGDX1q8XBpGtuoOkTkSv7B28,7599
3
3
  singlestoredb/config.py,sha256=aBdMrPEaNSH-QLi1AXoQaSJsZ9f6ZXoFPN-74Trr6sQ,13935
4
4
  singlestoredb/connection.py,sha256=ELk3-UpM6RaB993aIt08MydKiiDnejHQ1s8EFiacrAI,46055
@@ -9,8 +9,8 @@ singlestoredb/pytest.py,sha256=OyF3BO9mgxenifYhOihnzGk8WzCJ_zN5_mxe8XyFPOc,9074
9
9
  singlestoredb/types.py,sha256=Qp_PWYjSYG6PRnmXAZZ7K2QehUqfoG4KSllI3O1stPE,10397
10
10
  singlestoredb/vectorstore.py,sha256=BZb8e7m02_XVHqOyu8tA94R6kHb3n-BC8F08JyJwDzY,8408
11
11
  singlestoredb/ai/__init__.py,sha256=zNSUVDzDsyIfW7-obV5iRRhDjPqgPzG_EJJaT0_jtLw,284
12
- singlestoredb/ai/chat.py,sha256=uI_j1sySFO4jpUA3bcUL0Gki0F3jEbLHAq0hQLxqv3w,5074
13
- singlestoredb/ai/embeddings.py,sha256=yj9fQzwiocy78cBPfoOB9dok4gnWyE0IghCw7JIlTGI,4020
12
+ singlestoredb/ai/chat.py,sha256=EAsEyzT8jvSVYVBBf8srJG6bbx9ZcCo6CJvsifvui6k,5885
13
+ singlestoredb/ai/embeddings.py,sha256=gTgVfG6MKNF9B6NrM2Mz5p9Jh7uvUOczRKBO5a89udE,4831
14
14
  singlestoredb/alchemy/__init__.py,sha256=dXRThusYrs_9GjrhPOw0-vw94in_T8yY9jE7SGCqiQk,2523
15
15
  singlestoredb/apps/__init__.py,sha256=dfN97AZz7Np6JML3i9GJrv22ZbNCUletXmsJpQnKhKg,170
16
16
  singlestoredb/apps/_cloud_functions.py,sha256=NJJu0uJsK9TjY3yZjgftpFPR-ga-FrOyaiDD4jWFCtE,2704
@@ -174,9 +174,9 @@ singlestoredb/utils/results.py,sha256=bJtaUaDiFq26IsPAKZ2FHGB7csMn94EAxLKrP4HaEE
174
174
  singlestoredb/utils/xdict.py,sha256=S9HKgrPrnu_6b7iOwa2KrW8CmU1Uqx0BWdEyogFzWbE,12896
175
175
  sqlx/__init__.py,sha256=aBYiU8DZXCogvWu3yWafOz7bZS5WWwLZXj7oL0dXGyU,85
176
176
  sqlx/magic.py,sha256=JsS9_9aBFaOt91Torm1JPN0c8qB2QmYJmNSKtbSQIY0,3509
177
- singlestoredb-1.15.7.dist-info/LICENSE,sha256=Mlq78idURT-9G026aMYswwwnnrLcgzTLuXeAs5hjDLM,11341
178
- singlestoredb-1.15.7.dist-info/METADATA,sha256=mY9ccVuo2MtWa69X1B44KEAXubGcZpcQ5I8CO942860,5786
179
- singlestoredb-1.15.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
180
- singlestoredb-1.15.7.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
181
- singlestoredb-1.15.7.dist-info/top_level.txt,sha256=DfFGz7bM4XrshloiCeTABgylT3BUnS8T5pJam3ewT6Q,19
182
- singlestoredb-1.15.7.dist-info/RECORD,,
177
+ singlestoredb-1.15.8.dist-info/LICENSE,sha256=Mlq78idURT-9G026aMYswwwnnrLcgzTLuXeAs5hjDLM,11341
178
+ singlestoredb-1.15.8.dist-info/METADATA,sha256=KoZX7f5n48b50WUX1-kXKJo0__S7K2Blbl-qsPOzMS8,5786
179
+ singlestoredb-1.15.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
180
+ singlestoredb-1.15.8.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
181
+ singlestoredb-1.15.8.dist-info/top_level.txt,sha256=DfFGz7bM4XrshloiCeTABgylT3BUnS8T5pJam3ewT6Q,19
182
+ singlestoredb-1.15.8.dist-info/RECORD,,