Skip to content

Commit 3e32da8

Browse files
Merge pull request #8 from supermemoryai/release-please--branches--main--changes--next
2 parents 7e652e9 + ae3f466 commit 3e32da8

File tree

86 files changed

+144
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+144
-132
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.0.0-alpha.21"
2+
".": "3.0.0-alpha.22"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 16
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-1a2a84a9cc99c25a9d726bc9300a72871f9469e3ceacebd5e71fd37e87891318.yml
33
openapi_spec_hash: e71e86a645bc47a86664080c8697b8db
4-
config_hash: b560219f71fa815fec30fe25ca5a71f5
4+
config_hash: be10c837d5319a33f30809a3ec223caf

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 3.0.0-alpha.22 (2025-07-03)
4+
5+
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)
6+
7+
### Features
8+
9+
* **api:** manual updates ([2a863a1](https://github.com/supermemoryai/python-sdk/commit/2a863a166b5c39208ef910d84530a27898ed0c71))
10+
311
## 3.0.0-alpha.21 (2025-07-03)
412

513
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)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $ pip install -r requirements-dev.lock
3636

3737
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
3838
result in merge conflicts between manual patches and changes from the generator. The generator will never
39-
modify the contents of the `src/supermemory_new/lib/` and `examples/` directories.
39+
modify the contents of the `src/supermemory/lib/` and `examples/` directories.
4040

4141
## Adding and running examples
4242

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The full API of this library can be found in [api.md](api.md).
2525

2626
```python
2727
import os
28-
from supermemory_new import Supermemory
28+
from supermemory import Supermemory
2929

3030
client = Supermemory(
3131
api_key=os.environ.get("SUPERMEMORY_API_KEY"), # This is the default and can be omitted
@@ -49,7 +49,7 @@ Simply import `AsyncSupermemory` instead of `Supermemory` and use `await` with e
4949
```python
5050
import os
5151
import asyncio
52-
from supermemory_new import AsyncSupermemory
52+
from supermemory import AsyncSupermemory
5353

5454
client = AsyncSupermemory(
5555
api_key=os.environ.get("SUPERMEMORY_API_KEY"), # This is the default and can be omitted
@@ -84,8 +84,8 @@ Then you can enable it by instantiating the client with `http_client=DefaultAioH
8484
```python
8585
import os
8686
import asyncio
87-
from supermemory_new import DefaultAioHttpClient
88-
from supermemory_new import AsyncSupermemory
87+
from supermemory import DefaultAioHttpClient
88+
from supermemory import AsyncSupermemory
8989

9090

9191
async def main() -> None:
@@ -113,29 +113,29 @@ Typed requests and responses provide autocomplete and documentation within your
113113

114114
## Handling errors
115115

116-
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.
116+
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.
117117

118118
When the API returns a non-success status code (that is, 4xx or 5xx
119-
response), a subclass of `supermemory_new.APIStatusError` is raised, containing `status_code` and `response` properties.
119+
response), a subclass of `supermemory.APIStatusError` is raised, containing `status_code` and `response` properties.
120120

121-
All errors inherit from `supermemory_new.APIError`.
121+
All errors inherit from `supermemory.APIError`.
122122

123123
```python
124-
import supermemory_new
125-
from supermemory_new import Supermemory
124+
import supermemory
125+
from supermemory import Supermemory
126126

127127
client = Supermemory()
128128

129129
try:
130130
client.memories.add(
131131
content="This is a detailed article about machine learning concepts...",
132132
)
133-
except supermemory_new.APIConnectionError as e:
133+
except supermemory.APIConnectionError as e:
134134
print("The server could not be reached")
135135
print(e.__cause__) # an underlying Exception, likely raised within httpx.
136-
except supermemory_new.RateLimitError as e:
136+
except supermemory.RateLimitError as e:
137137
print("A 429 status code was received; we should back off a bit.")
138-
except supermemory_new.APIStatusError as e:
138+
except supermemory.APIStatusError as e:
139139
print("Another non-200-range status code was received")
140140
print(e.status_code)
141141
print(e.response)
@@ -163,7 +163,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
163163
You can use the `max_retries` option to configure or disable retry settings:
164164

165165
```python
166-
from supermemory_new import Supermemory
166+
from supermemory import Supermemory
167167

168168
# Configure the default for all requests:
169169
client = Supermemory(
@@ -183,7 +183,7 @@ By default requests time out after 1 minute. You can configure this with a `time
183183
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
184184

185185
```python
186-
from supermemory_new import Supermemory
186+
from supermemory import Supermemory
187187

188188
# Configure the default for all requests:
189189
client = Supermemory(
@@ -237,7 +237,7 @@ if response.my_field is None:
237237
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
238238

239239
```py
240-
from supermemory_new import Supermemory
240+
from supermemory import Supermemory
241241

242242
client = Supermemory()
243243
response = client.memories.with_raw_response.add(
@@ -249,9 +249,9 @@ memory = response.parse() # get the object that `memories.add()` would have ret
249249
print(memory.id)
250250
```
251251

252-
These methods return an [`APIResponse`](https://github.com/supermemoryai/python-sdk/tree/main/src/supermemory_new/_response.py) object.
252+
These methods return an [`APIResponse`](https://github.com/supermemoryai/python-sdk/tree/main/src/supermemory/_response.py) object.
253253

254-
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.
254+
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.
255255

256256
#### `.with_streaming_response`
257257

@@ -315,7 +315,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
315315

316316
```python
317317
import httpx
318-
from supermemory_new import Supermemory, DefaultHttpxClient
318+
from supermemory import Supermemory, DefaultHttpxClient
319319

320320
client = Supermemory(
321321
# Or use the `SUPERMEMORY_BASE_URL` env var
@@ -338,7 +338,7 @@ client.with_options(http_client=DefaultHttpxClient(...))
338338
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.
339339

340340
```py
341-
from supermemory_new import Supermemory
341+
from supermemory import Supermemory
342342

343343
with Supermemory() as client:
344344
# make requests here
@@ -366,8 +366,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
366366
You can determine the version that is being used at runtime with:
367367

368368
```py
369-
import supermemory_new
370-
print(supermemory_new.__version__)
369+
import supermemory
370+
print(supermemory.__version__)
371371
```
372372

373373
## Requirements

api.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Types:
44

55
```python
6-
from supermemory_new.types import (
6+
from supermemory.types import (
77
MemoryUpdateResponse,
88
MemoryListResponse,
99
MemoryAddResponse,
@@ -13,43 +13,43 @@ from supermemory_new.types import (
1313

1414
Methods:
1515

16-
- <code title="patch /v3/memories/{id}">client.memories.<a href="./src/supermemory_new/resources/memories.py">update</a>(id, \*\*<a href="src/supermemory_new/types/memory_update_params.py">params</a>) -> <a href="./src/supermemory_new/types/memory_update_response.py">MemoryUpdateResponse</a></code>
17-
- <code title="post /v3/memories/list">client.memories.<a href="./src/supermemory_new/resources/memories.py">list</a>(\*\*<a href="src/supermemory_new/types/memory_list_params.py">params</a>) -> <a href="./src/supermemory_new/types/memory_list_response.py">MemoryListResponse</a></code>
18-
- <code title="delete /v3/memories/{id}">client.memories.<a href="./src/supermemory_new/resources/memories.py">delete</a>(id) -> None</code>
19-
- <code title="post /v3/memories">client.memories.<a href="./src/supermemory_new/resources/memories.py">add</a>(\*\*<a href="src/supermemory_new/types/memory_add_params.py">params</a>) -> <a href="./src/supermemory_new/types/memory_add_response.py">MemoryAddResponse</a></code>
20-
- <code title="get /v3/memories/{id}">client.memories.<a href="./src/supermemory_new/resources/memories.py">get</a>(id) -> <a href="./src/supermemory_new/types/memory_get_response.py">MemoryGetResponse</a></code>
16+
- <code title="patch /v3/memories/{id}">client.memories.<a href="./src/supermemory/resources/memories.py">update</a>(id, \*\*<a href="src/supermemory/types/memory_update_params.py">params</a>) -> <a href="./src/supermemory/types/memory_update_response.py">MemoryUpdateResponse</a></code>
17+
- <code title="post /v3/memories/list">client.memories.<a href="./src/supermemory/resources/memories.py">list</a>(\*\*<a href="src/supermemory/types/memory_list_params.py">params</a>) -> <a href="./src/supermemory/types/memory_list_response.py">MemoryListResponse</a></code>
18+
- <code title="delete /v3/memories/{id}">client.memories.<a href="./src/supermemory/resources/memories.py">delete</a>(id) -> None</code>
19+
- <code title="post /v3/memories">client.memories.<a href="./src/supermemory/resources/memories.py">add</a>(\*\*<a href="src/supermemory/types/memory_add_params.py">params</a>) -> <a href="./src/supermemory/types/memory_add_response.py">MemoryAddResponse</a></code>
20+
- <code title="get /v3/memories/{id}">client.memories.<a href="./src/supermemory/resources/memories.py">get</a>(id) -> <a href="./src/supermemory/types/memory_get_response.py">MemoryGetResponse</a></code>
2121

2222
# Search
2323

2424
Types:
2525

2626
```python
27-
from supermemory_new.types import SearchExecuteResponse
27+
from supermemory.types import SearchExecuteResponse
2828
```
2929

3030
Methods:
3131

32-
- <code title="post /v3/search">client.search.<a href="./src/supermemory_new/resources/search.py">execute</a>(\*\*<a href="src/supermemory_new/types/search_execute_params.py">params</a>) -> <a href="./src/supermemory_new/types/search_execute_response.py">SearchExecuteResponse</a></code>
32+
- <code title="post /v3/search">client.search.<a href="./src/supermemory/resources/search.py">execute</a>(\*\*<a href="src/supermemory/types/search_execute_params.py">params</a>) -> <a href="./src/supermemory/types/search_execute_response.py">SearchExecuteResponse</a></code>
3333

3434
# Settings
3535

3636
Types:
3737

3838
```python
39-
from supermemory_new.types import SettingUpdateResponse, SettingGetResponse
39+
from supermemory.types import SettingUpdateResponse, SettingGetResponse
4040
```
4141

4242
Methods:
4343

44-
- <code title="patch /v3/settings">client.settings.<a href="./src/supermemory_new/resources/settings.py">update</a>(\*\*<a href="src/supermemory_new/types/setting_update_params.py">params</a>) -> <a href="./src/supermemory_new/types/setting_update_response.py">SettingUpdateResponse</a></code>
45-
- <code title="get /v3/settings">client.settings.<a href="./src/supermemory_new/resources/settings.py">get</a>() -> <a href="./src/supermemory_new/types/setting_get_response.py">SettingGetResponse</a></code>
44+
- <code title="patch /v3/settings">client.settings.<a href="./src/supermemory/resources/settings.py">update</a>(\*\*<a href="src/supermemory/types/setting_update_params.py">params</a>) -> <a href="./src/supermemory/types/setting_update_response.py">SettingUpdateResponse</a></code>
45+
- <code title="get /v3/settings">client.settings.<a href="./src/supermemory/resources/settings.py">get</a>() -> <a href="./src/supermemory/types/setting_get_response.py">SettingGetResponse</a></code>
4646

4747
# Connections
4848

4949
Types:
5050

5151
```python
52-
from supermemory_new.types import (
52+
from supermemory.types import (
5353
ConnectionCreateResponse,
5454
ConnectionListResponse,
5555
ConnectionDeleteByIDResponse,
@@ -62,11 +62,11 @@ from supermemory_new.types import (
6262

6363
Methods:
6464

65-
- <code title="post /v3/connections/{provider}">client.connections.<a href="./src/supermemory_new/resources/connections.py">create</a>(provider, \*\*<a href="src/supermemory_new/types/connection_create_params.py">params</a>) -> <a href="./src/supermemory_new/types/connection_create_response.py">ConnectionCreateResponse</a></code>
66-
- <code title="post /v3/connections/list">client.connections.<a href="./src/supermemory_new/resources/connections.py">list</a>(\*\*<a href="src/supermemory_new/types/connection_list_params.py">params</a>) -> <a href="./src/supermemory_new/types/connection_list_response.py">ConnectionListResponse</a></code>
67-
- <code title="delete /v3/connections/{connectionId}">client.connections.<a href="./src/supermemory_new/resources/connections.py">delete_by_id</a>(connection_id) -> <a href="./src/supermemory_new/types/connection_delete_by_id_response.py">ConnectionDeleteByIDResponse</a></code>
68-
- <code title="delete /v3/connections/{provider}">client.connections.<a href="./src/supermemory_new/resources/connections.py">delete_by_provider</a>(provider, \*\*<a href="src/supermemory_new/types/connection_delete_by_provider_params.py">params</a>) -> <a href="./src/supermemory_new/types/connection_delete_by_provider_response.py">ConnectionDeleteByProviderResponse</a></code>
69-
- <code title="get /v3/connections/{connectionId}">client.connections.<a href="./src/supermemory_new/resources/connections.py">get_by_id</a>(connection_id) -> <a href="./src/supermemory_new/types/connection_get_by_id_response.py">ConnectionGetByIDResponse</a></code>
70-
- <code title="post /v3/connections/{provider}/connection">client.connections.<a href="./src/supermemory_new/resources/connections.py">get_by_tags</a>(provider, \*\*<a href="src/supermemory_new/types/connection_get_by_tags_params.py">params</a>) -> <a href="./src/supermemory_new/types/connection_get_by_tags_response.py">ConnectionGetByTagsResponse</a></code>
71-
- <code title="post /v3/connections/{provider}/import">client.connections.<a href="./src/supermemory_new/resources/connections.py">import\_</a>(provider, \*\*<a href="src/supermemory_new/types/connection_import_params.py">params</a>) -> None</code>
72-
- <code title="post /v3/connections/{provider}/documents">client.connections.<a href="./src/supermemory_new/resources/connections.py">list_documents</a>(provider, \*\*<a href="src/supermemory_new/types/connection_list_documents_params.py">params</a>) -> <a href="./src/supermemory_new/types/connection_list_documents_response.py">ConnectionListDocumentsResponse</a></code>
65+
- <code title="post /v3/connections/{provider}">client.connections.<a href="./src/supermemory/resources/connections.py">create</a>(provider, \*\*<a href="src/supermemory/types/connection_create_params.py">params</a>) -> <a href="./src/supermemory/types/connection_create_response.py">ConnectionCreateResponse</a></code>
66+
- <code title="post /v3/connections/list">client.connections.<a href="./src/supermemory/resources/connections.py">list</a>(\*\*<a href="src/supermemory/types/connection_list_params.py">params</a>) -> <a href="./src/supermemory/types/connection_list_response.py">ConnectionListResponse</a></code>
67+
- <code title="delete /v3/connections/{connectionId}">client.connections.<a href="./src/supermemory/resources/connections.py">delete_by_id</a>(connection_id) -> <a href="./src/supermemory/types/connection_delete_by_id_response.py">ConnectionDeleteByIDResponse</a></code>
68+
- <code title="delete /v3/connections/{provider}">client.connections.<a href="./src/supermemory/resources/connections.py">delete_by_provider</a>(provider, \*\*<a href="src/supermemory/types/connection_delete_by_provider_params.py">params</a>) -> <a href="./src/supermemory/types/connection_delete_by_provider_response.py">ConnectionDeleteByProviderResponse</a></code>
69+
- <code title="get /v3/connections/{connectionId}">client.connections.<a href="./src/supermemory/resources/connections.py">get_by_id</a>(connection_id) -> <a href="./src/supermemory/types/connection_get_by_id_response.py">ConnectionGetByIDResponse</a></code>
70+
- <code title="post /v3/connections/{provider}/connection">client.connections.<a href="./src/supermemory/resources/connections.py">get_by_tags</a>(provider, \*\*<a href="src/supermemory/types/connection_get_by_tags_params.py">params</a>) -> <a href="./src/supermemory/types/connection_get_by_tags_response.py">ConnectionGetByTagsResponse</a></code>
71+
- <code title="post /v3/connections/{provider}/import">client.connections.<a href="./src/supermemory/resources/connections.py">import\_</a>(provider, \*\*<a href="src/supermemory/types/connection_import_params.py">params</a>) -> None</code>
72+
- <code title="post /v3/connections/{provider}/documents">client.connections.<a href="./src/supermemory/resources/connections.py">list_documents</a>(provider, \*\*<a href="src/supermemory/types/connection_list_documents_params.py">params</a>) -> <a href="./src/supermemory/types/connection_list_documents_response.py">ConnectionListDocumentsResponse</a></code>

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ show_error_codes = True
88
#
99
# We also exclude our `tests` as mypy doesn't always infer
1010
# types correctly and Pyright will still catch any type errors.
11-
exclude = ^(src/supermemory_new/_files\.py|_dev/.*\.py|tests/.*)$
11+
exclude = ^(src/supermemory/_files\.py|_dev/.*\.py|tests/.*)$
1212

1313
strict_equality = True
1414
implicit_reexport = True

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "supermemory"
3-
version = "3.0.0-alpha.21"
3+
version = "3.0.0-alpha.22"
44
description = "The official Python library for the supermemory API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
@@ -78,14 +78,14 @@ format = { chain = [
7878
"check:ruff" = "ruff check ."
7979
"fix:ruff" = "ruff check --fix ."
8080

81-
"check:importable" = "python -c 'import supermemory_new'"
81+
"check:importable" = "python -c 'import supermemory'"
8282

8383
typecheck = { chain = [
8484
"typecheck:pyright",
8585
"typecheck:mypy"
8686
]}
8787
"typecheck:pyright" = "pyright"
88-
"typecheck:verify-types" = "pyright --verifytypes supermemory_new --ignoreexternal"
88+
"typecheck:verify-types" = "pyright --verifytypes supermemory --ignoreexternal"
8989
"typecheck:mypy" = "mypy ."
9090

9191
[build-system]
@@ -98,7 +98,7 @@ include = [
9898
]
9999

100100
[tool.hatch.build.targets.wheel]
101-
packages = ["src/supermemory_new"]
101+
packages = ["src/supermemory"]
102102

103103
[tool.hatch.build.targets.sdist]
104104
# Basically everything except hidden files/directories (such as .github, .devcontainers, .python-version, etc)
@@ -201,7 +201,7 @@ length-sort = true
201201
length-sort-straight = true
202202
combine-as-imports = true
203203
extra-standard-library = ["typing_extensions"]
204-
known-first-party = ["supermemory_new", "tests"]
204+
known-first-party = ["supermemory", "tests"]
205205

206206
[tool.ruff.lint.per-file-ignores]
207207
"bin/**.py" = ["T201", "T203"]

release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
],
6262
"release-type": "python",
6363
"extra-files": [
64-
"src/supermemory_new/_version.py"
64+
"src/supermemory/_version.py"
6565
]
6666
}

scripts/lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ echo "==> Running lints"
88
rye run lint
99

1010
echo "==> Making sure it imports"
11-
rye run python -c 'import supermemory_new'
11+
rye run python -c 'import supermemory'

0 commit comments

Comments
 (0)