supermemory 3.0.0a24__tar.gz → 3.13.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.
Files changed (149) hide show
  1. supermemory-3.13.0/.release-please-manifest.json +3 -0
  2. supermemory-3.13.0/CHANGELOG.md +377 -0
  3. {supermemory-3.0.0a24 → supermemory-3.13.0}/PKG-INFO +63 -19
  4. {supermemory-3.0.0a24 → supermemory-3.13.0}/README.md +59 -15
  5. supermemory-3.13.0/api.md +127 -0
  6. {supermemory-3.0.0a24 → supermemory-3.13.0}/pyproject.toml +71 -13
  7. {supermemory-3.0.0a24 → supermemory-3.13.0}/requirements-dev.lock +65 -51
  8. {supermemory-3.0.0a24 → supermemory-3.13.0}/requirements.lock +23 -19
  9. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/__init__.py +3 -1
  10. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_base_client.py +20 -14
  11. supermemory-3.13.0/src/supermemory/_client.py +847 -0
  12. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_compat.py +48 -48
  13. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_files.py +1 -1
  14. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_models.py +87 -59
  15. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_qs.py +7 -7
  16. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_streaming.py +12 -12
  17. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_types.py +54 -12
  18. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_utils/__init__.py +9 -2
  19. supermemory-3.13.0/src/supermemory/_utils/_compat.py +45 -0
  20. supermemory-3.13.0/src/supermemory/_utils/_datetime_parse.py +136 -0
  21. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_utils/_sync.py +3 -31
  22. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_utils/_transform.py +13 -3
  23. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_utils/_typing.py +6 -1
  24. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_utils/_utils.py +5 -6
  25. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_version.py +1 -1
  26. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/resources/__init__.py +14 -0
  27. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/resources/connections.py +260 -70
  28. supermemory-3.13.0/src/supermemory/resources/documents.py +1132 -0
  29. supermemory-3.13.0/src/supermemory/resources/memories.py +1097 -0
  30. supermemory-3.13.0/src/supermemory/resources/search.py +671 -0
  31. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/resources/settings.py +47 -31
  32. supermemory-3.13.0/src/supermemory/types/__init__.py +64 -0
  33. supermemory-3.13.0/src/supermemory/types/add_response.py +13 -0
  34. supermemory-3.13.0/src/supermemory/types/client_add_params.py +36 -0
  35. supermemory-3.13.0/src/supermemory/types/client_profile_params.py +21 -0
  36. supermemory-3.13.0/src/supermemory/types/connection_configure_params.py +12 -0
  37. supermemory-3.13.0/src/supermemory/types/connection_configure_response.py +17 -0
  38. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_create_params.py +3 -2
  39. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_delete_by_provider_params.py +2 -2
  40. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_get_by_id_response.py +2 -3
  41. supermemory-3.0.0a24/src/supermemory/types/connection_get_by_tags_params.py → supermemory-3.13.0/src/supermemory/types/connection_get_by_tag_params.py +4 -4
  42. supermemory-3.0.0a24/src/supermemory/types/connection_get_by_tags_response.py → supermemory-3.13.0/src/supermemory/types/connection_get_by_tag_response.py +4 -5
  43. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_import_params.py +2 -2
  44. supermemory-3.13.0/src/supermemory/types/connection_import_response.py +7 -0
  45. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_list_documents_params.py +2 -2
  46. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_list_params.py +2 -2
  47. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_list_response.py +2 -3
  48. supermemory-3.13.0/src/supermemory/types/connection_resources_params.py +13 -0
  49. supermemory-3.13.0/src/supermemory/types/connection_resources_response.py +13 -0
  50. supermemory-3.13.0/src/supermemory/types/document_add_params.py +36 -0
  51. supermemory-3.13.0/src/supermemory/types/document_add_response.py +13 -0
  52. supermemory-3.13.0/src/supermemory/types/document_batch_add_params.py +84 -0
  53. supermemory-3.13.0/src/supermemory/types/document_batch_add_response.py +19 -0
  54. supermemory-3.13.0/src/supermemory/types/document_delete_bulk_params.py +18 -0
  55. supermemory-3.13.0/src/supermemory/types/document_delete_bulk_response.py +37 -0
  56. supermemory-3.13.0/src/supermemory/types/document_get_response.py +106 -0
  57. supermemory-3.13.0/src/supermemory/types/document_list_params.py +3839 -0
  58. supermemory-3.13.0/src/supermemory/types/document_list_processing_response.py +75 -0
  59. supermemory-3.13.0/src/supermemory/types/document_list_response.py +99 -0
  60. supermemory-3.13.0/src/supermemory/types/document_update_params.py +55 -0
  61. supermemory-3.13.0/src/supermemory/types/document_update_response.py +13 -0
  62. supermemory-3.13.0/src/supermemory/types/document_upload_file_params.py +50 -0
  63. supermemory-3.13.0/src/supermemory/types/document_upload_file_response.py +13 -0
  64. supermemory-3.13.0/src/supermemory/types/memory_add_params.py +36 -0
  65. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/memory_add_response.py +2 -0
  66. supermemory-3.13.0/src/supermemory/types/memory_forget_params.py +26 -0
  67. supermemory-3.13.0/src/supermemory/types/memory_forget_response.py +15 -0
  68. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/memory_get_response.py +28 -25
  69. supermemory-3.13.0/src/supermemory/types/memory_list_params.py +3839 -0
  70. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/memory_list_response.py +29 -21
  71. supermemory-3.13.0/src/supermemory/types/memory_update_memory_params.py +31 -0
  72. supermemory-3.13.0/src/supermemory/types/memory_update_memory_response.py +31 -0
  73. supermemory-3.13.0/src/supermemory/types/memory_update_params.py +55 -0
  74. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/memory_update_response.py +2 -0
  75. supermemory-3.13.0/src/supermemory/types/memory_upload_file_params.py +50 -0
  76. supermemory-3.13.0/src/supermemory/types/memory_upload_file_response.py +13 -0
  77. supermemory-3.13.0/src/supermemory/types/profile_response.py +37 -0
  78. supermemory-3.13.0/src/supermemory/types/search_documents_params.py +3880 -0
  79. supermemory-3.13.0/src/supermemory/types/search_documents_response.py +62 -0
  80. supermemory-3.13.0/src/supermemory/types/search_execute_params.py +3880 -0
  81. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/search_execute_response.py +7 -3
  82. supermemory-3.13.0/src/supermemory/types/search_memories_params.py +3876 -0
  83. supermemory-3.13.0/src/supermemory/types/search_memories_response.py +151 -0
  84. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/setting_get_response.py +8 -0
  85. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/setting_update_params.py +8 -0
  86. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/setting_update_response.py +8 -0
  87. supermemory-3.13.0/tests/api_resources/test_client.py +202 -0
  88. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/api_resources/test_connections.py +285 -87
  89. supermemory-3.13.0/tests/api_resources/test_documents.py +899 -0
  90. supermemory-3.13.0/tests/api_resources/test_memories.py +820 -0
  91. supermemory-3.13.0/tests/api_resources/test_search.py +422 -0
  92. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/api_resources/test_settings.py +22 -14
  93. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_client.py +230 -231
  94. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_models.py +28 -28
  95. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_transform.py +17 -10
  96. supermemory-3.13.0/tests/test_utils/test_datetime_parse.py +110 -0
  97. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/utils.py +13 -5
  98. supermemory-3.0.0a24/.release-please-manifest.json +0 -3
  99. supermemory-3.0.0a24/CHANGELOG.md +0 -101
  100. supermemory-3.0.0a24/api.md +0 -72
  101. supermemory-3.0.0a24/mypy.ini +0 -50
  102. supermemory-3.0.0a24/src/supermemory/_client.py +0 -427
  103. supermemory-3.0.0a24/src/supermemory/resources/memories.py +0 -669
  104. supermemory-3.0.0a24/src/supermemory/resources/search.py +0 -300
  105. supermemory-3.0.0a24/src/supermemory/types/__init__.py +0 -31
  106. supermemory-3.0.0a24/src/supermemory/types/memory_add_params.py +0 -46
  107. supermemory-3.0.0a24/src/supermemory/types/memory_list_params.py +0 -34
  108. supermemory-3.0.0a24/src/supermemory/types/memory_update_params.py +0 -46
  109. supermemory-3.0.0a24/src/supermemory/types/search_execute_params.py +0 -93
  110. supermemory-3.0.0a24/tests/api_resources/test_memories.py +0 -493
  111. supermemory-3.0.0a24/tests/api_resources/test_search.py +0 -164
  112. {supermemory-3.0.0a24 → supermemory-3.13.0}/.gitignore +0 -0
  113. {supermemory-3.0.0a24 → supermemory-3.13.0}/CONTRIBUTING.md +0 -0
  114. {supermemory-3.0.0a24 → supermemory-3.13.0}/LICENSE +0 -0
  115. {supermemory-3.0.0a24 → supermemory-3.13.0}/SECURITY.md +0 -0
  116. {supermemory-3.0.0a24 → supermemory-3.13.0}/bin/check-release-environment +0 -0
  117. {supermemory-3.0.0a24 → supermemory-3.13.0}/bin/publish-pypi +0 -0
  118. {supermemory-3.0.0a24 → supermemory-3.13.0}/examples/.keep +0 -0
  119. {supermemory-3.0.0a24 → supermemory-3.13.0}/noxfile.py +0 -0
  120. {supermemory-3.0.0a24 → supermemory-3.13.0}/release-please-config.json +0 -0
  121. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_constants.py +0 -0
  122. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_exceptions.py +0 -0
  123. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_resource.py +0 -0
  124. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_response.py +0 -0
  125. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_utils/_logs.py +0 -0
  126. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_utils/_proxy.py +0 -0
  127. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_utils/_reflection.py +0 -0
  128. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
  129. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/_utils/_streams.py +0 -0
  130. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/lib/.keep +0 -0
  131. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/py.typed +0 -0
  132. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_create_response.py +0 -0
  133. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
  134. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
  135. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
  136. {supermemory-3.0.0a24 → supermemory-3.13.0}/src/supermemory_new/lib/.keep +0 -0
  137. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/__init__.py +0 -0
  138. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/api_resources/__init__.py +0 -0
  139. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/conftest.py +0 -0
  140. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/sample_file.txt +0 -0
  141. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_deepcopy.py +0 -0
  142. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_extract_files.py +0 -0
  143. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_files.py +0 -0
  144. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_qs.py +0 -0
  145. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_required_args.py +0 -0
  146. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_response.py +0 -0
  147. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_streaming.py +0 -0
  148. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_utils/test_proxy.py +0 -0
  149. {supermemory-3.0.0a24 → supermemory-3.13.0}/tests/test_utils/test_typing.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "3.13.0"
