supermemory 3.0.0a20__py3-none-any.whl → 3.0.0a22__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 supermemory might be problematic. Click here for more details.

Files changed (63) hide show
  1. {supermemory_new → supermemory}/__init__.py +2 -2
  2. {supermemory_new → supermemory}/_base_client.py +1 -1
  3. {supermemory_new → supermemory}/_response.py +4 -4
  4. {supermemory_new → supermemory}/_types.py +1 -1
  5. {supermemory_new → supermemory}/_utils/_logs.py +2 -2
  6. {supermemory_new → supermemory}/_utils/_resources_proxy.py +4 -4
  7. supermemory/_version.py +4 -0
  8. {supermemory_new → supermemory}/resources/connections.py +79 -0
  9. {supermemory_new → supermemory}/resources/settings.py +0 -4
  10. {supermemory_new → supermemory}/types/__init__.py +1 -0
  11. supermemory/types/connection_delete_by_id_response.py +11 -0
  12. {supermemory_new → supermemory}/types/setting_get_response.py +0 -4
  13. {supermemory_new → supermemory}/types/setting_update_params.py +0 -4
  14. {supermemory_new → supermemory}/types/setting_update_response.py +0 -4
  15. {supermemory-3.0.0a20.dist-info → supermemory-3.0.0a22.dist-info}/METADATA +22 -22
  16. supermemory-3.0.0a22.dist-info/RECORD +61 -0
  17. supermemory-3.0.0a20.dist-info/RECORD +0 -60
  18. supermemory_new/_version.py +0 -4
  19. {supermemory_new → supermemory}/_client.py +0 -0
  20. {supermemory_new → supermemory}/_compat.py +0 -0
  21. {supermemory_new → supermemory}/_constants.py +0 -0
  22. {supermemory_new → supermemory}/_exceptions.py +0 -0
  23. {supermemory_new → supermemory}/_files.py +0 -0
  24. {supermemory_new → supermemory}/_models.py +0 -0
  25. {supermemory_new → supermemory}/_qs.py +0 -0
  26. {supermemory_new → supermemory}/_resource.py +0 -0
  27. {supermemory_new → supermemory}/_streaming.py +0 -0
  28. {supermemory_new → supermemory}/_utils/__init__.py +0 -0
  29. {supermemory_new → supermemory}/_utils/_proxy.py +0 -0
  30. {supermemory_new → supermemory}/_utils/_reflection.py +0 -0
  31. {supermemory_new → supermemory}/_utils/_streams.py +0 -0
  32. {supermemory_new → supermemory}/_utils/_sync.py +0 -0
  33. {supermemory_new → supermemory}/_utils/_transform.py +0 -0
  34. {supermemory_new → supermemory}/_utils/_typing.py +0 -0
  35. {supermemory_new → supermemory}/_utils/_utils.py +0 -0
  36. {supermemory_new → supermemory}/lib/.keep +0 -0
  37. {supermemory_new → supermemory}/py.typed +0 -0
  38. {supermemory_new → supermemory}/resources/__init__.py +0 -0
  39. {supermemory_new → supermemory}/resources/memories.py +0 -0
  40. {supermemory_new → supermemory}/resources/search.py +0 -0
  41. {supermemory_new → supermemory}/types/connection_create_params.py +0 -0
  42. {supermemory_new → supermemory}/types/connection_create_response.py +0 -0
  43. {supermemory_new → supermemory}/types/connection_delete_by_provider_params.py +0 -0
  44. {supermemory_new → supermemory}/types/connection_delete_by_provider_response.py +0 -0
  45. {supermemory_new → supermemory}/types/connection_get_by_id_response.py +0 -0
  46. {supermemory_new → supermemory}/types/connection_get_by_tags_params.py +0 -0
  47. {supermemory_new → supermemory}/types/connection_get_by_tags_response.py +0 -0
  48. {supermemory_new → supermemory}/types/connection_import_params.py +0 -0
  49. {supermemory_new → supermemory}/types/connection_list_documents_params.py +0 -0
  50. {supermemory_new → supermemory}/types/connection_list_documents_response.py +0 -0
  51. {supermemory_new → supermemory}/types/connection_list_params.py +0 -0
  52. {supermemory_new → supermemory}/types/connection_list_response.py +0 -0
  53. {supermemory_new → supermemory}/types/memory_add_params.py +0 -0
  54. {supermemory_new → supermemory}/types/memory_add_response.py +0 -0
  55. {supermemory_new → supermemory}/types/memory_get_response.py +0 -0
  56. {supermemory_new → supermemory}/types/memory_list_params.py +0 -0
  57. {supermemory_new → supermemory}/types/memory_list_response.py +0 -0
  58. {supermemory_new → supermemory}/types/memory_update_params.py +0 -0
  59. {supermemory_new → supermemory}/types/memory_update_response.py +0 -0
  60. {supermemory_new → supermemory}/types/search_execute_params.py +0 -0
  61. {supermemory_new → supermemory}/types/search_execute_response.py +0 -0
  62. {supermemory-3.0.0a20.dist-info → supermemory-3.0.0a22.dist-info}/WHEEL +0 -0
  63. {supermemory-3.0.0a20.dist-info → supermemory-3.0.0a22.dist-info}/licenses/LICENSE +0 -0
@@ -89,12 +89,12 @@ _setup_logging()
89
89
  # Update the __module__ attribute for exported symbols so that
