lambdadb 0.5.3__tar.gz → 0.5.5__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 (66) hide show
  1. {lambdadb-0.5.3 → lambdadb-0.5.5}/PKG-INFO +6 -6
  2. {lambdadb-0.5.3 → lambdadb-0.5.5}/README-PYPI.md +5 -5
  3. {lambdadb-0.5.3 → lambdadb-0.5.5}/pyproject.toml +1 -1
  4. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/_version.py +2 -2
  5. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/collections.py +6 -6
  6. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/querycollectionop.py +17 -17
  7. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/sdk.py +3 -3
  8. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/sdkconfiguration.py +1 -1
  9. {lambdadb-0.5.3 → lambdadb-0.5.5}/LICENSE +0 -0
  10. {lambdadb-0.5.3 → lambdadb-0.5.5}/py.typed +0 -0
  11. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/__init__.py +0 -0
  12. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/_hooks/__init__.py +0 -0
  13. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/_hooks/registration.py +0 -0
  14. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/_hooks/sdkhooks.py +0 -0
  15. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/_hooks/types.py +0 -0
  16. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/basesdk.py +0 -0
  17. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/docs.py +0 -0
  18. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/__init__.py +0 -0
  19. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/apierror.py +0 -0
  20. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/badrequest_error.py +0 -0
  21. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/internalservererror.py +0 -0
  22. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/lambdadberror.py +0 -0
  23. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/no_response_error.py +0 -0
  24. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/resourcealreadyexists_error.py +0 -0
  25. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/resourcenotfound_error.py +0 -0
  26. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/responsevalidationerror.py +0 -0
  27. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/toomanyrequests_error.py +0 -0
  28. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/errors/unauthenticated_error.py +0 -0
  29. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/httpclient.py +0 -0
  30. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/__init__.py +0 -0
  31. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/bulkupsertdocsop.py +0 -0
  32. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/collectionresponse.py +0 -0
  33. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/createcollectionop.py +0 -0
  34. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/deletecollectionop.py +0 -0
  35. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/deletedocsop.py +0 -0
  36. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/fetchdocsop.py +0 -0
  37. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/getbulkupsertdocsop.py +0 -0
  38. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/getcollectionop.py +0 -0
  39. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/indexconfigs_union.py +0 -0
  40. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/listcollectionsop.py +0 -0
  41. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/messageresponse.py +0 -0
  42. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/security.py +0 -0
  43. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/status.py +0 -0
  44. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/updatecollectionop.py +0 -0
  45. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/updatedocsop.py +0 -0
  46. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/models/upsertdocsop.py +0 -0
  47. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/py.typed +0 -0
  48. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/types/__init__.py +0 -0
  49. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/types/basemodel.py +0 -0
  50. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/__init__.py +0 -0
  51. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/annotations.py +0 -0
  52. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/datetimes.py +0 -0
  53. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/enums.py +0 -0
  54. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/eventstreaming.py +0 -0
  55. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/forms.py +0 -0
  56. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/headers.py +0 -0
  57. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/logger.py +0 -0
  58. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/metadata.py +0 -0
  59. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/queryparams.py +0 -0
  60. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/requestbodies.py +0 -0
  61. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/retries.py +0 -0
  62. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/security.py +0 -0
  63. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/serializers.py +0 -0
  64. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/unmarshal_json_response.py +0 -0
  65. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/url.py +0 -0
  66. {lambdadb-0.5.3 → lambdadb-0.5.5}/src/lambdadb/utils/values.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lambdadb
3
- Version: 0.5.3
3
+ Version: 0.5.5
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9.2
@@ -339,11 +339,11 @@ with LambdaDB(
339
339
 
340
340
  ### Server Variables
341
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:
342
+ The default server `https://{projectHost}` 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
343
 
344
- | Variable | Parameter | Default | Description |
345
- | --------- | --------------- | ------------------------------------- | ----------------------- |
346
- | `baseUrl` | `base_url: str` | `"api.lambdadb.com/projects/default"` | The base URL of the API |
344
+ | Variable | Parameter | Default | Description |
345
+ | ------------- | ------------------- | ------------------------------------- | -------------------------- |
346
+ | `projectHost` | `project_host: str` | `"api.lambdadb.com/projects/default"` | The project URL of the API |
347
347
 
348
348
  #### Example
349
349
 
@@ -352,7 +352,7 @@ from lambdadb import LambdaDB
352
352
 
353
353
 
354
354
  with LambdaDB(
355
- base_url="https://functional-jury.net/"
355
+ project_host="<value>"
356
356
  project_api_key="<YOUR_PROJECT_API_KEY>",
357
357
  ) as lambda_db:
358
358
 
@@ -322,11 +322,11 @@ with LambdaDB(
322
322
 
323
323
  ### Server Variables
324
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:
325
+ The default server `https://{projectHost}` 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
326
 
327
- | Variable | Parameter | Default | Description |
328
- | --------- | --------------- | ------------------------------------- | ----------------------- |
329
- | `baseUrl` | `base_url: str` | `"api.lambdadb.com/projects/default"` | The base URL of the API |
327
+ | Variable | Parameter | Default | Description |
328
+ | ------------- | ------------------- | ------------------------------------- | -------------------------- |
329
+ | `projectHost` | `project_host: str` | `"api.lambdadb.com/projects/default"` | The project URL of the API |
330
330
 
331
331
  #### Example
332
332
 
@@ -335,7 +335,7 @@ from lambdadb import LambdaDB
335
335
 
336
336
 
337
337
  with LambdaDB(
338
- base_url="https://functional-jury.net/"
338
+ project_host="<value>"
339
339
  project_api_key="<YOUR_PROJECT_API_KEY>",
340
340
  ) as lambda_db:
341
341
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lambdadb"
3
- version = "0.5.3"
3
+ version = "0.5.5"
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.5.3"
6
+ __version__: str = "0.5.5"
7
7
  __openapi_doc_version__: str = "1.1.1"
8
8
  __gen_version__: str = "2.657.1"
9
- __user_agent__: str = "speakeasy-sdk/python 0.5.3 2.657.1 1.1.1 lambdadb"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.5.5 2.657.1 1.1.1 lambdadb"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -1176,8 +1176,8 @@ class Collections(BaseSDK):
1176
1176
  self,
1177
1177
  *,
1178
1178
  collection_name: str,
1179
- size: int,
1180
- query: Optional[Dict[str, Any]] = None,
1179
+ query: Dict[str, Any],
1180
+ size: Optional[int] = None,
1181
1181
  consistent_read: Optional[bool] = False,
1182
1182
  include_vectors: Optional[bool] = False,
1183
1183
  sort: Optional[List[Dict[str, Any]]] = None,
@@ -1190,8 +1190,8 @@ class Collections(BaseSDK):
1190
1190
  r"""Search a collection with a query and return the most similar documents.
1191
1191
 
1192
1192
  :param collection_name: Collection name.
1193
- :param size: Number of documents to return. Note that the maximum number of documents is 100.
1194
1193
  :param query: Query object.
1194
+ :param size: Number of documents to return. Note that the maximum number of documents is 100.
1195
1195
  :param consistent_read: If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.
1196
1196
  :param include_vectors: If your application need to include vector values in the response, set includeVectors to true.
1197
1197
  :param sort: List of field name, sort direction pairs.
@@ -1314,8 +1314,8 @@ class Collections(BaseSDK):
1314
1314
  self,
1315
1315
  *,
1316
1316
  collection_name: str,
1317
- size: int,
1318
- query: Optional[Dict[str, Any]] = None,
1317
+ query: Dict[str, Any],
1318
+ size: Optional[int] = None,
1319
1319
  consistent_read: Optional[bool] = False,
1320
1320
  include_vectors: Optional[bool] = False,
1321
1321
  sort: Optional[List[Dict[str, Any]]] = None,
@@ -1328,8 +1328,8 @@ class Collections(BaseSDK):
1328
1328
  r"""Search a collection with a query and return the most similar documents.
1329
1329
 
1330
1330
  :param collection_name: Collection name.
1331
- :param size: Number of documents to return. Note that the maximum number of documents is 100.
1332
1331
  :param query: Query object.
1332
+ :param size: Number of documents to return. Note that the maximum number of documents is 100.
1333
1333
  :param consistent_read: If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.
1334
1334
  :param include_vectors: If your application need to include vector values in the response, set includeVectors to true.
1335
1335
  :param sort: List of field name, sort direction pairs.
@@ -9,10 +9,10 @@ from typing_extensions import Annotated, NotRequired, TypedDict
9
9
 
10
10
 
11
11
  class QueryCollectionRequestBodyTypedDict(TypedDict):
12
- size: int
13
- r"""Number of documents to return. Note that the maximum number of documents is 100."""
14
- query: NotRequired[Dict[str, Any]]
12
+ query: Dict[str, Any]
15
13
  r"""Query object."""
14
+ size: NotRequired[int]
15
+ r"""Number of documents to return. Note that the maximum number of documents is 100."""
16
16
  consistent_read: NotRequired[bool]
17
17
  r"""If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value."""
18
18
  include_vectors: NotRequired[bool]
@@ -24,12 +24,12 @@ class QueryCollectionRequestBodyTypedDict(TypedDict):
24
24
 
25
25
 
26
26
  class QueryCollectionRequestBody(BaseModel):
27
- size: int
28
- r"""Number of documents to return. Note that the maximum number of documents is 100."""
29
-
30
- query: Optional[Dict[str, Any]] = None
27
+ query: Dict[str, Any]
31
28
  r"""Query object."""
32
29
 
30
+ size: Optional[int] = None
31
+ r"""Number of documents to return. Note that the maximum number of documents is 100."""
32
+
33
33
  consistent_read: Annotated[
34
34
  Optional[bool], pydantic.Field(alias="consistentRead")
35
35
  ] = False
@@ -70,32 +70,32 @@ class QueryCollectionRequest(BaseModel):
70
70
  class QueryCollectionDocTypedDict(TypedDict):
71
71
  collection: str
72
72
  r"""Collection name."""
73
- score: float
74
- r"""Document similarity score."""
75
73
  doc: Dict[str, Any]
74
+ score: NotRequired[float]
75
+ r"""Document similarity score."""
76
76
 
77
77
 
78
78
  class QueryCollectionDoc(BaseModel):
79
79
  collection: str
80
80
  r"""Collection name."""
81
81
 
82
- score: float
83
- r"""Document similarity score."""
84
-
85
82
  doc: Dict[str, Any]
86
83
 
84
+ score: Optional[float] = None
85
+ r"""Document similarity score."""
86
+
87
87
 
88
88
  class QueryCollectionResponseTypedDict(TypedDict):
89
89
  r"""Documents selected by query."""
90
90
 
91
91
  took: int
92
92
  r"""Elapsed time in milliseconds."""
93
- max_score: float
94
- r"""Maximum score."""
95
93
  total: int
96
94
  r"""Total number of documents returned."""
97
95
  docs: List[QueryCollectionDocTypedDict]
98
96
  r"""List of documents."""
97
+ max_score: NotRequired[float]
98
+ r"""Maximum score."""
99
99
 
100
100
 
101
101
  class QueryCollectionResponse(BaseModel):
@@ -104,11 +104,11 @@ class QueryCollectionResponse(BaseModel):
104
104
  took: int
105
105
  r"""Elapsed time in milliseconds."""
106
106
 
107
- max_score: Annotated[float, pydantic.Field(alias="maxScore")]
108
- r"""Maximum score."""
109
-
110
107
  total: int
111
108
  r"""Total number of documents returned."""
112
109
 
113
110
  docs: List[QueryCollectionDoc]
114
111
  r"""List of documents."""
112
+
113
+ max_score: Annotated[Optional[float], pydantic.Field(alias="maxScore")] = None
114
+ r"""Maximum score."""
@@ -30,7 +30,7 @@ class LambdaDB(BaseSDK):
30
30
  project_api_key: Optional[
31
31
  Union[Optional[str], Callable[[], Optional[str]]]
32
32
  ] = None,
33
- base_url: Optional[str] = None,
33
+ project_host: Optional[str] = None,
34
34
  server_idx: Optional[int] = None,
35
35
  server_url: Optional[str] = None,
36
36
  url_params: Optional[Dict[str, str]] = None,
@@ -43,7 +43,7 @@ class LambdaDB(BaseSDK):
43
43
  r"""Instantiates the SDK configuring it with the provided parameters.
44
44
 
45
45
  :param project_api_key: The project_api_key required for authentication
46
- :param base_url: Allows setting the baseUrl variable for url substitution
46
+ :param project_host: Allows setting the projectHost variable for url substitution
47
47
  :param server_idx: The index of the server to use for all methods
48
48
  :param server_url: The server URL to use for all methods
49
49
  :param url_params: Parameters to optionally template the server URL with
@@ -85,7 +85,7 @@ class LambdaDB(BaseSDK):
85
85
  server_url = utils.template_url(server_url, url_params)
86
86
  server_defaults: List[Dict[str, str]] = [
87
87
  {
88
- "baseUrl": base_url or "api.lambdadb.com/projects/default",
88
+ "projectHost": project_host or "api.lambdadb.com/projects/default",
89
89
  },
90
90
  ]
91
91
 
@@ -16,7 +16,7 @@ from typing import Callable, Dict, List, Optional, Tuple, Union
16
16
 
17
17
 
18
18
  SERVERS = [
19
- "https://{baseUrl}",
19
+ "https://{projectHost}",
20
20
  # LambdaDB API endpoints
21
21
  ]
22
22
  """Contains the list of servers available to the SDK"""
File without changes
File without changes
File without changes
File without changes