lambdadb 0.2.2__py3-none-any.whl → 0.3.0__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.

Potentially problematic release.


This version of lambdadb might be problematic. Click here for more details.

@@ -2,4 +2,3 @@
2
2
 
3
3
  from .sdkhooks import *
4
4
  from .types import *
5
- from .registration import *
@@ -11,7 +11,6 @@ from .types import (
11
11
  AfterErrorHook,
12
12
  Hooks,
13
13
  )
14
- from .registration import init_hooks
15
14
  from typing import List, Optional, Tuple
16
15
  from lambdadb.sdkconfiguration import SDKConfiguration
17
16
 
@@ -22,7 +21,6 @@ class SDKHooks(Hooks):
22
21
  self.before_request_hooks: List[BeforeRequestHook] = []
23
22
  self.after_success_hooks: List[AfterSuccessHook] = []
24
23
  self.after_error_hooks: List[AfterErrorHook] = []
25
- init_hooks(self)
26
24
 
27
25
  def register_sdk_init_hook(self, hook: SDKInitHook) -> None:
28
26
  self.sdk_init_hooks.append(hook)
lambdadb/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "lambdadb"
6
- __version__: str = "0.2.2"
6
+ __version__: str = "0.3.0"
7
7
  __openapi_doc_version__: str = "1.1.0"
8
- __gen_version__: str = "2.632.2"
9
- __user_agent__: str = "speakeasy-sdk/python 0.2.2 2.632.2 1.1.0 lambdadb"
8
+ __gen_version__: str = "2.634.2"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.3.0 2.634.2 1.1.0 lambdadb"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
lambdadb/sdk.py CHANGED
@@ -14,15 +14,15 @@ from typing import Any, Callable, Dict, Optional, TYPE_CHECKING, Union, cast
14
14
  import weakref
15
15
 
16
16
  if TYPE_CHECKING:
17
- from lambdadb.projects import Projects
17
+ from lambdadb.collections import Collections
18
18
 
19
19
 
20
20
  class LambdaDB(BaseSDK):
21
21
  r"""LambdaDB API: LambdaDB Open API Spec"""
22
22
 
23
- projects: "Projects"
23
+ collections: "Collections"
24
24
  _sub_sdk_map = {
25
- "projects": ("lambdadb.projects", "Projects"),
25
+ "collections": ("lambdadb.collections", "Collections"),
26
26
  }
27
27
 
28
28
  def __init__(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lambdadb
3
- Version: 0.2.2
3
+ Version: 0.3.0
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9.2
@@ -135,7 +135,7 @@ with LambdaDB(
135
135
  project_api_key="<YOUR_PROJECT_API_KEY>",
136
136
  ) as lambda_db:
137
137
 
138
- res = lambda_db.projects.collections.list(project_name="<value>")
138
+ res = lambda_db.collections.list(project_name="<value>")
139
139
 
140
140
  # Handle response
141
141
  print(res)
@@ -155,7 +155,7 @@ async def main():
155
155
  project_api_key="<YOUR_PROJECT_API_KEY>",
156
156
  ) as lambda_db:
157
157
 
158
- res = await lambda_db.projects.collections.list_async(project_name="<value>")
158
+ res = await lambda_db.collections.list_async(project_name="<value>")
159
159
 
160
160
  # Handle response
161
161
  print(res)
@@ -184,7 +184,7 @@ with LambdaDB(
184
184
  project_api_key="<YOUR_PROJECT_API_KEY>",
185
185
  ) as lambda_db:
186
186
 
187
- res = lambda_db.projects.collections.list(project_name="<value>")
187
+ res = lambda_db.collections.list(project_name="<value>")
188
188
 
189
189
  # Handle response
190
190
  print(res)
@@ -198,11 +198,7 @@ with LambdaDB(
198
198
  <details open>
199
199
  <summary>Available methods</summary>
200
200
 
201
-
202
- ### [projects](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/projects/README.md)
203
-
204
-
205
- #### [projects.collections](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md)
201
+ ### [collections](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md)
206
202
 
207
203
  * [list](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#list) - List all collections in an existing project.
208
204
  * [create](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#create) - Create an collection.
@@ -211,7 +207,7 @@ with LambdaDB(
211
207
  * [update](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#update) - Configure an collection.
212
208
  * [query](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#query) - Search an collection with a query and return the most similar documents.
213
209
 
214
- #### [projects.collections.docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md)
210
+ #### [collections.docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md)
215
211
 
216
212
  * [upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#upsert) - Upsert documents into an collection. Note that the maximum supported payload size is 6MB.
217
213
  * [get_bulk_upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#get_bulk_upsert) - Request required info to upload documents.
@@ -219,6 +215,7 @@ with LambdaDB(
219
215
  * [delete](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#delete) - Delete documents by document IDs or query filter from an collection.
220
216
  * [fetch](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#fetch) - Lookup and return documents by document IDs from an collection.
221
217
 
218
+
222
219
  </details>
223
220
  <!-- End Available Resources and Operations [operations] -->
224
221
 
@@ -237,7 +234,7 @@ with LambdaDB(
237
234
  project_api_key="<YOUR_PROJECT_API_KEY>",
238
235
  ) as lambda_db:
239
236
 
240
- res = lambda_db.projects.collections.list(project_name="<value>",
237
+ res = lambda_db.collections.list(project_name="<value>",
241
238
  RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
242
239
 
243
240
  # Handle response
@@ -256,7 +253,7 @@ with LambdaDB(
256
253
  project_api_key="<YOUR_PROJECT_API_KEY>",
257
254
  ) as lambda_db:
258
255
 
259
- res = lambda_db.projects.collections.list(project_name="<value>")
256
+ res = lambda_db.collections.list(project_name="<value>")
260
257
 
261
258
  # Handle response
262
259
  print(res)
@@ -300,7 +297,7 @@ with LambdaDB(
300
297
  res = None
301
298
  try:
302
299
 
303
- res = lambda_db.projects.collections.list(project_name="<value>")
300
+ res = lambda_db.collections.list(project_name="<value>")
304
301
 
305
302
  # Handle response
306
303
  print(res)
@@ -338,7 +335,7 @@ with LambdaDB(
338
335
  project_api_key="<YOUR_PROJECT_API_KEY>",
339
336
  ) as lambda_db:
340
337
 
341
- res = lambda_db.projects.collections.list(project_name="<value>")
338
+ res = lambda_db.collections.list(project_name="<value>")
342
339
 
343
340
  # Handle response
344
341
  print(res)
@@ -1,9 +1,9 @@
1
1
  lambdadb/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,401
2
- lambdadb/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,146
2
+ lambdadb/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,118
3
3
  lambdadb/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
4
- lambdadb/_hooks/sdkhooks.py,sha256=mQSdQD3xgGGt-Cq94M1Lb1DSONJG4hNowN_rX_0Xask,2525
4
+ lambdadb/_hooks/sdkhooks.py,sha256=KGhPvIuUjurDBQOT6t-aWgiu1YDRXpn-OMz6_PkUdFk,2463
5
5
  lambdadb/_hooks/types.py,sha256=09dUW5q4HN9aVFAhskDLQqjxLPBfDD97uuucmdcBa6Q,2987
6
- lambdadb/_version.py,sha256=5EaaD8p26qJZ3-fFR_6qylyJC7P04GrXmCYl6sv8sjA,458
6
+ lambdadb/_version.py,sha256=Qod4WO9QVi_ERCk7yMG1nBjFLUCMF78qAucG9SoK6to,458
7
7
  lambdadb/basesdk.py,sha256=Uo8ZEdXVHmS_j1F9on47XeJD6sj9plIrna_6Oo_1I-I,11853
8
8
  lambdadb/collections.py,sha256=ridtbk8Ft0O1lIcpX7-_-5zDV8B0bOcttoxlv5eMeZ0,69015
9
9
  lambdadb/docs.py,sha256=jtrogN__GPuavf2bySAjklPLvtm0JMDezkY2qSlc83k,57368
@@ -32,9 +32,8 @@ lambdadb/models/security.py,sha256=nP-VTWFY6O-UPNPsWcsg38JcXr2zSy_m7qieDix6SxA,6
32
32
  lambdadb/models/status.py,sha256=pl66KcDT9ao6yLXXXOBqerh_StjpNiJb34Yf7VoijEI,250
33
33
  lambdadb/models/updatecollectionop.py,sha256=AH-xDQYtywu6rn5clKKXIuamXk3iYdwSfN5kCi5Ygtk,1470
34
34
  lambdadb/models/upsertdocsop.py,sha256=6oMppMfQtgyVoUrNZ6S_qWFMZmkmPBqQumGWzN78nNk,1684
35
- lambdadb/projects.py,sha256=C3NlfWplO4rsiejfCOzdSghCI3HqayA-H6gfsEeab3c,516
36
35
  lambdadb/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
37
- lambdadb/sdk.py,sha256=7_6aZ5thoMJJbtQDI8h1-kgVl7qRzJsxF4FjFi311RA,6076
36
+ lambdadb/sdk.py,sha256=r_MR7eLbat4LunLaRLw3GdkxXubZ6hEn0kegigYJ3vk,6097
38
37
  lambdadb/sdkconfiguration.py,sha256=-sHtaoBluBcNOYRTKxLMnovJazRm3ZWV9VOYCSS0UNY,1589
39
38
  lambdadb/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
40
39
  lambdadb/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
@@ -54,7 +53,7 @@ lambdadb/utils/security.py,sha256=Dq3M6Ee_x_uWRPZ7vvM4XQNxjCMSlphrRn6qVs1pljU,60
54
53
  lambdadb/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
55
54
  lambdadb/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
56
55
  lambdadb/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
57
- lambdadb-0.2.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
58
- lambdadb-0.2.2.dist-info/METADATA,sha256=Kh6hdhMO1MYvsSFRprXp0RcfJo0SZVaJRyRU3VLhB9w,18682
59
- lambdadb-0.2.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
60
- lambdadb-0.2.2.dist-info/RECORD,,
56
+ lambdadb-0.3.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
57
+ lambdadb-0.3.0.dist-info/METADATA,sha256=V_VjxhVv8txjdqGbk0QqeP2xBHFBd-aq_r_sjM031Mo,18490
58
+ lambdadb-0.3.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
59
+ lambdadb-0.3.0.dist-info/RECORD,,
lambdadb/projects.py DELETED
@@ -1,17 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from .basesdk import BaseSDK
4
- from .sdkconfiguration import SDKConfiguration
5
- from lambdadb.collections import Collections
6
-
7
-
8
- class Projects(BaseSDK):
9
- collections: Collections
10
-
11
- def __init__(self, sdk_config: SDKConfiguration) -> None:
12
- BaseSDK.__init__(self, sdk_config)
13
- self.sdk_configuration = sdk_config
14
- self._init_sdks()
15
-
16
- def _init_sdks(self):
17
- self.collections = Collections(self.sdk_configuration)