nucliadb-utils 5.0.1.post1154__py3-none-any.whl → 5.0.1.post1161__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.
- nucliadb_utils/aiopynecone/client.py +13 -0
- nucliadb_utils/aiopynecone/models.py +14 -0
- {nucliadb_utils-5.0.1.post1154.dist-info → nucliadb_utils-5.0.1.post1161.dist-info}/METADATA +3 -3
- {nucliadb_utils-5.0.1.post1154.dist-info → nucliadb_utils-5.0.1.post1161.dist-info}/RECORD +7 -7
- {nucliadb_utils-5.0.1.post1154.dist-info → nucliadb_utils-5.0.1.post1161.dist-info}/WHEEL +0 -0
- {nucliadb_utils-5.0.1.post1154.dist-info → nucliadb_utils-5.0.1.post1161.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-5.0.1.post1154.dist-info → nucliadb_utils-5.0.1.post1161.dist-info}/zip-safe +0 -0
@@ -38,6 +38,7 @@ from nucliadb_utils.aiopynecone.exceptions import (
|
|
38
38
|
from nucliadb_utils.aiopynecone.models import (
|
39
39
|
CreateIndexRequest,
|
40
40
|
CreateIndexResponse,
|
41
|
+
IndexDescription,
|
41
42
|
IndexStats,
|
42
43
|
ListResponse,
|
43
44
|
QueryResponse,
|
@@ -159,6 +160,18 @@ class ControlPlane:
|
|
159
160
|
return
|
160
161
|
raise_for_status("delete_index", response)
|
161
162
|
|
163
|
+
@pinecone_observer.wrap({"type": "describe_index"})
|
164
|
+
async def describe_index(self, name: str) -> IndexDescription:
|
165
|
+
"""
|
166
|
+
Describe an index in Pinecone.
|
167
|
+
Params:
|
168
|
+
- `name`: The name of the index to describe.
|
169
|
+
"""
|
170
|
+
headers = {"Api-Key": self.api_key}
|
171
|
+
response = await self.http_session.get(f"/indexes/{name}", headers=headers)
|
172
|
+
raise_for_status("describe_index", response)
|
173
|
+
return IndexDescription.model_validate(response.json())
|
174
|
+
|
162
175
|
|
163
176
|
class DataPlane:
|
164
177
|
"""
|
@@ -123,3 +123,17 @@ class IndexStats(BaseModel):
|
|
123
123
|
dimension: int
|
124
124
|
namespaces: dict[str, IndexNamespaceStats] = {}
|
125
125
|
totalVectorCount: int
|
126
|
+
|
127
|
+
|
128
|
+
class IndexStatus(BaseModel):
|
129
|
+
ready: bool
|
130
|
+
state: str
|
131
|
+
|
132
|
+
|
133
|
+
class IndexDescription(BaseModel):
|
134
|
+
dimension: int
|
135
|
+
host: str
|
136
|
+
metric: str
|
137
|
+
name: str
|
138
|
+
spec: dict[str, Any]
|
139
|
+
status: IndexStatus
|
{nucliadb_utils-5.0.1.post1154.dist-info → nucliadb_utils-5.0.1.post1161.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 5.0.1.
|
3
|
+
Version: 5.0.1.post1161
|
4
4
|
Home-page: https://nuclia.com
|
5
5
|
License: BSD
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
@@ -24,8 +24,8 @@ Requires-Dist: PyNaCl
|
|
24
24
|
Requires-Dist: pyjwt>=2.4.0
|
25
25
|
Requires-Dist: memorylru>=1.1.2
|
26
26
|
Requires-Dist: mrflagly>=0.2.9
|
27
|
-
Requires-Dist: nucliadb-protos>=5.0.1.
|
28
|
-
Requires-Dist: nucliadb-telemetry>=5.0.1.
|
27
|
+
Requires-Dist: nucliadb-protos>=5.0.1.post1161
|
28
|
+
Requires-Dist: nucliadb-telemetry>=5.0.1.post1161
|
29
29
|
Provides-Extra: cache
|
30
30
|
Requires-Dist: redis>=4.3.4; extra == "cache"
|
31
31
|
Requires-Dist: orjson>=3.6.7; extra == "cache"
|
@@ -18,9 +18,9 @@ nucliadb_utils/store.py,sha256=kQ35HemE0v4_Qg6xVqNIJi8vSFAYQtwI3rDtMsNy62Y,890
|
|
18
18
|
nucliadb_utils/transaction.py,sha256=mwcI3aIHAvU5KOGqd_Uz_d1XQzXhk_-NWY8NqU1lfb0,7307
|
19
19
|
nucliadb_utils/utilities.py,sha256=idajCm_4Sojh7b3HTkP0fTfG2Mb6PIB9xtMmcfB7Nl0,15758
|
20
20
|
nucliadb_utils/aiopynecone/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
21
|
-
nucliadb_utils/aiopynecone/client.py,sha256=
|
21
|
+
nucliadb_utils/aiopynecone/client.py,sha256=MPyHnDXwhukJr7U3CJh7BpsekfSuOkyM4g5b9LLtzc8,22941
|
22
22
|
nucliadb_utils/aiopynecone/exceptions.py,sha256=fUErx3ceKQK1MUbOnYcZhIzpNe8UVAptZE9JIRDLXDE,4000
|
23
|
-
nucliadb_utils/aiopynecone/models.py,sha256=
|
23
|
+
nucliadb_utils/aiopynecone/models.py,sha256=XkNIZx4bxdbVo9zYVn8IRp70q4DWUMWN79ybGloFj2Q,3492
|
24
24
|
nucliadb_utils/audit/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
25
25
|
nucliadb_utils/audit/audit.py,sha256=0RoJxK_SesKD9cbNMqCtpT4ylznFxEcHsetyh1eRlEk,3023
|
26
26
|
nucliadb_utils/audit/basic.py,sha256=g-790vVvua6OrUkHGBjvgz2TaZt21dWoZw3XiYptt_E,3634
|
@@ -64,8 +64,8 @@ nucliadb_utils/tests/indexing.py,sha256=YW2QhkhO9Q_8A4kKWJaWSvXvyQ_AiAwY1VylcfVQ
|
|
64
64
|
nucliadb_utils/tests/local.py,sha256=7nuP8EFUAiA8ZH50R1iPV9EUXBySQxOanVm3Zht_e0g,1835
|
65
65
|
nucliadb_utils/tests/nats.py,sha256=xqpww4jZjTKY9oPGlJdDJG67L3FIBQsa9qDHxILR8r8,7687
|
66
66
|
nucliadb_utils/tests/s3.py,sha256=IdMxK_cNdSHLvO1u8BwsKFzD87Hk1MVPDZ57zx6h-rA,3656
|
67
|
-
nucliadb_utils-5.0.1.
|
68
|
-
nucliadb_utils-5.0.1.
|
69
|
-
nucliadb_utils-5.0.1.
|
70
|
-
nucliadb_utils-5.0.1.
|
71
|
-
nucliadb_utils-5.0.1.
|
67
|
+
nucliadb_utils-5.0.1.post1161.dist-info/METADATA,sha256=mXTMDPpBvfKcHYY4DAKKsiPsP0slBW3JuwSulGzGDww,2071
|
68
|
+
nucliadb_utils-5.0.1.post1161.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
|
69
|
+
nucliadb_utils-5.0.1.post1161.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
70
|
+
nucliadb_utils-5.0.1.post1161.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
71
|
+
nucliadb_utils-5.0.1.post1161.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-5.0.1.post1154.dist-info → nucliadb_utils-5.0.1.post1161.dist-info}/top_level.txt
RENAMED
File without changes
|
{nucliadb_utils-5.0.1.post1154.dist-info → nucliadb_utils-5.0.1.post1161.dist-info}/zip-safe
RENAMED
File without changes
|