pyobvector 0.2.6__py3-none-any.whl → 0.2.7__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.
@@ -20,6 +20,7 @@ from sqlalchemy.exc import NoSuchTableError
20
20
  from sqlalchemy.dialects import registry
21
21
  import sqlalchemy.sql.functions as func_mod
22
22
  import numpy as np
23
+ from urllib.parse import quote
23
24
  from .index_param import IndexParams, IndexParam
24
25
  from .fts_index_param import FtsIndexParam
25
26
  from ..schema import (
@@ -67,8 +68,8 @@ class ObVecClient:
67
68
  setattr(func_mod, "st_dwithin", st_dwithin)
68
69
  setattr(func_mod, "st_astext", st_astext)
69
70
 
70
- # Escape @ to avoid parsing errors in connection_str
71
- password = password.replace('@', '%40')
71
+ user = quote(user, safe="")
72
+ password = quote(password, safe="")
72
73
 
73
74
  connection_str = (
74
75
  f"mysql+oceanbase://{user}:{password}@{uri}/{db_name}?charset=utf8mb4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyobvector
3
- Version: 0.2.6
3
+ Version: 0.2.7
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
@@ -36,7 +36,7 @@ poetry install
36
36
  - install with pip:
37
37
 
38
38
  ```shell
39
- pip install pyobvector==0.2.6
39
+ pip install pyobvector==0.2.7
40
40
  ```
41
41
 
42
42
  ## Build Doc
@@ -6,7 +6,7 @@ pyobvector/client/exceptions.py,sha256=CAsTHR9juYleRjYIa4bqk_lw14h8daBvChKoU0o19
6
6
  pyobvector/client/fts_index_param.py,sha256=hMCjA3Aecnt0uQQT6UQGTIIqdPk1M4gX4-zREDQygLs,1139
7
7
  pyobvector/client/index_param.py,sha256=3gXi66Ey1PO9x5_61CrH7DmPb496kviBQI5NT7nfbGc,6309
8
8
  pyobvector/client/milvus_like_client.py,sha256=CpPo6mkGE8iNFpKGBFof3h7E1VTzy1DAPGlFM9F_s8g,26373
9
- pyobvector/client/ob_vec_client.py,sha256=HBpsqO957Ne6WMc5IeTtvEKHG-r8_uw3g54I3Ddp03g,29388
9
+ pyobvector/client/ob_vec_client.py,sha256=Yt2nG0w4268hg7DE0tqkGaytGsY-jqojX8hGTQjmsKg,29390
10
10
  pyobvector/client/ob_vec_json_table_client.py,sha256=vQQoRGv8Dl2ZCnOcd4aC2g1Vc_15zwsHYw9CgHkdTYs,37807
11
11
  pyobvector/client/partitions.py,sha256=Bxwr5yVNlXwZc7SXBC03NeqL9giy4Fe6S2qZdHD8xGw,15621
12
12
  pyobvector/client/schema_type.py,sha256=ICCSriOhk-P7Q1PhK0D0XQMTd3ZDFenCrJMXp6hRQdw,1579
@@ -29,7 +29,7 @@ pyobvector/schema/vector_index.py,sha256=aNtrEBUclc4s6QuqCZpu3Hj3OdjyhbWgtLiJzo6
29
29
  pyobvector/util/__init__.py,sha256=D9EgRDlcMSDhY3uI__vnCl45Or75dOXMWSval5P5fqs,251
30
30
  pyobvector/util/ob_version.py,sha256=ZIySam8q_MCiwctAiAHPB4GdAzGQiXEo1wVkc9IOTDU,1539
31
31
  pyobvector/util/vector.py,sha256=xyM-NuOyd78K7P3kinqyWvLIzEbf9c-4TKn_QVF7qgw,2265
32
- pyobvector-0.2.6.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
33
- pyobvector-0.2.6.dist-info/METADATA,sha256=t-wEddeh_y4cow-YTUGg3u-5gh1MuMaoPH_BfltwmJI,6661
34
- pyobvector-0.2.6.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
35
- pyobvector-0.2.6.dist-info/RECORD,,
32
+ pyobvector-0.2.7.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
33
+ pyobvector-0.2.7.dist-info/METADATA,sha256=fXmr0B-1B9Q-fqT4K6PAHiHakyqMBHv88lmySvv2t4U,6661
34
+ pyobvector-0.2.7.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
35
+ pyobvector-0.2.7.dist-info/RECORD,,