singlestoredb 1.15.5__py3-none-any.whl → 1.15.6__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.5'
16
+ __version__ = '1.15.6'
17
17
 
18
18
  from typing import Any
19
19
 
@@ -42,6 +42,7 @@ import tempfile
42
42
  import textwrap
43
43
  import threading
44
44
  import time
45
+ import traceback
45
46
  import typing
46
47
  import urllib
47
48
  import uuid
@@ -709,21 +710,21 @@ class Application(object):
709
710
  error_response_dict: Dict[str, Any] = dict(
710
711
  type='http.response.start',
711
712
  status=500,
712
- headers=[(b'content-type', b'application/json')],
713
+ headers=[(b'content-type', b'text/plain')],
713
714
  )
714
715
 
715
716
  # Timeout response start
716
717
  timeout_response_dict: Dict[str, Any] = dict(
717
718
  type='http.response.start',
718
719
  status=504,
719
- headers=[(b'content-type', b'application/json')],
720
+ headers=[(b'content-type', b'text/plain')],
720
721
  )
721
722
 
722
723
  # Cancel response start
723
724
  cancel_response_dict: Dict[str, Any] = dict(
724
725
  type='http.response.start',
725
726
  status=503,
726
- headers=[(b'content-type', b'application/json')],
727
+ headers=[(b'content-type', b'text/plain')],
727
728
  )
728
729
 
729
730
  # JSON response start
@@ -1247,12 +1248,10 @@ class Application(object):
1247
1248
  'timeout': func_info['timeout'],
1248
1249
  },
1249
1250
  )
1250
- body = json.dumps(
1251
- dict(
1252
- error='[TimeoutError] Function call timed out after ' +
1253
- str(func_info['timeout']) +
1254
- ' seconds',
1255
- ),
1251
+ body = (
1252
+ 'TimeoutError: Function call timed out after ' +
1253
+ str(func_info['timeout']) +
1254
+ ' seconds'
1256
1255
  ).encode('utf-8')
1257
1256
  await send(self.timeout_response_dict)
1258
1257
 
@@ -1265,11 +1264,7 @@ class Application(object):
1265
1264
  'function_name': func_name.decode('utf-8'),
1266
1265
  },
1267
1266
  )
1268
- body = json.dumps(
1269
- dict(
1270
- error='[CancelledError] Function call was cancelled',
1271
- ),
1272
- ).encode('utf-8')
1267
+ body = b'CancelledError: Function call was cancelled'
1273
1268
  await send(self.cancel_response_dict)
1274
1269
 
1275
1270
  except Exception as e:
@@ -1282,11 +1277,12 @@ class Application(object):
1282
1277
  'exception_type': type(e).__name__,
1283
1278
  },
1284
1279
  )
1285
- body = json.dumps(
1286
- dict(
1287
- error=f'[{type(e).__name__}] {str(e).strip()}',
1288
- ),
1289
- ).encode('utf-8')
1280
+ msg = traceback.format_exc().strip().split(' File ')[-1]
1281
+ if msg.startswith('"/tmp/ipykernel_'):
1282
+ msg = 'Line ' + msg.split(', line ')[-1]
1283
+ else:
1284
+ msg = 'File ' + msg
1285
+ body = msg.encode('utf-8')
1290
1286
  await send(self.error_response_dict)
1291
1287
 
1292
1288
  finally:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: singlestoredb
3
- Version: 1.15.5
3
+ Version: 1.15.6
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=laZYv8Vwx1AbBnqnp8ESXHckpITWCEmLX7WlFArId-Y,2272
1
+ singlestoredb/__init__.py,sha256=p-cOjndCFiOpcf9fyhqPVRUJ-wf-2vLNqzIPBvR0KRg,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
@@ -47,7 +47,7 @@ singlestoredb/functions/signature.py,sha256=h2vFVNP07d5a3gi7zMiM_sztDUNK_HlJWR-R
47
47
  singlestoredb/functions/utils.py,sha256=1L0Phgzq0XdWK3ecfOOydq4zV955yCwpDoAaCYRGldk,10769
48
48
  singlestoredb/functions/ext/__init__.py,sha256=1oLL20yLB1GL9IbFiZD8OReDqiCpFr-yetIR6x1cNkI,23
49
49
  singlestoredb/functions/ext/arrow.py,sha256=WB7n1ACslyd8nlbFzUvlbxn1BVuEjA9-BGBEqCWlSOo,9061
50
- singlestoredb/functions/ext/asgi.py,sha256=HWbSuYpAOfq-iS7oKDdXCkz5OIaMOGnXYwrTIVzFqOM,72370
50
+ singlestoredb/functions/ext/asgi.py,sha256=C6UJXunHY-dISp4k4CH-poEt8dyzqIjLQpuj06_ttRA,72268
51
51
  singlestoredb/functions/ext/json.py,sha256=RIuZdDybEdHuC-f2p6BdjhFjM3iGb3a1PRQ4k11P6N8,10102
52
52
  singlestoredb/functions/ext/mmap.py,sha256=RzyNSLRpI5ZJ8YN6k-AvZlRTLjj80j52byHLtW8c3ps,13710
53
53
  singlestoredb/functions/ext/rowdat_1.py,sha256=SlXbJ2042jEoaXw81y5llw1625w0aU2nZ8vI_O3qA-M,21112
@@ -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.5.dist-info/LICENSE,sha256=Mlq78idURT-9G026aMYswwwnnrLcgzTLuXeAs5hjDLM,11341
178
- singlestoredb-1.15.5.dist-info/METADATA,sha256=MaDtKixuU3A-j6N1Yct8jytJjY415fFKY1-h9tKLiNw,5786
179
- singlestoredb-1.15.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
180
- singlestoredb-1.15.5.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
181
- singlestoredb-1.15.5.dist-info/top_level.txt,sha256=DfFGz7bM4XrshloiCeTABgylT3BUnS8T5pJam3ewT6Q,19
182
- singlestoredb-1.15.5.dist-info/RECORD,,
177
+ singlestoredb-1.15.6.dist-info/LICENSE,sha256=Mlq78idURT-9G026aMYswwwnnrLcgzTLuXeAs5hjDLM,11341
178
+ singlestoredb-1.15.6.dist-info/METADATA,sha256=xWAPXruH9ozsMzYLO16nwkAWv7ChjDACt1YUImosX5A,5786
179
+ singlestoredb-1.15.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
180
+ singlestoredb-1.15.6.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
181
+ singlestoredb-1.15.6.dist-info/top_level.txt,sha256=DfFGz7bM4XrshloiCeTABgylT3BUnS8T5pJam3ewT6Q,19
182
+ singlestoredb-1.15.6.dist-info/RECORD,,