singlestoredb 1.15.5__cp38-abi3-win_amd64.whl → 1.15.6__cp38-abi3-win_amd64.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.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,5 +1,5 @@
1
- _singlestoredb_accel.pyd,sha256=SCniZYS3jMFOz8wxrjfOghFb2MsEcHSQ94l7Ofw64_0,63488
2
- singlestoredb/__init__.py,sha256=x67d-TOKMVTj3x5cKh8AQ9eNDWM-SroF0SsCs4XHOHM,2347
1
+ _singlestoredb_accel.pyd,sha256=e736ankVmiZDRPiM5iv1GxqfBbOVri5D1d0FWpZT1xg,63488
2
+ singlestoredb/__init__.py,sha256=A_4RNaBLNmhnDGqQqUsibM95HmI7okgsntzd8CIRiNI,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
@@ -48,7 +48,7 @@ singlestoredb/functions/signature.py,sha256=1aSFezUgWSRsGcrBjOVVZyZgw0q356y7IWgM
48
48
  singlestoredb/functions/utils.py,sha256=lZPxdYfHxrSfxGWCoF0YZyakVy2iYlozJ1lPSaPKRlo,11190
49
49
  singlestoredb/functions/ext/__init__.py,sha256=5ppI8IZN_zOwoJFdu_Oq9ipxtyHw9n6OMVAa_s9T_yY,24
50
50
  singlestoredb/functions/ext/arrow.py,sha256=mQhwaMpvCH_dP92WIhP_j-stu272n4UAHsFUOBTgnq0,9436
51
- singlestoredb/functions/ext/asgi.py,sha256=iyM5t8OCmd9nBtB66nmTjYqwXQhcUxvvMfsnPwU4q8k,74507
51
+ singlestoredb/functions/ext/asgi.py,sha256=JzhuCMHLPTT8ILPt7hmwUndrtvrbPrVNVSSHrj0qg9k,74401
52
52
  singlestoredb/functions/ext/json.py,sha256=j9133xOpyuSqb8smBmi_bPvv6OYCbNfpbLbEicyGqmQ,10522
53
53
  singlestoredb/functions/ext/mmap.py,sha256=0BN9OyEONZ174qdZWe2m3Xykt3-QcxyLYBt2iCG772Q,14123
54
54
  singlestoredb/functions/ext/rowdat_1.py,sha256=UNMMUA8mb6iIRfJV2FsdA20Sw6s-LEdHQ_tC4K4g70Q,21836
@@ -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.5.dist-info/LICENSE,sha256=Bojenzui8aPNjlF3w4ojguDP7sTf8vFV_9Gc2UAG1sg,11542
179
- singlestoredb-1.15.5.dist-info/METADATA,sha256=wlqAZwBHy_FHYlJX952WIH_z_LtaNvpy_v6KFCOHSsU,5949
180
- singlestoredb-1.15.5.dist-info/WHEEL,sha256=UyMHzmWA0xVqVPKfTiLs2eN3OWWZUl-kQemNbpIqlKo,100
181
- singlestoredb-1.15.5.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
182
- singlestoredb-1.15.5.dist-info/top_level.txt,sha256=lA65Vf4qAMfg_s1oG3LEO90h4t1Z-SPDbRqkevI3bSY,40
183
- singlestoredb-1.15.5.dist-info/RECORD,,
178
+ singlestoredb-1.15.6.dist-info/LICENSE,sha256=Bojenzui8aPNjlF3w4ojguDP7sTf8vFV_9Gc2UAG1sg,11542
179
+ singlestoredb-1.15.6.dist-info/METADATA,sha256=ICEo4jJSocU5Nr1RHn2NF2XGosmGHHPJhFPwX8BUKwQ,5949
180
+ singlestoredb-1.15.6.dist-info/WHEEL,sha256=UyMHzmWA0xVqVPKfTiLs2eN3OWWZUl-kQemNbpIqlKo,100
181
+ singlestoredb-1.15.6.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
182
+ singlestoredb-1.15.6.dist-info/top_level.txt,sha256=lA65Vf4qAMfg_s1oG3LEO90h4t1Z-SPDbRqkevI3bSY,40
183
+ singlestoredb-1.15.6.dist-info/RECORD,,