pyobvector 0.2.8__tar.gz → 0.2.9__tar.gz
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.
- {pyobvector-0.2.8 → pyobvector-0.2.9}/PKG-INFO +3 -3
- {pyobvector-0.2.8 → pyobvector-0.2.9}/README.md +1 -1
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/ob_vec_json_table_client.py +10 -9
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyproject.toml +2 -2
- {pyobvector-0.2.8 → pyobvector-0.2.9}/LICENSE +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/__init__.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/__init__.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/collection_schema.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/enum.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/exceptions.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/fts_index_param.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/index_param.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/milvus_like_client.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/ob_vec_client.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/partitions.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/client/schema_type.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/json_table/__init__.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/json_table/json_value_returning_func.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/json_table/oceanbase_dialect.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/json_table/virtual_data_type.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/__init__.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/dialect.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/full_text_index.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/geo_srid_point.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/gis_func.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/match_against_func.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/ob_table.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/reflection.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/replace_stmt.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/vec_dist_func.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/vector.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/schema/vector_index.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/util/__init__.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/util/ob_version.py +0 -0
- {pyobvector-0.2.8 → pyobvector-0.2.9}/pyobvector/util/vector.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pyobvector
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Summary: A python SDK for OceanBase Vector Store, based on SQLAlchemy, compatible with Milvus API.
|
|
5
5
|
Author: shanhaikang.shk
|
|
6
6
|
Author-email: shanhaikang.shk@oceanbase.com
|
|
@@ -15,7 +15,7 @@ Requires-Dist: aiomysql (>=0.2.0,<0.3.0)
|
|
|
15
15
|
Requires-Dist: numpy (>=1.17.0,<2.0.0)
|
|
16
16
|
Requires-Dist: pydantic (>=2.7.0,<3)
|
|
17
17
|
Requires-Dist: pymysql (>=1.1.1,<2.0.0)
|
|
18
|
-
Requires-Dist: sqlalchemy (>=1.4
|
|
18
|
+
Requires-Dist: sqlalchemy (>=1.4,<=3)
|
|
19
19
|
Requires-Dist: sqlglot (>=26.0.1,<27.0.0)
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
|
|
@@ -36,7 +36,7 @@ poetry install
|
|
|
36
36
|
- install with pip:
|
|
37
37
|
|
|
38
38
|
```shell
|
|
39
|
-
pip install pyobvector==0.2.
|
|
39
|
+
pip install pyobvector==0.2.9
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Build Doc
|
|
@@ -144,15 +144,16 @@ class ObVecJsonTableClient(ObVecClient):
|
|
|
144
144
|
if self.user_id is None:
|
|
145
145
|
return True
|
|
146
146
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
147
|
+
with self.session() as session:
|
|
148
|
+
with session.begin():
|
|
149
|
+
distinct_admin_ids = (
|
|
150
|
+
session.query(ObVecJsonTableClient.JsonTableDataTBL.admin_id)
|
|
151
|
+
.filter_by(user_id = self.user_id)
|
|
152
|
+
.distinct()
|
|
153
|
+
.all()
|
|
154
|
+
)
|
|
155
|
+
admin_ids = [admin_id[0] for admin_id in distinct_admin_ids]
|
|
156
|
+
return (len(admin_ids) == 0) or (len(admin_ids) == 1 and admin_ids[0] == self.admin_id)
|
|
156
157
|
|
|
157
158
|
def _reset(self):
|
|
158
159
|
# Only for test
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "pyobvector"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.9"
|
|
4
4
|
description = "A python SDK for OceanBase Vector Store, based on SQLAlchemy, compatible with Milvus API."
|
|
5
5
|
authors = ["shanhaikang.shk <shanhaikang.shk@oceanbase.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -8,7 +8,7 @@ readme = "README.md"
|
|
|
8
8
|
[tool.poetry.dependencies]
|
|
9
9
|
python = ">=3.9,<4.0"
|
|
10
10
|
numpy = ">=1.17.0,<2.0.0"
|
|
11
|
-
sqlalchemy = ">=1.4
|
|
11
|
+
sqlalchemy = ">=1.4,<=3"
|
|
12
12
|
pymysql = "^1.1.1"
|
|
13
13
|
aiomysql = "^0.2.0"
|
|
14
14
|
sqlglot = "^26.0.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|