3
+ }
@@ -0,0 +1,377 @@
1
+ # Changelog
2
+
3
+ ## 3.13.0 (2025-12-29)
4
+
5
+ Full Changelog: [v3.12.1...v3.13.0](https://github.com/supermemoryai/python-sdk/compare/v3.12.1...v3.13.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([94d92d9](https://github.com/supermemoryai/python-sdk/commit/94d92d978d3c7e53d0ad1e8704845a105733b95c))
10
+
11
+ ## 3.12.1 (2025-12-19)
12
+
13
+ Full Changelog: [v3.12.0...v3.12.1](https://github.com/supermemoryai/python-sdk/compare/v3.12.0...v3.12.1)
14
+
15
+ ### Chores
16
+
17
+ * **internal:** add `--fix` argument to lint script ([43c4206](https://github.com/supermemoryai/python-sdk/commit/43c42067ce474eacac435fd686ff8f6bb1d159d1))
18
+
19
+ ## 3.12.0 (2025-12-18)
20
+
21
+ Full Changelog: [v3.11.1...v3.12.0](https://github.com/supermemoryai/python-sdk/compare/v3.11.1...v3.12.0)
22
+
23
+ ### Features
24
+
25
+ * **api:** api update ([928291a](https://github.com/supermemoryai/python-sdk/commit/928291a1778a0abaecfa72f0d244af3aad03e8c1))
26
+
27
+ ## 3.11.1 (2025-12-18)
28
+
29
+ Full Changelog: [v3.11.0...v3.11.1](https://github.com/supermemoryai/python-sdk/compare/v3.11.0...v3.11.1)
30
+
31
+ ### Bug Fixes
32
+
33
+ * use async_to_httpx_files in patch method ([aa13c3d](https://github.com/supermemoryai/python-sdk/commit/aa13c3d8760b95b308fe785a9a022375c8021379))
34
+
35
+
36
+ ### Chores
37
+
38
+ * **internal:** add missing files argument to base client ([8c1dda0](https://github.com/supermemoryai/python-sdk/commit/8c1dda0fc98ab035e884fe78d3025ec69f04cc82))
39
+ * speedup initial import ([088bf48](https://github.com/supermemoryai/python-sdk/commit/088bf4882131b61f629bb6bc2a78c872263d5712))
40
+
41
+ ## 3.11.0 (2025-12-11)
42
+
43
+ Full Changelog: [v3.10.0...v3.11.0](https://github.com/supermemoryai/python-sdk/compare/v3.10.0...v3.11.0)
44
+
45
+ ### Features
46
+
47
+ * **api:** api update ([b4b239e](https://github.com/supermemoryai/python-sdk/commit/b4b239ef02d6c8018d761a2d660cd2182a10dde8))
48
+
49
+ ## 3.10.0 (2025-12-10)
50
+
51
+ Full Changelog: [v3.9.0...v3.10.0](https://github.com/supermemoryai/python-sdk/compare/v3.9.0...v3.10.0)
52
+
53
+ ### Features
54
+
55
+ * **api:** api update ([4b30459](https://github.com/supermemoryai/python-sdk/commit/4b3045968d0fccd106e87a1aa3f4c7c49a1475fe))
56
+ * **api:** api update ([8225250](https://github.com/supermemoryai/python-sdk/commit/822525089de88691c334f32b8ae3bf71096894e9))
57
+ * **api:** manual updates ([3691dfd](https://github.com/supermemoryai/python-sdk/commit/3691dfd45b9c8c15e8d318adc4b79e8c8ae9ed27))
58
+ * **api:** manual updates ([be8efa6](https://github.com/supermemoryai/python-sdk/commit/be8efa6ea1c7fdb58428741e7938540e266cbdc2))
59
+ * **api:** manual updates ([094162f](https://github.com/supermemoryai/python-sdk/commit/094162f52b3eba730f85176acfb5b5f34267449f))
60
+ * **api:** manual updates ([13a8b89](https://github.com/supermemoryai/python-sdk/commit/13a8b89e35e60356537d1c59c6721043e45d7577))
61
+ * **api:** manual updates ([acee529](https://github.com/supermemoryai/python-sdk/commit/acee529be2cdc01a6452cf3981575ece4905465a))
62
+ * **api:** manual updates ([ca75227](https://github.com/supermemoryai/python-sdk/commit/ca75227ff922f6d25d4a12e045066fe6545454af))
63
+
64
+ ## 3.9.0 (2025-12-09)
65
+
66
+ Full Changelog: [v3.8.0...v3.9.0](https://github.com/supermemoryai/python-sdk/compare/v3.8.0...v3.9.0)
67
+
68
+ ### Features
69
+
70
+ * **api:** api update ([3042cbf](https://github.com/supermemoryai/python-sdk/commit/3042cbfd221d52291480c6df1c1fca40eb97a61f))
71
+ * **api:** manual updates ([96b34d0](https://github.com/supermemoryai/python-sdk/commit/96b34d0a371e0d9c9866e1dbbfd70329d9400850))
72
+
73
+
74
+ ### Bug Fixes
75
+
76
+ * ensure streams are always closed ([a1403da](https://github.com/supermemoryai/python-sdk/commit/a1403da98836ac4215ee81f168ff044dcd83fc83))
77
+ * **types:** allow pyright to infer TypedDict types within SequenceNotStr ([4c1365d](https://github.com/supermemoryai/python-sdk/commit/4c1365d2bc02b2d81eb99ef93ac56f1f1b6aba3c))
78
+
79
+
80
+ ### Chores
81
+
82
+ * add missing docstrings ([bdb32bc](https://github.com/supermemoryai/python-sdk/commit/bdb32bc4a13ae9a73409f827082a1c5637dc9860))
83
+ * **deps:** mypy 1.18.1 has a regression, pin to 1.17 ([2fc3d2a](https://github.com/supermemoryai/python-sdk/commit/2fc3d2a92410192a31bb1c4a7b85094c2ea55f4a))
84
+ * **docs:** use environment variables for authentication in code snippets ([442b9fd](https://github.com/supermemoryai/python-sdk/commit/442b9fdc7e8b7b07dc82cc087ffbc6fbe60bd12f))
85
+ * update lockfile ([37b9f74](https://github.com/supermemoryai/python-sdk/commit/37b9f74097fdc2e3395714ccb72c0f470d162ac4))
86
+
87
+ ## 3.8.0 (2025-11-27)
88
+
89
+ Full Changelog: [v3.7.0...v3.8.0](https://github.com/supermemoryai/python-sdk/compare/v3.7.0...v3.8.0)
90
+
91
+ ### Features
92
+
93
+ * **api:** api update ([a6a18ce](https://github.com/supermemoryai/python-sdk/commit/a6a18ce48bb1f1f80f4cfe6a9c3b0c9ff4f9fbcb))
94
+
95
+ ## 3.7.0 (2025-11-26)
96
+
97
+ Full Changelog: [v3.6.0...v3.7.0](https://github.com/supermemoryai/python-sdk/compare/v3.6.0...v3.7.0)
98
+
99
+ ### Features
100
+
101
+ * **api:** manual updates ([ee2daac](https://github.com/supermemoryai/python-sdk/commit/ee2daac3a0c1a085971a71ef9605d1d4f6fdb3f7))
102
+ * **api:** manual updates ([89a6e6d](https://github.com/supermemoryai/python-sdk/commit/89a6e6d1220cd8fd2c38d1c54f412650913a9184))
103
+ * **api:** manual updates ([7f0b5aa](https://github.com/supermemoryai/python-sdk/commit/7f0b5aa308004d68b5620f6956068e0c7fbc20da))
104
+ * **api:** manual updates ([3f2f954](https://github.com/supermemoryai/python-sdk/commit/3f2f954a542c4f2e6fc7d6e204c7e44fe640ec7d))
105
+ * **api:** manual updates ([8680e72](https://github.com/supermemoryai/python-sdk/commit/8680e723f9bd9cdc930ed33914557dc60d5242c0))
106
+
107
+ ## 3.6.0 (2025-11-26)
108
+
109
+ Full Changelog: [v3.5.0...v3.6.0](https://github.com/supermemoryai/python-sdk/compare/v3.5.0...v3.6.0)
110
+
111
+ ### Features
112
+
113
+ * **api:** manual updates ([a46347c](https://github.com/supermemoryai/python-sdk/commit/a46347c8640b2442d0f8ffbe4c5f948a9c5edb1b))
114
+
115
+ ## 3.5.0 (2025-11-26)
116
+
117
+ Full Changelog: [v3.4.0...v3.5.0](https://github.com/supermemoryai/python-sdk/compare/v3.4.0...v3.5.0)
118
+
119
+ ### Features
120
+
121
+ * **api:** api update ([a7749c9](https://github.com/supermemoryai/python-sdk/commit/a7749c97703d995ed97ba1a5c09fef9e5804bea7))
122
+ * **api:** api update ([0972c10](https://github.com/supermemoryai/python-sdk/commit/0972c10cebf6bab936371dfa4c5ad87dad1f5496))
123
+ * **api:** api update ([e29337c](https://github.com/supermemoryai/python-sdk/commit/e29337c11f26831d69e6f830542e5db708760b62))
124
+ * **api:** api update ([a776c2c](https://github.com/supermemoryai/python-sdk/commit/a776c2cfcf82ee239c707b9065bd3313755388fa))
125
+ * **api:** api update ([4e6c8e6](https://github.com/supermemoryai/python-sdk/commit/4e6c8e61653c99c733f862cbb5e08478159d082b))
126
+ * **api:** manual updates ([c780b0f](https://github.com/supermemoryai/python-sdk/commit/c780b0fc9afb857dd55613d5b67cd7849b68973c))
127
+
128
+
129
+ ### Bug Fixes
130
+
131
+ * **client:** close streams without requiring full consumption ([1155c43](https://github.com/supermemoryai/python-sdk/commit/1155c4396baa8681dcb72f6b53f90c42052fac6f))
132
+ * compat with Python 3.14 ([d42dd9c](https://github.com/supermemoryai/python-sdk/commit/d42dd9c177546142c2d87484e1bb435401cfaac8))
133
+ * **compat:** update signatures of `model_dump` and `model_dump_json` for Pydantic v1 ([447f54f](https://github.com/supermemoryai/python-sdk/commit/447f54f0f7846283b4033275fe2042f6dff66a2c))
134
+
135
+
136
+ ### Chores
137
+
138
+ * add Python 3.14 classifier and testing ([8802bdd](https://github.com/supermemoryai/python-sdk/commit/8802bdd0529ef3759bf1b8547ce2405c8164d0e9))
139
+ * bump `httpx-aiohttp` version to 0.1.9 ([6ad4b61](https://github.com/supermemoryai/python-sdk/commit/6ad4b613df1d4177fabeaf0b67d984e195af8594))
140
+ * **internal/tests:** avoid race condition with implicit client cleanup ([7bad0fc](https://github.com/supermemoryai/python-sdk/commit/7bad0fc387de50f25bec0e3a7ecca2b732294460))
141
+ * **internal:** detect missing future annotations with ruff ([6085dd3](https://github.com/supermemoryai/python-sdk/commit/6085dd39d67398eec25d5b9bcc5371f4810622c8))
142
+ * **internal:** grammar fix (it's -> its) ([329768e](https://github.com/supermemoryai/python-sdk/commit/329768ed8cec31b2ef510409b9f67a3f800a286b))
143
+ * **package:** drop Python 3.8 support ([9feb588](https://github.com/supermemoryai/python-sdk/commit/9feb588a112036bd5de9041f775232f7c1384e3f))
144
+
145
+ ## 3.4.0 (2025-10-07)
146
+
147
+ Full Changelog: [v3.3.0...v3.4.0](https://github.com/supermemoryai/python-sdk/compare/v3.3.0...v3.4.0)
148
+
149
+ ### Features
150
+
151
+ * **api:** api update ([ad11246](https://github.com/supermemoryai/python-sdk/commit/ad112460d7aa5642895c4dec8b9c4e1993c01635))
152
+ * **api:** api update ([0a01f62](https://github.com/supermemoryai/python-sdk/commit/0a01f623aa5daf19192259bee921e65acd583244))
153
+ * **api:** api update ([91585de](https://github.com/supermemoryai/python-sdk/commit/91585de6396d6529c2d15b2b2c4db481e72f32d0))
154
+ * **api:** api update ([2a12ab8](https://github.com/supermemoryai/python-sdk/commit/2a12ab834b2748eb30a6bad5ea6ce6e53644334e))
155
+ * **api:** manual updates ([71bae29](https://github.com/supermemoryai/python-sdk/commit/71bae2938f3c523b3bb5f814e96937f067f454f5))
156
+
157
+ ## 3.3.0 (2025-09-21)
158
+
159
+ Full Changelog: [v3.2.0...v3.3.0](https://github.com/supermemoryai/python-sdk/compare/v3.2.0...v3.3.0)
160
+
161
+ ### Features
162
+
163
+ * **api:** api update ([fd86dc5](https://github.com/supermemoryai/python-sdk/commit/fd86dc5ee1a83000113c7dcc8ba678af94d825bd))
164
+
165
+ ## 3.2.0 (2025-09-21)
166
+
167
+ Full Changelog: [v3.1.0...v3.2.0](https://github.com/supermemoryai/python-sdk/compare/v3.1.0...v3.2.0)
168
+
169
+ ### Features
170
+
171
+ * **api:** api update ([82b35f0](https://github.com/supermemoryai/python-sdk/commit/82b35f0447a67d089304d57f41d1d1527f6da7fb))
172
+
173
+ ## 3.1.0 (2025-09-20)
174
+
175
+ Full Changelog: [v3.0.0-alpha.30...v3.1.0](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.30...v3.1.0)
176
+
177
+ ### Features
178
+
179
+ * **api:** api update ([19c5dd3](https://github.com/supermemoryai/python-sdk/commit/19c5dd364b496d9a7858e1764000aba6d71613c6))
180
+ * **api:** api update ([3082481](https://github.com/supermemoryai/python-sdk/commit/30824814233753584a89c56a2efb69d72995be02))
181
+ * **api:** manual updates ([e92cb27](https://github.com/supermemoryai/python-sdk/commit/e92cb27550c2190a6804a2865ae359ff79fa1866))
182
+ * **api:** manual updates ([251fdf1](https://github.com/supermemoryai/python-sdk/commit/251fdf116f5f1b0c1ecfb74bef94ba08f7921dca))
183
+
184
+
185
+ ### Chores
186
+
187
+ * do not install brew dependencies in ./scripts/bootstrap by default ([fb748cf](https://github.com/supermemoryai/python-sdk/commit/fb748cf2375b1ce1eddd2584503e81d3b8386443))
188
+ * **internal:** update pydantic dependency ([8c480f7](https://github.com/supermemoryai/python-sdk/commit/8c480f70cf3d0e55c4c5bc3b77d83bd6b21c4fdf))
189
+ * **types:** change optional parameter type from NotGiven to Omit ([3031781](https://github.com/supermemoryai/python-sdk/commit/30317810d7089dbdf59f5e143bd66b1a0495b2b6))
190
+
191
+ ## 3.0.0-alpha.30 (2025-09-15)
192
+
193
+ Full Changelog: [v3.0.0-alpha.29...v3.0.0-alpha.30](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.29...v3.0.0-alpha.30)
194
+
195
+ ### Features
196
+
197
+ * **api:** api update ([b7df28e](https://github.com/supermemoryai/python-sdk/commit/b7df28ec025c70d7b8e1544aa1ef0262c0be8a03))
198
+ * **api:** api update ([54cf9c1](https://github.com/supermemoryai/python-sdk/commit/54cf9c13bf3ff378dd6a19a15c9e343e822ab99a))
199
+ * **api:** api update ([4812077](https://github.com/supermemoryai/python-sdk/commit/48120771b2476f2d2863a1614edc222e863ddde4))
200
+ * **api:** api update ([a4f4259](https://github.com/supermemoryai/python-sdk/commit/a4f425943298762bdfb7f3b0421f8d56d2e1473c))
201
+ * **api:** api update ([8412e4d](https://github.com/supermemoryai/python-sdk/commit/8412e4d06b0225fd3707a55b743c401d87b1c0aa))
202
+ * improve future compat with pydantic v3 ([70ea8b7](https://github.com/supermemoryai/python-sdk/commit/70ea8b7206b2e8db3d86f5a1674e7dd2f7a7e67b))
203
+ * **types:** replace List[str] with SequenceNotStr in params ([f4bfda3](https://github.com/supermemoryai/python-sdk/commit/f4bfda34d40ca947eae6a32ea323dafeddf51484))
204
+
205
+
206
+ ### Chores
207
+
208
+ * **internal:** add Sequence related utils ([d2b96ed](https://github.com/supermemoryai/python-sdk/commit/d2b96ed43577a3d046ffea7cbc87ba6b877beba7))
209
+ * **internal:** move mypy configurations to `pyproject.toml` file ([31832f5](https://github.com/supermemoryai/python-sdk/commit/31832f5046f7b6384c1bb506680319890e3a5194))
210
+ * **tests:** simplify `get_platform` test ([30d8e46](https://github.com/supermemoryai/python-sdk/commit/30d8e464a5d8ceb5cec41a6197c291962b78b0b5))
211
+
212
+ ## 3.0.0-alpha.29 (2025-08-27)
213
+
214
+ Full Changelog: [v3.0.0-alpha.28...v3.0.0-alpha.29](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.28...v3.0.0-alpha.29)
215
+
216
+ ### Features
217
+
218
+ * **api:** api update ([5c48767](https://github.com/supermemoryai/python-sdk/commit/5c48767f77b0daf362be422e6d2d8843c15692b3))
219
+ * **api:** api update ([8eb53ac](https://github.com/supermemoryai/python-sdk/commit/8eb53ac4b04fae2f656d82c2c36c01e6583a08e0))
220
+ * **api:** api update ([9194990](https://github.com/supermemoryai/python-sdk/commit/9194990dfbe4e8b9a3fe145095ae65c1cab1b342))
221
+ * **api:** api update ([be04a5c](https://github.com/supermemoryai/python-sdk/commit/be04a5cf50c9af30b04e43128a860a93305f401a))
222
+
223
+
224
+ ### Bug Fixes
225
+
226
+ * avoid newer type syntax ([cd791b9](https://github.com/supermemoryai/python-sdk/commit/cd791b97c02fe5728e54482097c846557ab0d555))
227
+
228
+
229
+ ### Chores
230
+
231
+ * **internal:** change ci workflow machines ([002a748](https://github.com/supermemoryai/python-sdk/commit/002a748ddf690fcaeab905c622fe598ddc0f6629))
232
+ * **internal:** update pyright exclude list ([41a59ff](https://github.com/supermemoryai/python-sdk/commit/41a59ff7fb26bd419f747265c00a99ad750833d0))
233
+
234
+ ## 3.0.0-alpha.28 (2025-08-24)
235
+
236
+ Full Changelog: [v3.0.0-alpha.27...v3.0.0-alpha.28](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.27...v3.0.0-alpha.28)
237
+
238
+ ### Features
239
+
240
+ * **api:** api update ([0745263](https://github.com/supermemoryai/python-sdk/commit/074526384ea43d5323feeb2101054e0515002169))
241
+
242
+ ## 3.0.0-alpha.27 (2025-08-24)
243
+
244
+ Full Changelog: [v3.0.0-alpha.26...v3.0.0-alpha.27](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.26...v3.0.0-alpha.27)
245
+
246
+ ### Features
247
+
248
+ * **api:** api update ([27dcd49](https://github.com/supermemoryai/python-sdk/commit/27dcd49c6bbf1c4c1bc11acc02c852a8849f158a))
249
+ * **api:** api update ([cf6d58b](https://github.com/supermemoryai/python-sdk/commit/cf6d58befc0f976222f875eb74594b64a4e36803))
250
+
251
+
252
+ ### Chores
253
+
254
+ * update github action ([65d9e06](https://github.com/supermemoryai/python-sdk/commit/65d9e06acc7a7cbabefb2625c4404848681c0e03))
255
+
256
+ ## 3.0.0-alpha.26 (2025-08-15)
257
+
258
+ Full Changelog: [v3.0.0-alpha.25...v3.0.0-alpha.26](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.25...v3.0.0-alpha.26)
259
+
260
+ ### Features
261
+
262
+ * **api:** manual updates ([c2623b2](https://github.com/supermemoryai/python-sdk/commit/c2623b2b645eefd7e2cbb5027eb5a46cee7b62eb))
263
+ * **api:** manual updates ([9e373ef](https://github.com/supermemoryai/python-sdk/commit/9e373ef0b585eb15cb04b95a1bab46c8c102970c))
264
+ * **api:** manual updates ([fa75aff](https://github.com/supermemoryai/python-sdk/commit/fa75affffb701259be14445da95c77a1cdde512b))
265
+
266
+ ## 3.0.0-alpha.25 (2025-08-15)
267
+
268
+ Full Changelog: [v3.0.0-alpha.24...v3.0.0-alpha.25](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.24...v3.0.0-alpha.25)
269
+
270
+ ### Features
271
+
272
+ * **api:** api update ([9bfc023](https://github.com/supermemoryai/python-sdk/commit/9bfc023373df244fa4d45c12ad31fe5ca2bddc8b))
273
+
274
+
275
+ ### Chores
276
+
277
+ * **internal:** codegen related update ([8df15a7](https://github.com/supermemoryai/python-sdk/commit/8df15a767ca5007ee34b4b7b1bc39e1961203c80))
278
+
279
+ ## 3.0.0-alpha.24 (2025-08-10)
280
+
281
+ Full Changelog: [v3.0.0-alpha.23...v3.0.0-alpha.24](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.23...v3.0.0-alpha.24)
282
+
283
+ ### Features
284
+
285
+ * **api:** api update ([4aacfa8](https://github.com/supermemoryai/python-sdk/commit/4aacfa8f2e35f50ab9ac01c4ae9b5086b8dc2230))
286
+ * **api:** api update ([9fe90d9](https://github.com/supermemoryai/python-sdk/commit/9fe90d99035348910c215cb196a27390b7c595d3))
287
+ * **api:** api update ([f9c7013](https://github.com/supermemoryai/python-sdk/commit/f9c70137f404d7638d6e77dbf360a276877a55a5))
288
+ * **api:** api update ([125afc9](https://github.com/supermemoryai/python-sdk/commit/125afc957cab83c2a0c75ba003479b09e5e0f63c))
289
+ * **api:** api update ([04b249d](https://github.com/supermemoryai/python-sdk/commit/04b249d0a09d2fcbd8aecd08bcfc6ff89673fb75))
290
+ * **client:** support file upload requests ([b6c42b1](https://github.com/supermemoryai/python-sdk/commit/b6c42b10e8412ccc5dbbed23d86c36598319df00))
291
+
292
+
293
+ ### Bug Fixes
294
+
295
+ * **parsing:** ignore empty metadata ([a58758c](https://github.com/supermemoryai/python-sdk/commit/a58758ce1f1ae0c87d0fa3bea43367bb2d198891))
296
+ * **parsing:** parse extra field types ([5253128](https://github.com/supermemoryai/python-sdk/commit/5253128de66dc303f8c9e4d295f133f24f770d95))
297
+
298
+
299
+ ### Chores
300
+
301
+ * **internal:** fix ruff target version ([25adc14](https://github.com/supermemoryai/python-sdk/commit/25adc1412380631fa8ce53034b519e819b45dec3))
302
+ * **internal:** update comment in script ([8fc31e8](https://github.com/supermemoryai/python-sdk/commit/8fc31e8cb2058d8bb4da67c5aebbac421474c3b8))
303
+ * **project:** add settings file for vscode ([2327687](https://github.com/supermemoryai/python-sdk/commit/232768766d49d14af45667f08ad66b890cc6a230))
304
+ * update @stainless-api/prism-cli to v5.15.0 ([7f4ff8b](https://github.com/supermemoryai/python-sdk/commit/7f4ff8b2712055be8a6100a2c132b514cf7e2e6d))
305
+
306
+ ## 3.0.0-alpha.23 (2025-07-15)
307
+
308
+ Full Changelog: [v3.0.0-alpha.22...v3.0.0-alpha.23](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.22...v3.0.0-alpha.23)
309
+
310
+ ### Features
311
+
312
+ * **api:** api update ([3f71f60](https://github.com/supermemoryai/python-sdk/commit/3f71f60954dedc0a91e1859df48c5c3ca0a47c88))
313
+ * **api:** api update ([b614732](https://github.com/supermemoryai/python-sdk/commit/b61473253183d434613b0aeb631376262d22cb0c))
314
+ * clean up environment call outs ([4aaccf1](https://github.com/supermemoryai/python-sdk/commit/4aaccf17ae31c04f3097fe04a6a081171fc725d1))
315
+
316
+
317
+ ### Bug Fixes
318
+
319
+ * **client:** don't send Content-Type header on GET requests ([80480dd](https://github.com/supermemoryai/python-sdk/commit/80480dd46271dc5136f39c5ff1315555b8d51e31))
320
+ * **parsing:** correctly handle nested discriminated unions ([812e982](https://github.com/supermemoryai/python-sdk/commit/812e982cbba93e197d4cd3cf8bdfa710e7830a78))
321
+
322
+
323
+ ### Chores
324
+
325
+ * **internal:** bump pinned h11 dep ([9e822a1](https://github.com/supermemoryai/python-sdk/commit/9e822a16ce8cf30791abf6384e2e3205233eeaba))
326
+ * **package:** mark python 3.13 as supported ([2dc73dd](https://github.com/supermemoryai/python-sdk/commit/2dc73dd51ac30fa4d6b2d370b7411857518c1ddd))
327
+ * **readme:** fix version rendering on pypi ([a6d7d7a](https://github.com/supermemoryai/python-sdk/commit/a6d7d7a100680cfaa03138542f60b7b7407ad347))
328
+
329
+ ## 3.0.0-alpha.22 (2025-07-03)
330
+
331
+ Full Changelog: [v3.0.0-alpha.21...v3.0.0-alpha.22](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.21...v3.0.0-alpha.22)
332
+
333
+ ### Features
334
+
335
+ * **api:** manual updates ([2a863a1](https://github.com/supermemoryai/python-sdk/commit/2a863a166b5c39208ef910d84530a27898ed0c71))
336
+
337
+ ## 3.0.0-alpha.21 (2025-07-03)
338
+
339
+ Full Changelog: [v3.0.0-alpha.20...v3.0.0-alpha.21](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.20...v3.0.0-alpha.21)
340
+
341
+ ### Features
342
+
343
+ * **api:** api update ([8b94b9e](https://github.com/supermemoryai/python-sdk/commit/8b94b9e043564f8daf605289683270dba97ca323))
344
+ * **api:** api update ([7b7eda7](https://github.com/supermemoryai/python-sdk/commit/7b7eda703a9d3dcf9b235a5045829c69147240c6))
345
+ * **api:** manual updates ([e7bfa6e](https://github.com/supermemoryai/python-sdk/commit/e7bfa6ef5804b758d3da98206ee643f9ae44ce0a))
346
+
347
+
348
+ ### Bug Fixes
349
+
350
+ * **ci:** correct conditional ([0b20719](https://github.com/supermemoryai/python-sdk/commit/0b20719ce022a872dd7334587317235b7a5562c3))
351
+
352
+
353
+ ### Chores
354
+
355
+ * **ci:** change upload type ([38f5701](https://github.com/supermemoryai/python-sdk/commit/38f5701dff0cc09b4a42d1c86e6250ed4695783d))
356
+ * **ci:** only run for pushes and fork pull requests ([901a43c](https://github.com/supermemoryai/python-sdk/commit/901a43c0c06fb8ed2ee2cfc3c56d44002b108a06))
357
+ * **internal:** codegen related update ([9c82bc7](https://github.com/supermemoryai/python-sdk/commit/9c82bc7c2fff3e85ec8a8d3278b04741bedaf7d3))
358
+
359
+ ## 3.0.0-alpha.20 (2025-06-27)
360
+
361
+ Full Changelog: [v3.0.0-alpha.19...v3.0.0-alpha.20](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.19...v3.0.0-alpha.20)
362
+
363
+ ### Features
364
+
365
+ * **api:** api update ([3c35763](https://github.com/supermemoryai/python-sdk/commit/3c357637aab2e68e3a80e33b9f721c3a8182483a))
366
+ * **api:** api update ([08ffef9](https://github.com/supermemoryai/python-sdk/commit/08ffef95b8f7be8ce8a57ba2fe2761653cd42e5d))
367
+
368
+
369
+ ### Bug Fixes
370
+
371
+ * **ci:** release-doctor — report correct token name ([dadfa9f](https://github.com/supermemoryai/python-sdk/commit/dadfa9f74851fc81e5af92e47c41115bee87aad7))
372
+
373
+
374
+ ### Chores
375
+
376
+ * sync repo ([380252a](https://github.com/supermemoryai/python-sdk/commit/380252a9cb2d9c723b5c6b36a33573c462e48049))
377
+ * update SDK settings ([8c6f297](https://github.com/supermemoryai/python-sdk/commit/8c6f297fc2b8f7a6b600205a5c313767a99612cb))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: supermemory
3
- Version: 3.0.0a24
3
+ Version: 3.13.0
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
@@ -13,15 +13,15 @@ Classifier: Operating System :: Microsoft :: Windows
13
13
  Classifier: Operating System :: OS Independent
14
14
  Classifier: Operating System :: POSIX
15
15
  Classifier: Operating System :: POSIX :: Linux
16
- Classifier: Programming Language :: Python :: 3.8
17
16
  Classifier: Programming Language :: Python :: 3.9
18
17
  Classifier: Programming Language :: Python :: 3.10
19
18
  Classifier: Programming Language :: Python :: 3.11
20
19
  Classifier: Programming Language :: Python :: 3.12
21
20
  Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
22
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
23
  Classifier: Typing :: Typed
24
- Requires-Python: >=3.8
24
+ Requires-Python: >=3.9
25
25
  Requires-Dist: anyio<5,>=3.5.0
26
26
  Requires-Dist: distro<2,>=1.7.0
27
27
  Requires-Dist: httpx<1,>=0.23.0
@@ -30,7 +30,7 @@ Requires-Dist: sniffio
30
30
  Requires-Dist: typing-extensions<5,>=4.10
31
31
  Provides-Extra: aiohttp
32
32
  Requires-Dist: aiohttp; extra == 'aiohttp'
33
- Requires-Dist: httpx-aiohttp>=0.1.8; extra == 'aiohttp'
33
+ Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
34
34
  Description-Content-Type: text/markdown
35
35
 
36
36
  # Supermemory Python API library
@@ -38,7 +38,7 @@ Description-Content-Type: text/markdown
38
38
  <!-- prettier-ignore -->
39
39
  [![PyPI version](https://img.shields.io/pypi/v/supermemory.svg?label=pypi%20(stable))](https://pypi.org/project/supermemory/)
40
40
 
41
- The Supermemory Python library provides convenient access to the Supermemory REST API from any Python 3.8+
41
+ The Supermemory Python library provides convenient access to the Supermemory REST API from any Python 3.9+
42
42
  application. The library includes type definitions for all request params and response fields,
43
43
  and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
44
44
 
@@ -52,7 +52,7 @@ The REST API documentation can be found on [docs.supermemory.ai](https://docs.su
52
52
 
53
53
  ```sh
54
54
  # install from PyPI
55
- pip install --pre supermemory
55
+ pip install supermemory
56
56
  ```
57
57
 
58
58
  ## Usage
@@ -67,7 +67,7 @@ client = Supermemory(
67
67
  api_key=os.environ.get("SUPERMEMORY_API_KEY"), # This is the default and can be omitted
68
68
  )
69
69
 
70
- response = client.search.execute(
70
+ response = client.search.documents(
71
71
  q="documents related to python",
72
72
  )
73
73
  print(response.results)
@@ -93,7 +93,7 @@ client = AsyncSupermemory(
93
93
 
94
94
 
95
95
  async def main() -> None:
96
- response = await client.search.execute(
96
+ response = await client.search.documents(
97
97
  q="documents related to python",
98
98
  )
99
99
  print(response.results)
@@ -112,12 +112,13 @@ You can enable this by installing `aiohttp`:
112
112
 
113
113
  ```sh
114
114
  # install from PyPI
115
- pip install --pre supermemory[aiohttp]
115
+ pip install supermemory[aiohttp]
116
116
  ```
117
117
 
118
118
  Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
119
119
 
120
120
  ```python
121
+ import os
121
122
  import asyncio
122
123
  from supermemory import DefaultAioHttpClient
123
124
  from supermemory import AsyncSupermemory
@@ -125,10 +126,10 @@ from supermemory import AsyncSupermemory
125
126
 
126
127
  async def main() -> None:
127
128
  async with AsyncSupermemory(
128
- api_key="My API Key",
129
+ api_key=os.environ.get("SUPERMEMORY_API_KEY"), # This is the default and can be omitted
129
130
  http_client=DefaultAioHttpClient(),
130
131
  ) as client:
131
- response = await client.search.execute(
132
+ response = await client.search.documents(
132
133
  q="documents related to python",
133
134
  )
134
135
  print(response.results)
@@ -146,6 +147,39 @@ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typ
146
147
 
147
148
  Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
148
149
 
150
+ ## Nested params
151
+
152
+ Nested parameters are dictionaries, typed using `TypedDict`, for example:
153
+
154
+ ```python
155
+ from supermemory import Supermemory
156
+
157
+ client = Supermemory()
158
+
159
+ response = client.search.memories(
160
+ q="machine learning concepts",
161
+ include={},
162
+ )
163
+ print(response.include)
164
+ ```
165
+
166
+ ## File uploads
167
+
168
+ Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
169
+
170
+ ```python
171
+ from pathlib import Path
172
+ from supermemory import Supermemory
173
+
174
+ client = Supermemory()
175
+
176
+ client.memories.upload_file(
177
+ file=Path("/path/to/file"),
178
+ )
179
+ ```
180
+
181
+ The async client uses the exact same interface. If you pass a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance, the file contents will be read asynchronously automatically.
182
+
149
183
  ## Handling errors
150
184
 
151
185
  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.
@@ -162,7 +196,9 @@ from supermemory import Supermemory
162
196
  client = Supermemory()
163
197
 
164
198
  try:
165
- client.memories.add()
199
+ client.add(
200
+ content="content",
201
+ )
166
202
  except supermemory.APIConnectionError as e:
167
203
  print("The server could not be reached")
168
204
  print(e.__cause__) # an underlying Exception, likely raised within httpx.
@@ -205,7 +241,9 @@ client = Supermemory(
205
241
  )
206
242
 
207
243
  # Or, configure per-request:
208
- client.with_options(max_retries=5).memories.add()
244
+ client.with_options(max_retries=5).add(
245
+ content="content",
246
+ )
209
247
  ```
210
248
 
211
249
  ### Timeouts
@@ -228,7 +266,9 @@ client = Supermemory(
228
266
  )
229
267
 
230
268
  # Override per-request:
231
- client.with_options(timeout=5.0).memories.add()
269
+ client.with_options(timeout=5.0).add(
270
+ content="content",
271
+ )
232
272
  ```
233
273
 
234
274
  On timeout, an `APITimeoutError` is thrown.
@@ -269,11 +309,13 @@ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to
269
309
  from supermemory import Supermemory
270
310
 
271
311
  client = Supermemory()
272
- response = client.memories.with_raw_response.add()
312
+ response = client.with_raw_response.add(
313
+ content="content",
314
+ )
273
315
  print(response.headers.get('X-My-Header'))
274
316
 
275
- memory = response.parse() # get the object that `memories.add()` would have returned
276
- print(memory.id)
317
+ client = response.parse() # get the object that `add()` would have returned
318
+ print(client.id)
277
319
  ```
278
320
 
279
321
  These methods return an [`APIResponse`](https://github.com/supermemoryai/python-sdk/tree/main/src/supermemory/_response.py) object.
@@ -287,7 +329,9 @@ The above interface eagerly reads the full response body when you make the reque
287
329
  To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
288
330
 
289
331
  ```python
290
- with client.memories.with_streaming_response.add() as response:
332
+ with client.with_streaming_response.add(
333
+ content="content",
334
+ ) as response:
291
335
  print(response.headers.get("X-My-Header"))
292
336
 
293
337
  for line in response.iter_lines():
@@ -397,7 +441,7 @@ print(supermemory.__version__)
397
441
 
398
442
  ## Requirements
399
443
 
400
- Python 3.8 or higher.
444
+ Python 3.9 or higher.
401
445
 
402
446
  ## Contributing
403
447