singlestoredb 1.15.5__cp38-abi3-macosx_10_9_universal2.whl → 1.15.6__cp38-abi3-macosx_10_9_universal2.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.

Binary file
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,16 +1,16 @@
1
- _singlestoredb_accel.abi3.so,sha256=x1zaDVImJ4CWAfQPrICls-q50fsaCFB1_bbelHM2Y-Q,207264
2
- singlestoredb-1.15.5.dist-info/RECORD,,
3
- singlestoredb-1.15.5.dist-info/LICENSE,sha256=Mlq78idURT-9G026aMYswwwnnrLcgzTLuXeAs5hjDLM,11341
4
- singlestoredb-1.15.5.dist-info/WHEEL,sha256=_VEguvlLpUd-c8RbFMA4yMIVNMBv2LhpxYLCEQ-Bogk,113
5
- singlestoredb-1.15.5.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
6
- singlestoredb-1.15.5.dist-info/top_level.txt,sha256=lA65Vf4qAMfg_s1oG3LEO90h4t1Z-SPDbRqkevI3bSY,40
7
- singlestoredb-1.15.5.dist-info/METADATA,sha256=deTmpWalhUYHaanjCuaVrQLIld_rfhdAPF6a1Fwa18A,5804
1
+ _singlestoredb_accel.abi3.so,sha256=Pi_4ETlBUAIYZ45FaaYZ5sQrD4EpkHkpPV7fZw-6GRM,207264
2
+ singlestoredb-1.15.6.dist-info/RECORD,,
3
+ singlestoredb-1.15.6.dist-info/LICENSE,sha256=Mlq78idURT-9G026aMYswwwnnrLcgzTLuXeAs5hjDLM,11341
4
+ singlestoredb-1.15.6.dist-info/WHEEL,sha256=_VEguvlLpUd-c8RbFMA4yMIVNMBv2LhpxYLCEQ-Bogk,113
5
+ singlestoredb-1.15.6.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
6
+ singlestoredb-1.15.6.dist-info/top_level.txt,sha256=lA65Vf4qAMfg_s1oG3LEO90h4t1Z-SPDbRqkevI3bSY,40
7
+ singlestoredb-1.15.6.dist-info/METADATA,sha256=wscNci6_IkAVSQB9jD0IlvalaM3PvQxkKiMUidnxt0s,5804
8
8
  sqlx/magic.py,sha256=JsS9_9aBFaOt91Torm1JPN0c8qB2QmYJmNSKtbSQIY0,3509
9
9
  sqlx/__init__.py,sha256=aBYiU8DZXCogvWu3yWafOz7bZS5WWwLZXj7oL0dXGyU,85
10
10
  singlestoredb/auth.py,sha256=u8D9tpKzrqa4ssaHjyZnGDX1q8XBpGtuoOkTkSv7B28,7599
11
11
  singlestoredb/config.py,sha256=aBdMrPEaNSH-QLi1AXoQaSJsZ9f6ZXoFPN-74Trr6sQ,13935
12
12
  singlestoredb/vectorstore.py,sha256=BZb8e7m02_XVHqOyu8tA94R6kHb3n-BC8F08JyJwDzY,8408
13
- singlestoredb/__init__.py,sha256=laZYv8Vwx1AbBnqnp8ESXHckpITWCEmLX7WlFArId-Y,2272
13
+ singlestoredb/__init__.py,sha256=p-cOjndCFiOpcf9fyhqPVRUJ-wf-2vLNqzIPBvR0KRg,2272
14
14
  singlestoredb/types.py,sha256=Qp_PWYjSYG6PRnmXAZZ7K2QehUqfoG4KSllI3O1stPE,10397
15
15
  singlestoredb/connection.py,sha256=ELk3-UpM6RaB993aIt08MydKiiDnejHQ1s8EFiacrAI,46055
16
16
  singlestoredb/pytest.py,sha256=OyF3BO9mgxenifYhOihnzGk8WzCJ_zN5_mxe8XyFPOc,9074
@@ -156,7 +156,7 @@ singlestoredb/functions/dtypes.py,sha256=DgJaNXouJ2t-qIqDiQlUYU9IhkXXUTigWeE_MAc
156
156
  singlestoredb/functions/utils.py,sha256=1L0Phgzq0XdWK3ecfOOydq4zV955yCwpDoAaCYRGldk,10769
157
157
  singlestoredb/functions/signature.py,sha256=h2vFVNP07d5a3gi7zMiM_sztDUNK_HlJWR-Rl3nMxPA,45545
158
158
  singlestoredb/functions/ext/timer.py,sha256=-PR__KbhwAMW4PXJ4fGri2FfrU0jRyz6e6yvmySmjaw,2706
159
- singlestoredb/functions/ext/asgi.py,sha256=HWbSuYpAOfq-iS7oKDdXCkz5OIaMOGnXYwrTIVzFqOM,72370
159
+ singlestoredb/functions/ext/asgi.py,sha256=C6UJXunHY-dISp4k4CH-poEt8dyzqIjLQpuj06_ttRA,72268
160
160
  singlestoredb/functions/ext/arrow.py,sha256=WB7n1ACslyd8nlbFzUvlbxn1BVuEjA9-BGBEqCWlSOo,9061
161
161
  singlestoredb/functions/ext/__init__.py,sha256=1oLL20yLB1GL9IbFiZD8OReDqiCpFr-yetIR6x1cNkI,23
162
162
  singlestoredb/functions/ext/utils.py,sha256=oU2NVmkjcS0QHLfdB8SBiRylVq-r0VzTy8nxGvAgjow,6938