supermemory 0.1.0a1__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.
Files changed (47) hide show
  1. supermemory/__init__.py +94 -0
  2. supermemory/_base_client.py +1943 -0
  3. supermemory/_client.py +427 -0
  4. supermemory/_compat.py +219 -0
  5. supermemory/_constants.py +14 -0
  6. supermemory/_exceptions.py +108 -0
  7. supermemory/_files.py +123 -0
  8. supermemory/_models.py +803 -0
  9. supermemory/_qs.py +150 -0
  10. supermemory/_resource.py +43 -0
  11. supermemory/_response.py +832 -0
  12. supermemory/_streaming.py +333 -0
  13. supermemory/_types.py +217 -0
  14. supermemory/_utils/__init__.py +57 -0
  15. supermemory/_utils/_logs.py +25 -0
  16. supermemory/_utils/_proxy.py +62 -0
  17. supermemory/_utils/_reflection.py +42 -0
  18. supermemory/_utils/_streams.py +12 -0
  19. supermemory/_utils/_sync.py +86 -0
  20. supermemory/_utils/_transform.py +447 -0
  21. supermemory/_utils/_typing.py +151 -0
  22. supermemory/_utils/_utils.py +422 -0
  23. supermemory/_version.py +4 -0
  24. supermemory/lib/.keep +4 -0
  25. supermemory/py.typed +0 -0
  26. supermemory/resources/__init__.py +61 -0
  27. supermemory/resources/connection.py +267 -0
  28. supermemory/resources/memory.py +487 -0
  29. supermemory/resources/search.py +254 -0
  30. supermemory/resources/settings.py +195 -0
  31. supermemory/types/__init__.py +16 -0
  32. supermemory/types/connection_create_params.py +15 -0
  33. supermemory/types/connection_create_response.py +13 -0
  34. supermemory/types/memory_create_params.py +23 -0
  35. supermemory/types/memory_create_response.py +11 -0
  36. supermemory/types/memory_delete_response.py +9 -0
  37. supermemory/types/memory_get_response.py +27 -0
  38. supermemory/types/memory_list_params.py +24 -0
  39. supermemory/types/memory_list_response.py +59 -0
  40. supermemory/types/search_execute_params.py +56 -0
  41. supermemory/types/search_execute_response.py +52 -0
  42. supermemory/types/setting_update_params.py +30 -0
  43. supermemory/types/setting_update_response.py +35 -0
  44. supermemory-0.1.0a1.dist-info/METADATA +376 -0
  45. supermemory-0.1.0a1.dist-info/RECORD +47 -0
  46. supermemory-0.1.0a1.dist-info/WHEEL +4 -0
  47. supermemory-0.1.0a1.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,94 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from . import types
4
+ from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
5
+ from ._utils import file_from_path
6
+ from ._client import (
7
+ Client,
8
+ Stream,
9
+ Timeout,
10
+ Transport,
11
+ AsyncClient,
12
+ AsyncStream,
13
+ Supermemory,
14
+ RequestOptions,
15
+ AsyncSupermemory,
16
+ )
17
+ from ._models import BaseModel
18
+ from ._version import __title__, __version__
19
+ from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
20
+ from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
21
+ from ._exceptions import (
22
+ APIError,
23
+ ConflictError,
24
+ NotFoundError,
25
+ APIStatusError,
26
+ RateLimitError,
27
+ APITimeoutError,
28
+ BadRequestError,
29
+ SupermemoryError,
30
+ APIConnectionError,
31
+ AuthenticationError,
32
+ InternalServerError,
33
+ PermissionDeniedError,
34
+ UnprocessableEntityError,
35
+ APIResponseValidationError,
36
+ )
37
+ from ._base_client import DefaultHttpxClient, DefaultAsyncHttpxClient
38
+ from ._utils._logs import setup_logging as _setup_logging
39
+
40
+ __all__ = [
41
+ "types",
42
+ "__version__",
43
+ "__title__",
44
+ "NoneType",
45
+ "Transport",
46
+ "ProxiesTypes",
47
+ "NotGiven",
48
+ "NOT_GIVEN",
49
+ "Omit",
50
+ "SupermemoryError",
51
+ "APIError",
52
+ "APIStatusError",
53
+ "APITimeoutError",
54
+ "APIConnectionError",
55
+ "APIResponseValidationError",
56
+ "BadRequestError",
57
+ "AuthenticationError",
58
+ "PermissionDeniedError",
59
+ "NotFoundError",
60
+ "ConflictError",
61
+ "UnprocessableEntityError",
62
+ "RateLimitError",
63
+ "InternalServerError",
64
+ "Timeout",
65
+ "RequestOptions",
66
+ "Client",
67
+ "AsyncClient",
68
+ "Stream",
69
+ "AsyncStream",
70
+ "Supermemory",
71
+ "AsyncSupermemory",
72
+ "file_from_path",
73
+ "BaseModel",
74
+ "DEFAULT_TIMEOUT",
75
+ "DEFAULT_MAX_RETRIES",
76
+ "DEFAULT_CONNECTION_LIMITS",
77
+ "DefaultHttpxClient",
78
+ "DefaultAsyncHttpxClient",
79
+ ]
80
+
81
+ _setup_logging()
82
+
83
+ # Update the __module__ attribute for exported symbols so that
84
+ # error messages point to this module instead of the module
85
+ # it was originally defined in, e.g.
86
+ # supermemory._exceptions.NotFoundError -> supermemory.NotFoundError
87
+ __locals = locals()
88
+ for __name in __all__:
89
+ if not __name.startswith("__"):
90
+ try:
91
+ __locals[__name].__module__ = "supermemory"
92
+ except (TypeError, AttributeError):
93
+ # Some of our exported symbols are builtins which we can't set attributes for.
94
+ pass