lambdadb 0.3.6__tar.gz → 0.5.1__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.

Potentially problematic release.


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

Files changed (65) hide show
  1. {lambdadb-0.3.6 → lambdadb-0.5.1}/PKG-INFO +36 -10
  2. {lambdadb-0.3.6 → lambdadb-0.5.1}/README-PYPI.md +35 -9
  3. {lambdadb-0.3.6 → lambdadb-0.5.1}/pyproject.toml +1 -1
  4. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/_version.py +2 -2
  5. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/collections.py +34 -90
  6. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/docs.py +14 -50
  7. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/__init__.py +0 -12
  8. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/bulkupsertdocsop.py +0 -9
  9. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/createcollectionop.py +2 -23
  10. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/deletecollectionop.py +0 -9
  11. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/deletedocsop.py +0 -9
  12. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/fetchdocsop.py +0 -9
  13. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/getbulkupsertdocsop.py +0 -9
  14. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/getcollectionop.py +0 -9
  15. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/listcollectionsop.py +1 -17
  16. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/querycollectionop.py +0 -9
  17. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/updatecollectionop.py +0 -9
  18. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/updatedocsop.py +0 -9
  19. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/upsertdocsop.py +0 -9
  20. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/sdk.py +9 -1
  21. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/sdkconfiguration.py +4 -3
  22. {lambdadb-0.3.6 → lambdadb-0.5.1}/LICENSE +0 -0
  23. {lambdadb-0.3.6 → lambdadb-0.5.1}/py.typed +0 -0
  24. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/__init__.py +0 -0
  25. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/_hooks/__init__.py +0 -0
  26. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/_hooks/registration.py +0 -0
  27. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/_hooks/sdkhooks.py +0 -0
  28. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/_hooks/types.py +0 -0
  29. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/basesdk.py +0 -0
  30. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/__init__.py +0 -0
  31. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/apierror.py +0 -0
  32. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/badrequest_error.py +0 -0
  33. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/internalservererror.py +0 -0
  34. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/lambdadberror.py +0 -0
  35. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/no_response_error.py +0 -0
  36. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/resourcealreadyexists_error.py +0 -0
  37. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/resourcenotfound_error.py +0 -0
  38. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/responsevalidationerror.py +0 -0
  39. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/toomanyrequests_error.py +0 -0
  40. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/errors/unauthenticated_error.py +0 -0
  41. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/httpclient.py +0 -0
  42. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/collectionresponse.py +0 -0
  43. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/indexconfigs_union.py +0 -0
  44. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/messageresponse.py +0 -0
  45. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/security.py +0 -0
  46. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/models/status.py +0 -0
  47. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/py.typed +0 -0
  48. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/types/__init__.py +0 -0
  49. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/types/basemodel.py +0 -0
  50. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/__init__.py +0 -0
  51. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/annotations.py +0 -0
  52. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/datetimes.py +0 -0
  53. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/enums.py +0 -0
  54. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/eventstreaming.py +0 -0
  55. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/forms.py +0 -0
  56. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/headers.py +0 -0
  57. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/logger.py +0 -0
  58. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/metadata.py +0 -0
  59. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/queryparams.py +0 -0
  60. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/requestbodies.py +0 -0
  61. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/retries.py +0 -0
  62. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/security.py +0 -0
  63. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/serializers.py +0 -0
  64. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/url.py +0 -0
  65. {lambdadb-0.3.6 → lambdadb-0.5.1}/src/lambdadb/utils/values.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lambdadb
3
- Version: 0.3.6
3
+ Version: 0.5.1
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.collections.list(project_name="<value>")
138
+ res = lambda_db.collections.list()
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.collections.list_async(project_name="<value>")
158
+ res = await lambda_db.collections.list_async()
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.collections.list(project_name="<value>")
187
+ res = lambda_db.collections.list()
188
188
 
189
189
  # Handle response
190
190
  print(res)
@@ -212,7 +212,7 @@ with LambdaDB(
212
212
  * [upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#upsert) - Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
213
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.
214
214
  * [bulk_upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#bulk_upsert) - Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
215
- * [update_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#update_docs) - Update documents in a collection. Note that the maximum supported payload size is 6MB.
215
+ * [update](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#update) - Update documents in a collection. Note that the maximum supported payload size is 6MB.
216
216
  * [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 a collection.
217
217
  * [fetch](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#fetch) - Lookup and return documents by document IDs from a collection.
218
218
 
@@ -235,7 +235,7 @@ with LambdaDB(
235
235
  project_api_key="<YOUR_PROJECT_API_KEY>",
236
236
  ) as lambda_db:
237
237
 
238
- res = lambda_db.collections.list(project_name="<value>",
238
+ res = lambda_db.collections.list(,
239
239
  RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
240
240
 
241
241
  # Handle response
@@ -254,7 +254,7 @@ with LambdaDB(
254
254
  project_api_key="<YOUR_PROJECT_API_KEY>",
255
255
  ) as lambda_db:
256
256
 
257
- res = lambda_db.collections.list(project_name="<value>")
257
+ res = lambda_db.collections.list()
258
258
 
259
259
  # Handle response
260
260
  print(res)
@@ -287,7 +287,7 @@ with LambdaDB(
287
287
  res = None
288
288
  try:
289
289
 
290
- res = lambda_db.collections.list(project_name="<value>")
290
+ res = lambda_db.collections.list()
291
291
 
292
292
  # Handle response
293
293
  print(res)
@@ -337,6 +337,32 @@ with LambdaDB(
337
337
  <!-- Start Server Selection [server] -->
338
338
  ## Server Selection
339
339
 
340
+ ### Server Variables
341
+
342
+ The default server `https://{baseUrl}` contains variables and is set to `https://api.lambdadb.com/projects/default` by default. To override default values, the following parameters are available when initializing the SDK client instance:
343
+
344
+ | Variable | Parameter | Default | Description |
345
+ | --------- | --------------- | ------------------------------------- | ----------------------- |
346
+ | `baseUrl` | `base_url: str` | `"api.lambdadb.com/projects/default"` | The base URL of the API |
347
+
348
+ #### Example
349
+
350
+ ```python
351
+ from lambdadb import LambdaDB
352
+
353
+
354
+ with LambdaDB(
355
+ base_url="https://functional-jury.net/"
356
+ project_api_key="<YOUR_PROJECT_API_KEY>",
357
+ ) as lambda_db:
358
+
359
+ res = lambda_db.collections.list()
360
+
361
+ # Handle response
362
+ print(res)
363
+
364
+ ```
365
+
340
366
  ### Override Server URL Per-Client
341
367
 
342
368
  The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
@@ -345,11 +371,11 @@ from lambdadb import LambdaDB
345
371
 
346
372
 
347
373
  with LambdaDB(
348
- server_url="https://{baseUrl}",
374
+ server_url="https://api.lambdadb.com/projects/default",
349
375
  project_api_key="<YOUR_PROJECT_API_KEY>",
350
376
  ) as lambda_db:
351
377
 
352
- res = lambda_db.collections.list(project_name="<value>")
378
+ res = lambda_db.collections.list()
353
379
 
354
380
  # Handle response
355
381
  print(res)
@@ -118,7 +118,7 @@ with LambdaDB(
118
118
  project_api_key="<YOUR_PROJECT_API_KEY>",
119
119
  ) as lambda_db:
120
120
 
121
- res = lambda_db.collections.list(project_name="<value>")
121
+ res = lambda_db.collections.list()
122
122
 
123
123
  # Handle response
124
124
  print(res)
@@ -138,7 +138,7 @@ async def main():
138
138
  project_api_key="<YOUR_PROJECT_API_KEY>",
139
139
  ) as lambda_db:
140
140
 
141
- res = await lambda_db.collections.list_async(project_name="<value>")
141
+ res = await lambda_db.collections.list_async()
142
142
 
143
143
  # Handle response
144
144
  print(res)
@@ -167,7 +167,7 @@ with LambdaDB(
167
167
  project_api_key="<YOUR_PROJECT_API_KEY>",
168
168
  ) as lambda_db:
169
169
 
170
- res = lambda_db.collections.list(project_name="<value>")
170
+ res = lambda_db.collections.list()
171
171
 
172
172
  # Handle response
173
173
  print(res)
@@ -195,7 +195,7 @@ with LambdaDB(
195
195
  * [upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#upsert) - Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
196
196
  * [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.
197
197
  * [bulk_upsert](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#bulk_upsert) - Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
198
- * [update_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#update_docs) - Update documents in a collection. Note that the maximum supported payload size is 6MB.
198
+ * [update](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#update) - Update documents in a collection. Note that the maximum supported payload size is 6MB.
199
199
  * [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 a collection.
200
200
  * [fetch](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#fetch) - Lookup and return documents by document IDs from a collection.
201
201
 
@@ -218,7 +218,7 @@ with LambdaDB(
218
218
  project_api_key="<YOUR_PROJECT_API_KEY>",
219
219
  ) as lambda_db:
220
220
 
221
- res = lambda_db.collections.list(project_name="<value>",
221
+ res = lambda_db.collections.list(,
222
222
  RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
223
223
 
224
224
  # Handle response
@@ -237,7 +237,7 @@ with LambdaDB(
237
237
  project_api_key="<YOUR_PROJECT_API_KEY>",
238
238
  ) as lambda_db:
239
239
 
240
- res = lambda_db.collections.list(project_name="<value>")
240
+ res = lambda_db.collections.list()
241
241
 
242
242
  # Handle response
243
243
  print(res)
@@ -270,7 +270,7 @@ with LambdaDB(
270
270
  res = None
271
271
  try:
272
272
 
273
- res = lambda_db.collections.list(project_name="<value>")
273
+ res = lambda_db.collections.list()
274
274
 
275
275
  # Handle response
276
276
  print(res)
@@ -320,6 +320,32 @@ with LambdaDB(
320
320
  <!-- Start Server Selection [server] -->
321
321
  ## Server Selection
322
322
 
323
+ ### Server Variables
324
+
325
+ The default server `https://{baseUrl}` contains variables and is set to `https://api.lambdadb.com/projects/default` by default. To override default values, the following parameters are available when initializing the SDK client instance:
326
+
327
+ | Variable | Parameter | Default | Description |
328
+ | --------- | --------------- | ------------------------------------- | ----------------------- |
329
+ | `baseUrl` | `base_url: str` | `"api.lambdadb.com/projects/default"` | The base URL of the API |
330
+
331
+ #### Example
332
+
333
+ ```python
334
+ from lambdadb import LambdaDB
335
+
336
+
337
+ with LambdaDB(
338
+ base_url="https://functional-jury.net/"
339
+ project_api_key="<YOUR_PROJECT_API_KEY>",
340
+ ) as lambda_db:
341
+
342
+ res = lambda_db.collections.list()
343
+
344
+ # Handle response
345
+ print(res)
346
+
347
+ ```
348
+
323
349
  ### Override Server URL Per-Client
324
350
 
325
351
  The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
@@ -328,11 +354,11 @@ from lambdadb import LambdaDB
328
354
 
329
355
 
330
356
  with LambdaDB(
331
- server_url="https://{baseUrl}",
357
+ server_url="https://api.lambdadb.com/projects/default",
332
358
  project_api_key="<YOUR_PROJECT_API_KEY>",
333
359
  ) as lambda_db:
334
360
 
335
- res = lambda_db.collections.list(project_name="<value>")
361
+ res = lambda_db.collections.list()
336
362
 
337
363
  # Handle response
338
364
  print(res)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lambdadb"
3
- version = "0.3.6"
3
+ version = "0.5.1"
4
4
  description = "Python Client SDK Generated by Speakeasy."
5
5
  authors = [{ name = "Speakeasy" },]
6
6
  readme = "README-PYPI.md"
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "lambdadb"
6
- __version__: str = "0.3.6"
6
+ __version__: str = "0.5.1"
7
7
  __openapi_doc_version__: str = "1.1.1"
8
8
  __gen_version__: str = "2.647.2"
9
- __user_agent__: str = "speakeasy-sdk/python 0.3.6 2.647.2 1.1.1 lambdadb"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.5.1 2.647.2 1.1.1 lambdadb"
10
10
 
11
11
  try:
12
12
  if __package__ is not None: