singlestoredb 1.3.0__cp38-abi3-win32.whl → 1.4.0__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 +0 -0
- singlestoredb/__init__.py +1 -1
- singlestoredb/ai/__init__.py +1 -0
- singlestoredb/ai/embeddings.py +24 -0
- singlestoredb/functions/ext/asgi.py +1 -2
- singlestoredb/management/organization.py +2 -2
- singlestoredb/management/workspace.py +1 -1
- singlestoredb/mysql/connection.py +1 -0
- singlestoredb/notebook/_objects.py +3 -2
- {singlestoredb-1.3.0.dist-info → singlestoredb-1.4.0.dist-info}/METADATA +1 -1
- {singlestoredb-1.3.0.dist-info → singlestoredb-1.4.0.dist-info}/RECORD +15 -13
- {singlestoredb-1.3.0.dist-info → singlestoredb-1.4.0.dist-info}/LICENSE +0 -0
- {singlestoredb-1.3.0.dist-info → singlestoredb-1.4.0.dist-info}/WHEEL +0 -0
- {singlestoredb-1.3.0.dist-info → singlestoredb-1.4.0.dist-info}/entry_points.txt +0 -0
- {singlestoredb-1.3.0.dist-info → singlestoredb-1.4.0.dist-info}/top_level.txt +0 -0
_singlestoredb_accel.pyd
CHANGED
|
Binary file
|
singlestoredb/__init__.py
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .embeddings import SingleStoreEmbeddings # noqa: F401
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import os as _os
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
try:
|
|
5
|
+
from langchain_community.embeddings.ollama import OllamaEmbeddings
|
|
6
|
+
except ImportError:
|
|
7
|
+
raise ImportError(
|
|
8
|
+
'Could not import langchain_community python package. '
|
|
9
|
+
'Please install it with `pip install langchain_community`.',
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class SingleStoreEmbeddings(OllamaEmbeddings):
|
|
14
|
+
|
|
15
|
+
def __init__(self, **kwargs: Any):
|
|
16
|
+
url = _os.getenv('SINGLESTORE_AI_EXPERIMENTAL_URL')
|
|
17
|
+
if not url:
|
|
18
|
+
raise ValueError(
|
|
19
|
+
"Environment variable 'SINGLESTORE_AI_EXPERIMENTAL_URL' must be set",
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
base_url = url.strip('/v1')
|
|
23
|
+
kwargs = {'model': 'nomic-embed-text', **kwargs}
|
|
24
|
+
super().__init__(base_url=base_url, **kwargs)
|
|
@@ -562,7 +562,6 @@ class Application(object):
|
|
|
562
562
|
elif method == 'GET' and path == self.show_create_function_path:
|
|
563
563
|
host = headers.get(b'host', b'localhost:80')
|
|
564
564
|
reflected_url = f'{scope["scheme"]}://{host.decode("utf-8")}/invoke'
|
|
565
|
-
data_format = 'json' if b'json' in content_type else 'rowdat_1'
|
|
566
565
|
|
|
567
566
|
syntax = []
|
|
568
567
|
for key, (endpoint, endpoint_info) in self.endpoints.items():
|
|
@@ -571,7 +570,7 @@ class Application(object):
|
|
|
571
570
|
signature_to_sql(
|
|
572
571
|
endpoint_info['signature'],
|
|
573
572
|
url=self.url or reflected_url,
|
|
574
|
-
data_format=data_format,
|
|
573
|
+
data_format=self.data_format,
|
|
575
574
|
),
|
|
576
575
|
)
|
|
577
576
|
body = '\n'.join(syntax).encode('utf-8')
|
|
@@ -35,11 +35,11 @@ class Secret(object):
|
|
|
35
35
|
self,
|
|
36
36
|
id: str,
|
|
37
37
|
name: str,
|
|
38
|
-
value: str,
|
|
39
38
|
created_by: str,
|
|
40
39
|
created_at: Union[str, datetime.datetime],
|
|
41
40
|
last_updated_by: str,
|
|
42
41
|
last_updated_at: Union[str, datetime.datetime],
|
|
42
|
+
value: Optional[str] = None,
|
|
43
43
|
deleted_by: Optional[str] = None,
|
|
44
44
|
deleted_at: Optional[Union[str, datetime.datetime]] = None,
|
|
45
45
|
):
|
|
@@ -88,11 +88,11 @@ class Secret(object):
|
|
|
88
88
|
out = cls(
|
|
89
89
|
id=obj['secretID'],
|
|
90
90
|
name=obj['name'],
|
|
91
|
-
value=obj['value'],
|
|
92
91
|
created_by=obj['createdBy'],
|
|
93
92
|
created_at=obj['createdAt'],
|
|
94
93
|
last_updated_by=obj['lastUpdatedBy'],
|
|
95
94
|
last_updated_at=obj['lastUpdatedAt'],
|
|
95
|
+
value=obj.get('value'),
|
|
96
96
|
deleted_by=obj.get('deletedBy'),
|
|
97
97
|
deleted_at=obj.get('deletedAt'),
|
|
98
98
|
)
|
|
@@ -39,7 +39,7 @@ def get_organization() -> Organization:
|
|
|
39
39
|
return manage_workspaces().organization
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
def get_secret(name: str) -> str:
|
|
42
|
+
def get_secret(name: str) -> Optional[str]:
|
|
43
43
|
"""Get a secret from the organization."""
|
|
44
44
|
return get_organization().get_secret(name).value
|
|
45
45
|
|
|
@@ -1858,6 +1858,7 @@ class MySQLResultSV(MySQLResult):
|
|
|
1858
1858
|
parse_json=connection.parse_json,
|
|
1859
1859
|
invalid_values=connection.invalid_values,
|
|
1860
1860
|
unbuffered=unbuffered,
|
|
1861
|
+
encoding_errors=connection.encoding_errors,
|
|
1861
1862
|
).items() if v is not UNSET
|
|
1862
1863
|
}
|
|
1863
1864
|
self._read_rowdata_packet = functools.partial(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
2
|
import functools
|
|
3
3
|
from typing import Any
|
|
4
|
+
from typing import Optional
|
|
4
5
|
|
|
5
6
|
from ..management import workspace as _ws
|
|
6
7
|
|
|
@@ -8,12 +9,12 @@ from ..management import workspace as _ws
|
|
|
8
9
|
class Secrets(object):
|
|
9
10
|
"""Wrapper for accessing secrets as object attributes."""
|
|
10
11
|
|
|
11
|
-
def __getattr__(self, name: str) -> str:
|
|
12
|
+
def __getattr__(self, name: str) -> Optional[str]:
|
|
12
13
|
if name.startswith('_ipython') or name.startswith('_repr_'):
|
|
13
14
|
raise AttributeError(name)
|
|
14
15
|
return _ws.get_secret(name)
|
|
15
16
|
|
|
16
|
-
def __getitem__(self, name: str) -> str:
|
|
17
|
+
def __getitem__(self, name: str) -> Optional[str]:
|
|
17
18
|
return _ws.get_secret(name)
|
|
18
19
|
|
|
19
20
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
_singlestoredb_accel.pyd,sha256=
|
|
2
|
-
singlestoredb/__init__.py,sha256=
|
|
1
|
+
_singlestoredb_accel.pyd,sha256=VnJnXrAgIDumn_ZrEl_iM0AMDpGWQ-3L5jacbx5XkPk,59904
|
|
2
|
+
singlestoredb/__init__.py,sha256=6wkuLfbXZ93lqjFD-ZImZEimU_N0m2gvZROBju_aYuk,1697
|
|
3
3
|
singlestoredb/auth.py,sha256=RmYiH0Wlc2RXc4pTlRMysxtBI445ggCIwojWKC_eDLE,7844
|
|
4
4
|
singlestoredb/config.py,sha256=9pVmVEZ23NfJ3pokdBDA0cX3bwUz6SbuT4AZWAcIPR4,12235
|
|
5
5
|
singlestoredb/connection.py,sha256=F8lTA62nwnQ_r9-WYANnbIBqacdAuX0wXGaET9PNkXA,46410
|
|
@@ -7,6 +7,8 @@ singlestoredb/converters.py,sha256=7_Of1f3Ow-JUoY1pHFlMPYxvt8llzdk-7X8qk5z2xJM,2
|
|
|
7
7
|
singlestoredb/exceptions.py,sha256=WCCJrNSsU-hD-621Jpd6bwmvGftQ7byXkk-XKXlaxpg,3354
|
|
8
8
|
singlestoredb/pytest.py,sha256=TH364xRCN7_QaN0oRQDHixrEcDx_ZBgu3bmY0tvKrYU,9357
|
|
9
9
|
singlestoredb/types.py,sha256=Lv0BEQl6aSZBiAe0OSI07FEJhcHZ9HX45iT9NU_mxHQ,10334
|
|
10
|
+
singlestoredb/ai/__init__.py,sha256=nT048t90xqjaNhz7KJ10KfSVW4RcZRoujyC6po6Nmb8,61
|
|
11
|
+
singlestoredb/ai/embeddings.py,sha256=KVvQY3viyYWXDBobFpj0xqiGRijt36zcHHlPNAfFAxA,770
|
|
10
12
|
singlestoredb/alchemy/__init__.py,sha256=bUmCl1xUn2v36RMbXLIrvgKzZSqx71mp1ReUw9JeVA8,2613
|
|
11
13
|
singlestoredb/functions/__init__.py,sha256=EVxqWOCcXiIX4Yj7rljAYBBoVbTvm2KSuKSkMBDnEeU,42
|
|
12
14
|
singlestoredb/functions/decorator.py,sha256=M103c1JAZfyGFQAU4uJ_J8XGGH3InhcfrNUCoEORNFQ,5335
|
|
@@ -14,7 +16,7 @@ singlestoredb/functions/dtypes.py,sha256=5IwMSaSzxtSowxXrm5hZXW1lpNm6QILxiU4mAUE
|
|
|
14
16
|
singlestoredb/functions/signature.py,sha256=glxf8wVhwpsLOu9s9UEXPaXzBWvl_XN683_dpFyiQ6s,19539
|
|
15
17
|
singlestoredb/functions/ext/__init__.py,sha256=5ppI8IZN_zOwoJFdu_Oq9ipxtyHw9n6OMVAa_s9T_yY,24
|
|
16
18
|
singlestoredb/functions/ext/arrow.py,sha256=mQhwaMpvCH_dP92WIhP_j-stu272n4UAHsFUOBTgnq0,9436
|
|
17
|
-
singlestoredb/functions/ext/asgi.py,sha256=
|
|
19
|
+
singlestoredb/functions/ext/asgi.py,sha256=W4z-XyMvdNrEnEYicrP1hfLldI4H9FIEFIVvf4eXSA4,41195
|
|
18
20
|
singlestoredb/functions/ext/json.py,sha256=CROdj37cuJhAZ-CM93EI-SoLb4kxFcMGudsJ5QGyCoI,10831
|
|
19
21
|
singlestoredb/functions/ext/mmap.py,sha256=zo6eweOFCZp0KIzAeL1vvuSjqvQhE8ybVhHbU0ZICt4,14124
|
|
20
22
|
singlestoredb/functions/ext/rowdat_1.py,sha256=KYj_y5JWm3_B2-QC47HK-CNOrzujBqGUwLJfE49jwRg,23050
|
|
@@ -34,14 +36,14 @@ singlestoredb/management/__init__.py,sha256=CjK47iU4WXJoq24EcXqBPCat4efAY20FR4ql
|
|
|
34
36
|
singlestoredb/management/billing_usage.py,sha256=0UHFSPCrN0nyeGFFM-HXS3NP8pYmYo2BCCahDEPXvzg,3883
|
|
35
37
|
singlestoredb/management/cluster.py,sha256=0GhpuSt_rcFz5f1hzcRHK911KWFewljlV4GFtckB8uM,14822
|
|
36
38
|
singlestoredb/management/manager.py,sha256=QpWgu9W9n_HqxDJ4lAAFN7n1fhLB_BYkPy0_9uhGJvY,9107
|
|
37
|
-
singlestoredb/management/organization.py,sha256=
|
|
39
|
+
singlestoredb/management/organization.py,sha256=MjZ_tIoJGZwF95yfQ_Adz8LHYwkrKyj3p5JHDk6rWHE,5187
|
|
38
40
|
singlestoredb/management/region.py,sha256=oGoLLS88dE1GmY7GCc0BV7X3f7bWwKQyeXOVBFmK9Pk,1678
|
|
39
41
|
singlestoredb/management/utils.py,sha256=wVWeU7VKMqFs1SHSTXOHRPf-Egm4da6_cHraTfcLfaE,9511
|
|
40
|
-
singlestoredb/management/workspace.py,sha256=
|
|
42
|
+
singlestoredb/management/workspace.py,sha256=5YFYXk-jhEHjIeapX6zIXPsU0vUNo6P7S4l8eL2DOiA,63578
|
|
41
43
|
singlestoredb/mysql/__init__.py,sha256=CbpwzNUJPAmKPpIobC0-ugBta_RgHCMq7X7N75QLReY,4669
|
|
42
44
|
singlestoredb/mysql/_auth.py,sha256=YaqqyvAHmeraBv3BM207rNveUVPM-mPnW20ts_ynVWg,8341
|
|
43
45
|
singlestoredb/mysql/charset.py,sha256=mnCdMpvdub1S2mm2PSk2j5JddgsWRjsVLtGx-y9TskE,10724
|
|
44
|
-
singlestoredb/mysql/connection.py,sha256=
|
|
46
|
+
singlestoredb/mysql/connection.py,sha256=kM1pkAJht5VJCIqg7Pe_cmJVARPQtKhRsEE-VuDRT2A,72321
|
|
45
47
|
singlestoredb/mysql/converters.py,sha256=vebFFm6IrC0WgY-5Eh-esaPizY5cq3vDOUlEKGaYM-U,7771
|
|
46
48
|
singlestoredb/mysql/cursors.py,sha256=pkrP-1t8IhBJRnYpdM7Rdm-332nOq1RYTDJ_yg_q5HI,27682
|
|
47
49
|
singlestoredb/mysql/err.py,sha256=aDbmfq08gWVmfgIea735wSeiFdvYbB5wusgd3qTVq1s,2480
|
|
@@ -80,7 +82,7 @@ singlestoredb/mysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_capabilities.py,s
|
|
|
80
82
|
singlestoredb/mysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py,sha256=cN7ftSQIeoMh3npna9UUeNcBdzl6VYXU3Vo9jR-U-hY,8246
|
|
81
83
|
singlestoredb/mysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_nonstandard.py,sha256=K4EnQCWI_4ShmCv6xHSBDo0B2HVbJvGGYHWygp2bBBk,2920
|
|
82
84
|
singlestoredb/notebook/__init__.py,sha256=AgSb4vTrco9yHS3oy0OQP-mA3iZgD0Famjzd732ters,506
|
|
83
|
-
singlestoredb/notebook/_objects.py,sha256=
|
|
85
|
+
singlestoredb/notebook/_objects.py,sha256=rDfHGLLwrnuhVMOyNojzrGamykyfOQxZfH2EnFd8vEw,8256
|
|
84
86
|
singlestoredb/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
85
87
|
singlestoredb/tests/empty.sql,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
88
|
singlestoredb/tests/local_infile.csv,sha256=0fYxcZcTvcwS2McF4sktFsipRY1G-ClGmCRR1eCqdEQ,45
|
|
@@ -111,9 +113,9 @@ singlestoredb/utils/dtypes.py,sha256=_P2fTX2Fgv9Bcl-2L6KivhWgLzyu91sDamxVnmG92Mw
|
|
|
111
113
|
singlestoredb/utils/mogrify.py,sha256=gCcn99-vgsGVjTUV7RHJ6hH4vCNrsGB_Xo4z8kiSPDQ,4201
|
|
112
114
|
singlestoredb/utils/results.py,sha256=wR70LhCqlobniZf52r67zYLBOKjWHQm68NAskdRQND8,15862
|
|
113
115
|
singlestoredb/utils/xdict.py,sha256=-wi1lSPTnY99fhVMBhPKJ8cCsQhNG4GMUfkEBDKYgCw,13321
|
|
114
|
-
singlestoredb-1.
|
|
115
|
-
singlestoredb-1.
|
|
116
|
-
singlestoredb-1.
|
|
117
|
-
singlestoredb-1.
|
|
118
|
-
singlestoredb-1.
|
|
119
|
-
singlestoredb-1.
|
|
116
|
+
singlestoredb-1.4.0.dist-info/LICENSE,sha256=Bojenzui8aPNjlF3w4ojguDP7sTf8vFV_9Gc2UAG1sg,11542
|
|
117
|
+
singlestoredb-1.4.0.dist-info/METADATA,sha256=ww0dPYe2a5XnYjR66RB_KeVh-5wDECATjrtS_9NQ1U8,5710
|
|
118
|
+
singlestoredb-1.4.0.dist-info/WHEEL,sha256=c4k7z5HB0t-y0nBCv6KyJ6KCjn8SEGPddD0lhaPtU3E,96
|
|
119
|
+
singlestoredb-1.4.0.dist-info/entry_points.txt,sha256=bSLaTWB5zGjpVYPAaI46MkkDup0su-eb3uAhCNYuRV0,48
|
|
120
|
+
singlestoredb-1.4.0.dist-info/top_level.txt,sha256=SDtemIXf-Kp-_F2f_S6x0db33cHGOILdAEsIQZe2LZc,35
|
|
121
|
+
singlestoredb-1.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|