lambdadb 0.3.6__tar.gz → 0.4.0__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.
- {lambdadb-0.3.6 → lambdadb-0.4.0}/PKG-INFO +46 -20
- {lambdadb-0.3.6 → lambdadb-0.4.0}/README-PYPI.md +45 -19
- {lambdadb-0.3.6 → lambdadb-0.4.0}/pyproject.toml +1 -1
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/_version.py +2 -2
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/collections.py +46 -102
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/docs.py +22 -58
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/__init__.py +0 -12
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/bulkupsertdocsop.py +0 -9
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/createcollectionop.py +2 -23
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/deletecollectionop.py +0 -9
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/deletedocsop.py +0 -9
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/fetchdocsop.py +0 -9
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/getbulkupsertdocsop.py +0 -9
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/getcollectionop.py +0 -9
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/listcollectionsop.py +1 -17
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/querycollectionop.py +0 -9
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/updatecollectionop.py +0 -9
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/updatedocsop.py +0 -9
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/upsertdocsop.py +0 -9
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/sdk.py +9 -1
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/sdkconfiguration.py +4 -3
- {lambdadb-0.3.6 → lambdadb-0.4.0}/LICENSE +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/py.typed +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/__init__.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/_hooks/__init__.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/_hooks/registration.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/_hooks/sdkhooks.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/_hooks/types.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/basesdk.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/__init__.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/apierror.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/badrequest_error.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/internalservererror.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/lambdadberror.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/no_response_error.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/resourcealreadyexists_error.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/resourcenotfound_error.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/responsevalidationerror.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/toomanyrequests_error.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/errors/unauthenticated_error.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/httpclient.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/collectionresponse.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/indexconfigs_union.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/messageresponse.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/security.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/models/status.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/py.typed +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/types/__init__.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/types/basemodel.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/__init__.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/annotations.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/datetimes.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/enums.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/eventstreaming.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/forms.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/headers.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/logger.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/metadata.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/queryparams.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/requestbodies.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/retries.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/security.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/serializers.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/src/lambdadb/utils/url.py +0 -0
- {lambdadb-0.3.6 → lambdadb-0.4.0}/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
|
+
Version: 0.4.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.collections.
|
|
138
|
+
res = lambda_db.collections.list_collections()
|
|
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.
|
|
158
|
+
res = await lambda_db.collections.list_collections_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.
|
|
187
|
+
res = lambda_db.collections.list_collections()
|
|
188
188
|
|
|
189
189
|
# Handle response
|
|
190
190
|
print(res)
|
|
@@ -200,21 +200,21 @@ with LambdaDB(
|
|
|
200
200
|
|
|
201
201
|
### [collections](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md)
|
|
202
202
|
|
|
203
|
-
* [
|
|
204
|
-
* [
|
|
205
|
-
* [
|
|
206
|
-
* [
|
|
207
|
-
* [
|
|
208
|
-
* [
|
|
203
|
+
* [list_collections](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#list_collections) - List all collections in an existing project.
|
|
204
|
+
* [create_collection](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#create_collection) - Create a collection.
|
|
205
|
+
* [delete_collection](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#delete_collection) - Delete an existing collection.
|
|
206
|
+
* [get_collection](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#get_collection) - Get metadata of an existing collection.
|
|
207
|
+
* [update_collection](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#update_collection) - Configure a collection.
|
|
208
|
+
* [query_collection](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#query_collection) - Search a collection with a query and return the most similar documents.
|
|
209
209
|
|
|
210
210
|
#### [collections.docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md)
|
|
211
211
|
|
|
212
|
-
* [
|
|
213
|
-
* [
|
|
214
|
-
* [
|
|
212
|
+
* [upsert_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#upsert_docs) - Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
|
|
213
|
+
* [get_bulk_upsert_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#get_bulk_upsert_docs) - Request required info to upload documents.
|
|
214
|
+
* [bulk_upsert_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#bulk_upsert_docs) - Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
|
|
215
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.
|
|
216
|
-
* [
|
|
217
|
-
* [
|
|
216
|
+
* [delete_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#delete_docs) - Delete documents by document IDs or query filter from a collection.
|
|
217
|
+
* [fetch_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#fetch_docs) - Lookup and return documents by document IDs from a collection.
|
|
218
218
|
|
|
219
219
|
|
|
220
220
|
</details>
|
|
@@ -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.
|
|
238
|
+
res = lambda_db.collections.list_collections(,
|
|
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.
|
|
257
|
+
res = lambda_db.collections.list_collections()
|
|
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.
|
|
290
|
+
res = lambda_db.collections.list_collections()
|
|
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_collections()
|
|
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://
|
|
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.
|
|
378
|
+
res = lambda_db.collections.list_collections()
|
|
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.
|
|
121
|
+
res = lambda_db.collections.list_collections()
|
|
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.
|
|
141
|
+
res = await lambda_db.collections.list_collections_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.
|
|
170
|
+
res = lambda_db.collections.list_collections()
|
|
171
171
|
|
|
172
172
|
# Handle response
|
|
173
173
|
print(res)
|
|
@@ -183,21 +183,21 @@ with LambdaDB(
|
|
|
183
183
|
|
|
184
184
|
### [collections](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md)
|
|
185
185
|
|
|
186
|
-
* [
|
|
187
|
-
* [
|
|
188
|
-
* [
|
|
189
|
-
* [
|
|
190
|
-
* [
|
|
191
|
-
* [
|
|
186
|
+
* [list_collections](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#list_collections) - List all collections in an existing project.
|
|
187
|
+
* [create_collection](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#create_collection) - Create a collection.
|
|
188
|
+
* [delete_collection](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#delete_collection) - Delete an existing collection.
|
|
189
|
+
* [get_collection](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#get_collection) - Get metadata of an existing collection.
|
|
190
|
+
* [update_collection](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#update_collection) - Configure a collection.
|
|
191
|
+
* [query_collection](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/collections/README.md#query_collection) - Search a collection with a query and return the most similar documents.
|
|
192
192
|
|
|
193
193
|
#### [collections.docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md)
|
|
194
194
|
|
|
195
|
-
* [
|
|
196
|
-
* [
|
|
197
|
-
* [
|
|
195
|
+
* [upsert_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#upsert_docs) - Upsert documents into a collection. Note that the maximum supported payload size is 6MB.
|
|
196
|
+
* [get_bulk_upsert_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#get_bulk_upsert_docs) - Request required info to upload documents.
|
|
197
|
+
* [bulk_upsert_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#bulk_upsert_docs) - Bulk upsert documents into a collection. Note that the maximum supported object size is 200MB.
|
|
198
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.
|
|
199
|
-
* [
|
|
200
|
-
* [
|
|
199
|
+
* [delete_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#delete_docs) - Delete documents by document IDs or query filter from a collection.
|
|
200
|
+
* [fetch_docs](https://github.com/lambdadb/lambdadb-python-client/blob/master/docs/sdks/docs/README.md#fetch_docs) - Lookup and return documents by document IDs from a collection.
|
|
201
201
|
|
|
202
202
|
|
|
203
203
|
</details>
|
|
@@ -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.
|
|
221
|
+
res = lambda_db.collections.list_collections(,
|
|
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.
|
|
240
|
+
res = lambda_db.collections.list_collections()
|
|
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.
|
|
273
|
+
res = lambda_db.collections.list_collections()
|
|
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_collections()
|
|
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://
|
|
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.
|
|
361
|
+
res = lambda_db.collections.list_collections()
|
|
336
362
|
|
|
337
363
|
# Handle response
|
|
338
364
|
print(res)
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "lambdadb"
|
|
6
|
-
__version__: str = "0.
|
|
6
|
+
__version__: str = "0.4.0"
|
|
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.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.4.0 2.647.2 1.1.1 lambdadb"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|