90
90
  # error messages point to this module instead of the module
91
91
  # it was originally defined in, e.g.
92
- # supermemory_new._exceptions.NotFoundError -> supermemory_new.NotFoundError
92
+ # supermemory._exceptions.NotFoundError -> supermemory.NotFoundError
93
93
  __locals = locals()
94
94
  for __name in __all__:
95
95
  if not __name.startswith("__"):
96
96
  try:
97
- __locals[__name].__module__ = "supermemory_new"
97
+ __locals[__name].__module__ = "supermemory"
98
98
  except (TypeError, AttributeError):
99
99
  # Some of our exported symbols are builtins which we can't set attributes for.
100
100
  pass
@@ -389,7 +389,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
389
389
 
390
390
  if max_retries is None: # pyright: ignore[reportUnnecessaryComparison]
391
391
  raise TypeError(
392
- "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `supermemory_new.DEFAULT_MAX_RETRIES`"
392
+ "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `supermemory.DEFAULT_MAX_RETRIES`"
393
393
  )
394
394
 
395
395
  def _enforce_trailing_slash(self, url: URL) -> URL:
@@ -218,7 +218,7 @@ class BaseAPIResponse(Generic[R]):
218
218
  and issubclass(origin, pydantic.BaseModel)
219
219
  ):
220
220
  raise TypeError(
221
- "Pydantic models must subclass our base model type, e.g. `from supermemory_new import BaseModel`"
221
+ "Pydantic models must subclass our base model type, e.g. `from supermemory import BaseModel`"
222
222
  )
223
223
 
224
224
  if (
@@ -285,7 +285,7 @@ class APIResponse(BaseAPIResponse[R]):
285
285
  the `to` argument, e.g.
286
286
 
287
287
  ```py
288
- from supermemory_new import BaseModel
288
+ from supermemory import BaseModel
289
289
 
290
290
 
291
291
  class MyModel(BaseModel):
@@ -387,7 +387,7 @@ class AsyncAPIResponse(BaseAPIResponse[R]):
387
387
  the `to` argument, e.g.
388
388
 
389
389
  ```py
390
- from supermemory_new import BaseModel
390
+ from supermemory import BaseModel
391
391
 
392
392
 
393
393
  class MyModel(BaseModel):
@@ -558,7 +558,7 @@ class AsyncStreamedBinaryAPIResponse(AsyncAPIResponse[bytes]):
558
558
  class MissingStreamClassError(TypeError):
559
559
  def __init__(self) -> None:
560
560
  super().__init__(
561
- "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `supermemory_new._streaming` for reference",
561
+ "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `supermemory._streaming` for reference",
562
562
  )
563
563
 
564
564
 
@@ -81,7 +81,7 @@ HttpxRequestFiles = Union[Mapping[str, HttpxFileTypes], Sequence[Tuple[str, Http
81
81
  # This unfortunately means that you will either have
82
82
  # to import this type and pass it explicitly:
83
83
  #
84
- # from supermemory_new import NoneType
84
+ # from supermemory import NoneType
85
85
  # client.get('/foo', cast_to=NoneType)
86
86
  #
87
87
  # or build it yourself:
@@ -1,12 +1,12 @@
1
1
  import os
2
2
  import logging
3
3
 
4
- logger: logging.Logger = logging.getLogger("supermemory_new")
4
+ logger: logging.Logger = logging.getLogger("supermemory")
5
5
  httpx_logger: logging.Logger = logging.getLogger("httpx")
6
6
 
7
7
 
8
8
  def _basic_config() -> None:
9
- # e.g. [2023-10-05 14:12:26 - supermemory_new._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK"
9
+ # e.g. [2023-10-05 14:12:26 - supermemory._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK"
10
10
  logging.basicConfig(
11
11
  format="[%(asctime)s - %(name)s:%(lineno)d - %(levelname)s] %(message)s",
12
12
  datefmt="%Y-%m-%d %H:%M:%S",
@@ -7,17 +7,17 @@ from ._proxy import LazyProxy
7
7
 
8
8
 
9
9
  class ResourcesProxy(LazyProxy[Any]):
10
- """A proxy for the `supermemory_new.resources` module.
10
+ """A proxy for the `supermemory.resources` module.
11
11
 
12
- This is used so that we can lazily import `supermemory_new.resources` only when
13
- needed *and* so that users can just import `supermemory_new` and reference `supermemory_new.resources`
12
+ This is used so that we can lazily import `supermemory.resources` only when
13
+ needed *and* so that users can just import `supermemory` and reference `supermemory.resources`
14
14
  """
15
15
 
16
16
  @override
17
17
  def __load__(self) -> Any:
18
18
  import importlib
19
19
 
20
- mod = importlib.import_module("supermemory_new.resources")
20
+ mod = importlib.import_module("supermemory.resources")
21
21
  return mod
22
22
 
23
23
 
@@ -0,0 +1,4 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ __title__ = "supermemory"
4
+ __version__ = "3.0.0-alpha.22" # x-release-please-version
@@ -30,6 +30,7 @@ from ..types.connection_list_response import ConnectionListResponse
30
30
  from ..types.connection_create_response import ConnectionCreateResponse
31
31
  from ..types.connection_get_by_id_response import ConnectionGetByIDResponse
32
32
  from ..types.connection_get_by_tags_response import ConnectionGetByTagsResponse
33
+ from ..types.connection_delete_by_id_response import ConnectionDeleteByIDResponse
33
34
  from ..types.connection_list_documents_response import ConnectionListDocumentsResponse
34
35
  from ..types.connection_delete_by_provider_response import ConnectionDeleteByProviderResponse
35
36
 
@@ -136,6 +137,39 @@ class ConnectionsResource(SyncAPIResource):
136
137
  cast_to=ConnectionListResponse,
137
138
  )
138
139
 
140
+ def delete_by_id(
141
+ self,
142
+ connection_id: str,
143
+ *,
144
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
145
+ # The extra values given here take precedence over values defined on the client or passed to this method.
146
+ extra_headers: Headers | None = None,
147
+ extra_query: Query | None = None,
148
+ extra_body: Body | None = None,
149
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
150
+ ) -> ConnectionDeleteByIDResponse:
151
+ """
152
+ Delete a specific connection by ID
153
+
154
+ Args:
155
+ extra_headers: Send extra headers
156
+
157
+ extra_query: Add additional query parameters to the request
158
+
159
+ extra_body: Add additional JSON properties to the request
160
+
161
+ timeout: Override the client-level default timeout for this request, in seconds
162
+ """
163
+ if not connection_id:
164
+ raise ValueError(f"Expected a non-empty value for `connection_id` but received {connection_id!r}")
165
+ return self._delete(
166
+ f"/v3/connections/{connection_id}",
167
+ options=make_request_options(
168
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
169
+ ),
170
+ cast_to=ConnectionDeleteByIDResponse,
171
+ )
172
+
139
173
  def delete_by_provider(
140
174
  self,
141
175
  provider: Literal["notion", "google-drive", "onedrive"],
@@ -428,6 +462,39 @@ class AsyncConnectionsResource(AsyncAPIResource):
428
462
  cast_to=ConnectionListResponse,
429
463
  )
430
464
 
465
+ async def delete_by_id(
466
+ self,
467
+ connection_id: str,
468
+ *,
469
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
470
+ # The extra values given here take precedence over values defined on the client or passed to this method.
471
+ extra_headers: Headers | None = None,
472
+ extra_query: Query | None = None,
473
+ extra_body: Body | None = None,
474
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
475
+ ) -> ConnectionDeleteByIDResponse:
476
+ """
477
+ Delete a specific connection by ID
478
+
479
+ Args:
480
+ extra_headers: Send extra headers
481
+
482
+ extra_query: Add additional query parameters to the request
483
+
484
+ extra_body: Add additional JSON properties to the request
485
+
486
+ timeout: Override the client-level default timeout for this request, in seconds
487
+ """
488
+ if not connection_id:
489
+ raise ValueError(f"Expected a non-empty value for `connection_id` but received {connection_id!r}")
490
+ return await self._delete(
491
+ f"/v3/connections/{connection_id}",
492
+ options=make_request_options(
493
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
494
+ ),
495
+ cast_to=ConnectionDeleteByIDResponse,
496
+ )
497
+
431
498
  async def delete_by_provider(
432
499
  self,
433
500
  provider: Literal["notion", "google-drive", "onedrive"],
@@ -630,6 +697,9 @@ class ConnectionsResourceWithRawResponse:
630
697
  self.list = to_raw_response_wrapper(
631
698
  connections.list,
632
699
  )
700
+ self.delete_by_id = to_raw_response_wrapper(
701
+ connections.delete_by_id,
702
+ )
633
703
  self.delete_by_provider = to_raw_response_wrapper(
634
704
  connections.delete_by_provider,
635
705
  )
@@ -657,6 +727,9 @@ class AsyncConnectionsResourceWithRawResponse:
657
727
  self.list = async_to_raw_response_wrapper(
658
728
  connections.list,
659
729
  )
730
+ self.delete_by_id = async_to_raw_response_wrapper(
731
+ connections.delete_by_id,
732
+ )
660
733
  self.delete_by_provider = async_to_raw_response_wrapper(
661
734
  connections.delete_by_provider,
662
735
  )
@@ -684,6 +757,9 @@ class ConnectionsResourceWithStreamingResponse:
684
757
  self.list = to_streamed_response_wrapper(
685
758
  connections.list,
686
759
  )
760
+ self.delete_by_id = to_streamed_response_wrapper(
761
+ connections.delete_by_id,
762
+ )
687
763
  self.delete_by_provider = to_streamed_response_wrapper(
688
764
  connections.delete_by_provider,
689
765
  )
@@ -711,6 +787,9 @@ class AsyncConnectionsResourceWithStreamingResponse:
711
787
  self.list = async_to_streamed_response_wrapper(
712
788
  connections.list,
713
789
  )
790
+ self.delete_by_id = async_to_streamed_response_wrapper(
791
+ connections.delete_by_id,
792
+ )
714
793
  self.delete_by_provider = async_to_streamed_response_wrapper(
715
794
  connections.delete_by_provider,
716
795
  )
@@ -49,7 +49,6 @@ class SettingsResource(SyncAPIResource):
49
49
  *,
50
50
  exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
51
51
  filter_prompt: Optional[str] | NotGiven = NOT_GIVEN,
52
- filter_tags: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
53
52
  google_drive_client_id: Optional[str] | NotGiven = NOT_GIVEN,
54
53
  google_drive_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
55
54
  google_drive_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
@@ -86,7 +85,6 @@ class SettingsResource(SyncAPIResource):
86
85
  {
87
86
  "exclude_items": exclude_items,
88
87
  "filter_prompt": filter_prompt,
89
- "filter_tags": filter_tags,
90
88
  "google_drive_client_id": google_drive_client_id,
91
89
  "google_drive_client_secret": google_drive_client_secret,
92
90
  "google_drive_custom_key_enabled": google_drive_custom_key_enabled,
@@ -152,7 +150,6 @@ class AsyncSettingsResource(AsyncAPIResource):
152
150
  *,
153
151
  exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
154
152
  filter_prompt: Optional[str] | NotGiven = NOT_GIVEN,
155
- filter_tags: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
156
153
  google_drive_client_id: Optional[str] | NotGiven = NOT_GIVEN,
157
154
  google_drive_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
158
155
  google_drive_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
@@ -189,7 +186,6 @@ class AsyncSettingsResource(AsyncAPIResource):
189
186
  {
190
187
  "exclude_items": exclude_items,
191
188
  "filter_prompt": filter_prompt,
192
- "filter_tags": filter_tags,
193
189
  "google_drive_client_id": google_drive_client_id,
194
190
  "google_drive_client_secret": google_drive_client_secret,
195
191
  "google_drive_custom_key_enabled": google_drive_custom_key_enabled,
@@ -22,6 +22,7 @@ from .connection_create_response import ConnectionCreateResponse as ConnectionCr
22
22
  from .connection_get_by_id_response import ConnectionGetByIDResponse as ConnectionGetByIDResponse
23
23
  from .connection_get_by_tags_params import ConnectionGetByTagsParams as ConnectionGetByTagsParams
24
24
  from .connection_get_by_tags_response import ConnectionGetByTagsResponse as ConnectionGetByTagsResponse
25
+ from .connection_delete_by_id_response import ConnectionDeleteByIDResponse as ConnectionDeleteByIDResponse
25
26
  from .connection_list_documents_params import ConnectionListDocumentsParams as ConnectionListDocumentsParams
26
27
  from .connection_list_documents_response import ConnectionListDocumentsResponse as ConnectionListDocumentsResponse
27
28
  from .connection_delete_by_provider_params import ConnectionDeleteByProviderParams as ConnectionDeleteByProviderParams
@@ -0,0 +1,11 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .._models import BaseModel
4
+
5
+ __all__ = ["ConnectionDeleteByIDResponse"]
6
+
7
+
8
+ class ConnectionDeleteByIDResponse(BaseModel):
9
+ id: str
10
+
11
+ provider: str
@@ -16,10 +16,6 @@ class SettingGetResponse(BaseModel):
16
16
 
17
17
  filter_prompt: Optional[str] = FieldInfo(alias="filterPrompt", default=None)
18
18
 
19
- filter_tags: Union[str, float, bool, Dict[str, object], List[object], None] = FieldInfo(
20
- alias="filterTags", default=None
21
- )
22
-
23
19
  google_drive_client_id: Optional[str] = FieldInfo(alias="googleDriveClientId", default=None)
24
20
 
25
21
  google_drive_client_secret: Optional[str] = FieldInfo(alias="googleDriveClientSecret", default=None)
@@ -17,10 +17,6 @@ class SettingUpdateParams(TypedDict, total=False):
17
17
 
18
18
  filter_prompt: Annotated[Optional[str], PropertyInfo(alias="filterPrompt")]
19
19
 
20
- filter_tags: Annotated[
21
- Union[str, float, bool, Dict[str, object], Iterable[object], None], PropertyInfo(alias="filterTags")
22
- ]
23
-
24
20
  google_drive_client_id: Annotated[Optional[str], PropertyInfo(alias="googleDriveClientId")]
25
21
 
26
22
  google_drive_client_secret: Annotated[Optional[str], PropertyInfo(alias="googleDriveClientSecret")]
@@ -16,10 +16,6 @@ class Updated(BaseModel):
16
16
 
17
17
  filter_prompt: Optional[str] = FieldInfo(alias="filterPrompt", default=None)
18
18
 
19
- filter_tags: Union[str, float, bool, Dict[str, object], List[object], None] = FieldInfo(
20
- alias="filterTags", default=None
21
- )
22
-
23
19
  google_drive_client_id: Optional[str] = FieldInfo(alias="googleDriveClientId", default=None)
24
20
 
25
21
  google_drive_client_secret: Optional[str] = FieldInfo(alias="googleDriveClientSecret", default=None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: supermemory
3
- Version: 3.0.0a20
3
+ Version: 3.0.0a22
4
4
  Summary: The official Python library for the supermemory API
5
5
  Project-URL: Homepage, https://github.com/supermemoryai/python-sdk
6
6
  Project-URL: Repository, https://github.com/supermemoryai/python-sdk
@@ -59,7 +59,7 @@ The full API of this library can be found in [api.md](https://github.com/superme
59
59
 
60
60
  ```python
61
61
  import os
62
- from supermemory_new import Supermemory
62
+ from supermemory import Supermemory
63
63
 
64
64
  client = Supermemory(
65
65
  api_key=os.environ.get("SUPERMEMORY_API_KEY"), # This is the default and can be omitted
@@ -83,7 +83,7 @@ Simply import `AsyncSupermemory` instead of `Supermemory` and use `await` with e
83
83
  ```python
84
84
  import os
85
85
  import asyncio
86
- from supermemory_new import AsyncSupermemory
86
+ from supermemory import AsyncSupermemory
87
87
 
88
88
  client = AsyncSupermemory(
89
89
  api_key=os.environ.get("SUPERMEMORY_API_KEY"), # This is the default and can be omitted
@@ -118,8 +118,8 @@ Then you can enable it by instantiating the client with `http_client=DefaultAioH
118
118
  ```python
119
119
  import os
120
120
  import asyncio
121
- from supermemory_new import DefaultAioHttpClient
122
- from supermemory_new import AsyncSupermemory
121
+ from supermemory import DefaultAioHttpClient
122
+ from supermemory import AsyncSupermemory
123
123
 
124
124
 
125
125
  async def main() -> None:
@@ -147,16 +147,16 @@ Typed requests and responses provide autocomplete and documentation within your
147
147
 
148
148
  ## Handling errors
149
149
 
150
- When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `supermemory_new.APIConnectionError` is raised.
150
+ When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `supermemory.APIConnectionError` is raised.
151
151
 
152
152
  When the API returns a non-success status code (that is, 4xx or 5xx
153
- response), a subclass of `supermemory_new.APIStatusError` is raised, containing `status_code` and `response` properties.
153
+ response), a subclass of `supermemory.APIStatusError` is raised, containing `status_code` and `response` properties.
154
154
 
155
- All errors inherit from `supermemory_new.APIError`.
155
+ All errors inherit from `supermemory.APIError`.
156
156
 
157
157
  ```python
158
- import supermemory_new
159
- from supermemory_new import Supermemory
158
+ import supermemory
159
+ from supermemory import Supermemory
160
160
 
161
161
  client = Supermemory()
162
162
 
@@ -164,12 +164,12 @@ try:
164
164
  client.memories.add(
165
165
  content="This is a detailed article about machine learning concepts...",
166
166
  )
167
- except supermemory_new.APIConnectionError as e:
167
+ except supermemory.APIConnectionError as e:
168
168
  print("The server could not be reached")
169
169
  print(e.__cause__) # an underlying Exception, likely raised within httpx.
170
- except supermemory_new.RateLimitError as e:
170
+ except supermemory.RateLimitError as e:
171
171
  print("A 429 status code was received; we should back off a bit.")
172
- except supermemory_new.APIStatusError as e:
172
+ except supermemory.APIStatusError as e:
173
173
  print("Another non-200-range status code was received")
174
174
  print(e.status_code)
175
175
  print(e.response)
@@ -197,7 +197,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
197
197
  You can use the `max_retries` option to configure or disable retry settings:
198
198
 
199
199
  ```python
200
- from supermemory_new import Supermemory
200
+ from supermemory import Supermemory
201
201
 
202
202
  # Configure the default for all requests:
203
203
  client = Supermemory(
@@ -217,7 +217,7 @@ By default requests time out after 1 minute. You can configure this with a `time
217
217
  which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
218
218
 
219
219
  ```python
220
- from supermemory_new import Supermemory
220
+ from supermemory import Supermemory
221
221
 
222
222
  # Configure the default for all requests:
223
223
  client = Supermemory(
@@ -271,7 +271,7 @@ if response.my_field is None:
271
271
  The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
272
272
 
273
273
  ```py
274
- from supermemory_new import Supermemory
274
+ from supermemory import Supermemory
275
275
 
276
276
  client = Supermemory()
277
277
  response = client.memories.with_raw_response.add(
@@ -283,9 +283,9 @@ memory = response.parse() # get the object that `memories.add()` would have ret
283
283
  print(memory.id)
284
284
  ```
285
285
 
286
- These methods return an [`APIResponse`](https://github.com/supermemoryai/python-sdk/tree/main/src/supermemory_new/_response.py) object.
286
+ These methods return an [`APIResponse`](https://github.com/supermemoryai/python-sdk/tree/main/src/supermemory/_response.py) object.
287
287
 
288
- The async client returns an [`AsyncAPIResponse`](https://github.com/supermemoryai/python-sdk/tree/main/src/supermemory_new/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
288
+ The async client returns an [`AsyncAPIResponse`](https://github.com/supermemoryai/python-sdk/tree/main/src/supermemory/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
289
289
 
290
290
  #### `.with_streaming_response`
291
291
 
@@ -349,7 +349,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
349
349
 
350
350
  ```python
351
351
  import httpx
352
- from supermemory_new import Supermemory, DefaultHttpxClient
352
+ from supermemory import Supermemory, DefaultHttpxClient
353
353
 
354
354
  client = Supermemory(
355
355
  # Or use the `SUPERMEMORY_BASE_URL` env var
@@ -372,7 +372,7 @@ client.with_options(http_client=DefaultHttpxClient(...))
372
372
  By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
373
373
 
374
374
  ```py
375
- from supermemory_new import Supermemory
375
+ from supermemory import Supermemory
376
376
 
377
377
  with Supermemory() as client:
378
378
  # make requests here
@@ -400,8 +400,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
400
400
  You can determine the version that is being used at runtime with:
401
401
 
402
402
  ```py
403
- import supermemory_new
404
- print(supermemory_new.__version__)
403
+ import supermemory
404
+ print(supermemory.__version__)
405
405
  ```
406
406
 
407
407
  ## Requirements
@@ -0,0 +1,61 @@
1
+ supermemory/__init__.py,sha256=PDWpv0_OWO8lBFh21lQl5k0zrlBzcGf643CKXRoQgzM,2664
2
+ supermemory/_base_client.py,sha256=r19iD2PFXhH75y9v6TNYPwd5NdYjZj3shFhuUnHZqlU,66720
3
+ supermemory/_client.py,sha256=2KcNz77blgIaQddenKFBrWXUqBG7IlP4vGuVYTix5bk,16890
4
+ supermemory/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
+ supermemory/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
+ supermemory/_exceptions.py,sha256=5nnX7W8L_eA6LkX3SBl7csJy5d9QEcDqRVuwDq8wVh8,3230
7
+ supermemory/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
8
+ supermemory/_models.py,sha256=G1vczEodX0vUySeVKbF-mbzlaObNL1oVAYH4c65agRk,29131
9
+ supermemory/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
10
+ supermemory/_resource.py,sha256=_wuaB1exMy-l-qqdJJdTv15hH5qBSN2Rj9CFwjXTZJU,1130
11
+ supermemory/_response.py,sha256=Yh869-U8INkojKZHFsNw69z5Y2BrK2isgRJ8mifEURM,28848
12
+ supermemory/_streaming.py,sha256=MGbosxSTqq0_JG52hvH2Z-Mr_Y95ws5UdFw77_iYukc,10120
13
+ supermemory/_types.py,sha256=ohS8PFDHBFM-0ua6YsUlS55BPHft3xY6DhiIKaYrlN0,6202
14
+ supermemory/_version.py,sha256=79FUeO8EJjNMKucNYtgOOjULj-LJFbakmQ_DjwzaOHs,172
15
+ supermemory/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ supermemory/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
17
+ supermemory/_utils/_logs.py,sha256=iceljYaEUb4Q4q1SgbSzwSrlJA64ISbaccczzZ8Z9Vg,789
18
+ supermemory/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
19
+ supermemory/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
20
+ supermemory/_utils/_resources_proxy.py,sha256=9MqlmhIEoyeVraNz90vnq1pS6EOxSqvYVlVK-CvLMmQ,614
21
+ supermemory/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
22
+ supermemory/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
23
+ supermemory/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWkdj88,15617
24
+ supermemory/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,4602
25
+ supermemory/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
26
+ supermemory/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
27
+ supermemory/resources/__init__.py,sha256=c1dal-ngMY7gwIf9PDPapYx6rHi670pREX5t3_d6298,2019
28
+ supermemory/resources/connections.py,sha256=-DabGIc4_3qFvFRmBOdHGtu4NkaUOaYz3y50CjpqMKQ,33199
29
+ supermemory/resources/memories.py,sha256=CfPV7qua5Rn-Yhf-UbaNpoSctQK1o86IJqoDzSTRcUo,26349
30
+ supermemory/resources/search.py,sha256=9JIv99mPiAlWCEZ41QxAzN4bteCwyo6UCEL3Our-flo,12546
31
+ supermemory/resources/settings.py,sha256=tLM7ya1CEYI_TO8DMP_KLxXHqsxOeq3R3Xs4CQnvPuU,11855
32
+ supermemory/types/__init__.py,sha256=ufEnLZv6LSfCqlxj6R7HDKYZvbnDQdYMpMBTfY8cj6c,2351
33
+ supermemory/types/connection_create_params.py,sha256=bYYKu3ns60PX6Mt34UQUpYwThB3SBZsKn5tW0c46DUM,630
34
+ supermemory/types/connection_create_response.py,sha256=i4sb0DSRs7wVVd8xDBOtr7vw-YbaeZ7MydlQLYvlvJs,468
35
+ supermemory/types/connection_delete_by_id_response.py,sha256=guD1vxqV2wiQnwnWCZSQH0z2HYXQOtvicRzouPVkHXA,243
36
+ supermemory/types/connection_delete_by_provider_params.py,sha256=VnVud6ADbvdYY37BqZ8T-s3wC4xuvbiztge96OuzigM,528
37
+ supermemory/types/connection_delete_by_provider_response.py,sha256=PgMQuSIhVFSF2LVa0FBei2bj3gyVRB7FyOi_-M-Rugc,255
38
+ supermemory/types/connection_get_by_id_response.py,sha256=IDJYDLxiuun1XiOdEnENe78zQIbM6YJy2IW3X7mStAA,614
39
+ supermemory/types/connection_get_by_tags_params.py,sha256=kPQfi7nrM3DbarVx8_Nlq20hVEqelPmfouizAZ6NHDY,504
40
+ supermemory/types/connection_get_by_tags_response.py,sha256=JLmGSgNS46arQgz8ohIPn8kphfG8HB5eMu7GPdJFqzI,618
41
+ supermemory/types/connection_import_params.py,sha256=HbMAE6vjmhpJk4shqa9d78hxh_q3J6hdST8GUKGEopM,488
42
+ supermemory/types/connection_list_documents_params.py,sha256=pXMe7sDpqSwBVjPsY2qyTep6rlnfnzE150WdY0-CnOU,500
43
+ supermemory/types/connection_list_documents_response.py,sha256=0IdHufx0yErjfmoXYeY0KJ2QID9C-_58joyGEuu8gd4,682
44
+ supermemory/types/connection_list_params.py,sha256=E0thiUUlyGHeLmb-iAbat1vl8BOqaqCOPDjtYolKkng,482
45
+ supermemory/types/connection_list_response.py,sha256=ZwrRv6zICkn4-M-92ZgDZ2NiVHAEAJZKLZEcu_h_gO4,759
46
+ supermemory/types/memory_add_params.py,sha256=QG_aD0YXTJ8aSzwlKkv18nkrzl3asUakfFfR65mk9ss,1528
47
+ supermemory/types/memory_add_response.py,sha256=5lim8sVXM7WzG8tUuKORHEe2lJc6yVWvyjylzNsLGjw,219
48
+ supermemory/types/memory_get_response.py,sha256=sSCvX54IIoaVuifygi0IxiwHMKNNIGgg8eJJ-xu37BI,2850
49
+ supermemory/types/memory_list_params.py,sha256=nE4fnYdubdjbGy5-7BxmSms6owZZIbv8PegZxRRzwjA,914
50
+ supermemory/types/memory_list_response.py,sha256=Lq2ChggQ1YCFQLi2M9u61hxRwGf2ib3p9_X8mywJF78,2620
51
+ supermemory/types/memory_update_params.py,sha256=swEIF-CfcxWGzsiT8O_AbtzkyujMiafZpbi2GEXPuuw,1534
52
+ supermemory/types/memory_update_response.py,sha256=fvfO9lGM8xv2EUOQfOSxqig6fx6-ykq7syW69er_2ng,225
53
+ supermemory/types/search_execute_params.py,sha256=8JRtcQ7G1TmG9JW-f1XwNmvT1llM6FsPx0kkQN1Ellw,3130
54
+ supermemory/types/search_execute_response.py,sha256=iyKh6SHeInl8BYIlvPVWXhfHBjrO6AgWt-1E76Dk8xw,1295
55
+ supermemory/types/setting_get_response.py,sha256=WvgAb9zGMsMnAhLiYk6h5NBptnq0D06TnuoI4EJg5Ds,1648
56
+ supermemory/types/setting_update_params.py,sha256=KsreaS35v25aRKBY5vHna3hZ31U3b1Q5ruQLoM0gcyE,1710
57
+ supermemory/types/setting_update_response.py,sha256=F__RcFFWiiSw11IV8PsWn6POEb1crDwO8QwHEQToVuQ,1806
58
+ supermemory-3.0.0a22.dist-info/METADATA,sha256=cXD0ZTxSpLPOdni4Mx4iFvt-XElAYZov7cqLYbyojw8,14264
59
+ supermemory-3.0.0a22.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
60
+ supermemory-3.0.0a22.dist-info/licenses/LICENSE,sha256=M2NcpYEBpakciOULpWzo-xO2Lincf74gGwfaU00Sct0,11341
61
+ supermemory-3.0.0a22.dist-info/RECORD,,
@@ -1,60 +0,0 @@
1
- supermemory_new/__init__.py,sha256=vJ_zHRctUVIuetfD7Izx4xJtWX2I2x7KWJCTNEUsGhE,2676
2
- supermemory_new/_base_client.py,sha256=ac4Ewh_mPPBZRqodxI0Vi0XKADdpJnOD8XTvMi0zUMg,66724
3
- supermemory_new/_client.py,sha256=2KcNz77blgIaQddenKFBrWXUqBG7IlP4vGuVYTix5bk,16890
4
- supermemory_new/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
- supermemory_new/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
- supermemory_new/_exceptions.py,sha256=5nnX7W8L_eA6LkX3SBl7csJy5d9QEcDqRVuwDq8wVh8,3230
7
- supermemory_new/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
8
- supermemory_new/_models.py,sha256=G1vczEodX0vUySeVKbF-mbzlaObNL1oVAYH4c65agRk,29131
9
- supermemory_new/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
10
- supermemory_new/_resource.py,sha256=_wuaB1exMy-l-qqdJJdTv15hH5qBSN2Rj9CFwjXTZJU,1130
11
- supermemory_new/_response.py,sha256=eeakb78kSNha9ybvYHYWEaIQnY4vqWoUjyUUrHJG8gM,28864
12
- supermemory_new/_streaming.py,sha256=MGbosxSTqq0_JG52hvH2Z-Mr_Y95ws5UdFw77_iYukc,10120
13
- supermemory_new/_types.py,sha256=fNeozFqUS0Y6kr4ZCiV-Lxl0s9ltl-l6IkETfdQx3NA,6206
14
- supermemory_new/_version.py,sha256=kHG5r-DeMG96TLnqPqO3CR5SUtE6BquTLtWX0p_5j-M,176
15
- supermemory_new/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- supermemory_new/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
17
- supermemory_new/_utils/_logs.py,sha256=lzHhWp9VDelSwSGNWIkqO8CB4mBOYVjcCSZ7VFIIE3s,797
18
- supermemory_new/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
19
- supermemory_new/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
20
- supermemory_new/_utils/_resources_proxy.py,sha256=kkXrtsLnl0X9xKNKuOovectHX8J0x8aU30kPlCtVWDE,634
21
- supermemory_new/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
22
- supermemory_new/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
23
- supermemory_new/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWkdj88,15617
24
- supermemory_new/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,4602
25
- supermemory_new/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
26
- supermemory_new/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
27
- supermemory_new/resources/__init__.py,sha256=c1dal-ngMY7gwIf9PDPapYx6rHi670pREX5t3_d6298,2019
28
- supermemory_new/resources/connections.py,sha256=fEE_dmDdAXQNud-sF317c-JRDl3wkR2wZOF5-8pWbGQ,29973
29
- supermemory_new/resources/memories.py,sha256=CfPV7qua5Rn-Yhf-UbaNpoSctQK1o86IJqoDzSTRcUo,26349
30
- supermemory_new/resources/search.py,sha256=9JIv99mPiAlWCEZ41QxAzN4bteCwyo6UCEL3Our-flo,12546
31
- supermemory_new/resources/settings.py,sha256=hzijwhQ9U_W5zDRbDjW27QdQU4CwqLkPRWkcALYSCok,12175
32
- supermemory_new/types/__init__.py,sha256=gOnWZ-msfXi1URKxYOHN2P57rjnCUCDHbpqaISjjuq0,2244
33
- supermemory_new/types/connection_create_params.py,sha256=bYYKu3ns60PX6Mt34UQUpYwThB3SBZsKn5tW0c46DUM,630
34
- supermemory_new/types/connection_create_response.py,sha256=i4sb0DSRs7wVVd8xDBOtr7vw-YbaeZ7MydlQLYvlvJs,468
35
- supermemory_new/types/connection_delete_by_provider_params.py,sha256=VnVud6ADbvdYY37BqZ8T-s3wC4xuvbiztge96OuzigM,528
36
- supermemory_new/types/connection_delete_by_provider_response.py,sha256=PgMQuSIhVFSF2LVa0FBei2bj3gyVRB7FyOi_-M-Rugc,255
37
- supermemory_new/types/connection_get_by_id_response.py,sha256=IDJYDLxiuun1XiOdEnENe78zQIbM6YJy2IW3X7mStAA,614
38
- supermemory_new/types/connection_get_by_tags_params.py,sha256=kPQfi7nrM3DbarVx8_Nlq20hVEqelPmfouizAZ6NHDY,504
39
- supermemory_new/types/connection_get_by_tags_response.py,sha256=JLmGSgNS46arQgz8ohIPn8kphfG8HB5eMu7GPdJFqzI,618
40
- supermemory_new/types/connection_import_params.py,sha256=HbMAE6vjmhpJk4shqa9d78hxh_q3J6hdST8GUKGEopM,488
41
- supermemory_new/types/connection_list_documents_params.py,sha256=pXMe7sDpqSwBVjPsY2qyTep6rlnfnzE150WdY0-CnOU,500
42
- supermemory_new/types/connection_list_documents_response.py,sha256=0IdHufx0yErjfmoXYeY0KJ2QID9C-_58joyGEuu8gd4,682
43
- supermemory_new/types/connection_list_params.py,sha256=E0thiUUlyGHeLmb-iAbat1vl8BOqaqCOPDjtYolKkng,482
44
- supermemory_new/types/connection_list_response.py,sha256=ZwrRv6zICkn4-M-92ZgDZ2NiVHAEAJZKLZEcu_h_gO4,759
45
- supermemory_new/types/memory_add_params.py,sha256=QG_aD0YXTJ8aSzwlKkv18nkrzl3asUakfFfR65mk9ss,1528
46
- supermemory_new/types/memory_add_response.py,sha256=5lim8sVXM7WzG8tUuKORHEe2lJc6yVWvyjylzNsLGjw,219
47
- supermemory_new/types/memory_get_response.py,sha256=sSCvX54IIoaVuifygi0IxiwHMKNNIGgg8eJJ-xu37BI,2850
48
- supermemory_new/types/memory_list_params.py,sha256=nE4fnYdubdjbGy5-7BxmSms6owZZIbv8PegZxRRzwjA,914
49
- supermemory_new/types/memory_list_response.py,sha256=Lq2ChggQ1YCFQLi2M9u61hxRwGf2ib3p9_X8mywJF78,2620
50
- supermemory_new/types/memory_update_params.py,sha256=swEIF-CfcxWGzsiT8O_AbtzkyujMiafZpbi2GEXPuuw,1534
51
- supermemory_new/types/memory_update_response.py,sha256=fvfO9lGM8xv2EUOQfOSxqig6fx6-ykq7syW69er_2ng,225
52
- supermemory_new/types/search_execute_params.py,sha256=8JRtcQ7G1TmG9JW-f1XwNmvT1llM6FsPx0kkQN1Ellw,3130
53
- supermemory_new/types/search_execute_response.py,sha256=iyKh6SHeInl8BYIlvPVWXhfHBjrO6AgWt-1E76Dk8xw,1295
54
- supermemory_new/types/setting_get_response.py,sha256=_CWSr9_-0alw57qSQOaMm-e_FsdXmxIRYhcmTMpdado,1789
55
- supermemory_new/types/setting_update_params.py,sha256=EWbqdSsoTJohQ1nbEbBdAvtR5co_hh7huH6XZ-t7MRM,1854
56
- supermemory_new/types/setting_update_response.py,sha256=Evd1U6QQDYyhD_hpKqS9k7ctvh0GNX4GHPdwBChVB44,1947
57
- supermemory-3.0.0a20.dist-info/METADATA,sha256=twVHyE1RZWtNM8_26LWKyNLxF4Bq9Wro3OWKwA7ggak,14348
58
- supermemory-3.0.0a20.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
59
- supermemory-3.0.0a20.dist-info/licenses/LICENSE,sha256=M2NcpYEBpakciOULpWzo-xO2Lincf74gGwfaU00Sct0,11341
60
- supermemory-3.0.0a20.dist-info/RECORD,,
@@ -1,4 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- __title__ = "supermemory_new"
4
- __version__ = "3.0.0-alpha.20" # x-release-please-version
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes