Skip to content

Commit 55986d4

Browse files
feat(api): manual updates
rename org name from Sent Dm to Sent
1 parent 49ba1d4 commit 55986d4

27 files changed

+619
-637
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
run: |
2626
bash ./bin/publish-pypi
2727
env:
28-
PYPI_TOKEN: ${{ secrets.SENT_DM_PYPI_TOKEN || secrets.PYPI_TOKEN }}
28+
PYPI_TOKEN: ${{ secrets.SENT_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
run: |
1919
bash ./bin/check-release-environment
2020
env:
21-
PYPI_TOKEN: ${{ secrets.SENT_DM_PYPI_TOKEN || secrets.PYPI_TOKEN }}
21+
PYPI_TOKEN: ${{ secrets.SENT_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 40
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-5dc1981aa33b7d68052db07daa5cebe74c5529c2fd24e68d3a8985cfd47626ff.yml
33
openapi_spec_hash: c6cb3fad43be2bf8ac0165b201c09e76
4-
config_hash: d8e8429147c4e214ff53c11e7ab2a1a6
4+
config_hash: 405ade725d72d542c60de821a127411b

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2026 Sent Dm
189+
Copyright 2026 Sent
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Sent Dm Python API library
1+
# Sent Python API library
22

33
<!-- prettier-ignore -->
44
[![PyPI version](https://img.shields.io/pypi/v/sentdm.svg?label=pypi%20(stable))](https://pypi.org/project/sentdm/)
55

6-
The Sent Dm Python library provides convenient access to the Sent Dm REST API from any Python 3.9+
6+
The Sent Python library provides convenient access to the Sent REST API from any Python 3.9+
77
application. The library includes type definitions for all request params and response fields,
88
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
99

1010
It is generated with [Stainless](https://www.stainless.com/).
1111

1212
## MCP Server
1313

14-
Use the Sent Dm MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
14+
Use the Sent MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
1515

1616
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40sentdm%2Fsentdm-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzZW50ZG0vc2VudGRtLW1jcCJdLCJlbnYiOnsiU0VOVF9ETV9BUElfS0VZIjoiTXkgQVBJIEtleSJ9fQ)
1717
[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40sentdm%2Fsentdm-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40sentdm%2Fsentdm-mcp%22%5D%2C%22env%22%3A%7B%22SENT_DM_API_KEY%22%3A%22My%20API%20Key%22%7D%7D)
@@ -35,9 +35,9 @@ The full API of this library can be found in [api.md](api.md).
3535

3636
```python
3737
import os
38-
from sent_dm import SentDm
38+
from sent_dm import Sent
3939

40-
client = SentDm(
40+
client = Sent(
4141
api_key=os.environ.get("SENT_DM_API_KEY"), # This is the default and can be omitted
4242
)
4343

@@ -63,14 +63,14 @@ so that your API Key is not stored in source control.
6363

6464
## Async usage
6565

66-
Simply import `AsyncSentDm` instead of `SentDm` and use `await` with each API call:
66+
Simply import `AsyncSent` instead of `Sent` and use `await` with each API call:
6767

6868
```python
6969
import os
7070
import asyncio
71-
from sent_dm import AsyncSentDm
71+
from sent_dm import AsyncSent
7272

73-
client = AsyncSentDm(
73+
client = AsyncSent(
7474
api_key=os.environ.get("SENT_DM_API_KEY"), # This is the default and can be omitted
7575
)
7676

@@ -113,11 +113,11 @@ Then you can enable it by instantiating the client with `http_client=DefaultAioH
113113
import os
114114
import asyncio
115115
from sent_dm import DefaultAioHttpClient
116-
from sent_dm import AsyncSentDm
116+
from sent_dm import AsyncSent
117117

118118

119119
async def main() -> None:
120-
async with AsyncSentDm(
120+
async with AsyncSent(
121121
api_key=os.environ.get("SENT_DM_API_KEY"), # This is the default and can be omitted
122122
http_client=DefaultAioHttpClient(),
123123
) as client:
@@ -153,9 +153,9 @@ Typed requests and responses provide autocomplete and documentation within your
153153
Nested parameters are dictionaries, typed using `TypedDict`, for example:
154154

155155
```python
156-
from sent_dm import SentDm
156+
from sent_dm import Sent
157157

158-
client = SentDm()
158+
client = Sent()
159159

160160
response = client.messages.send(
161161
template={
@@ -181,9 +181,9 @@ All errors inherit from `sent_dm.APIError`.
181181

182182
```python
183183
import sent_dm
184-
from sent_dm import SentDm
184+
from sent_dm import Sent
185185

186-
client = SentDm()
186+
client = Sent()
187187

188188
try:
189189
client.messages.send(
@@ -231,10 +231,10 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
231231
You can use the `max_retries` option to configure or disable retry settings:
232232

233233
```python
234-
from sent_dm import SentDm
234+
from sent_dm import Sent
235235

236236
# Configure the default for all requests:
237-
client = SentDm(
237+
client = Sent(
238238
# default is 2
239239
max_retries=0,
240240
)
@@ -260,16 +260,16 @@ By default requests time out after 1 minute. You can configure this with a `time
260260
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
261261

262262
```python
263-
from sent_dm import SentDm
263+
from sent_dm import Sent
264264

265265
# Configure the default for all requests:
266-
client = SentDm(
266+
client = Sent(
267267
# 20 seconds (default is 1 minute)
268268
timeout=20.0,
269269
)
270270

271271
# More granular control:
272-
client = SentDm(
272+
client = Sent(
273273
timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
274274
)
275275

@@ -298,10 +298,10 @@ Note that requests that time out are [retried twice by default](#retries).
298298

299299
We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
300300

301-
You can enable logging by setting the environment variable `SENT_DM_LOG` to `info`.
301+
You can enable logging by setting the environment variable `SENT_LOG` to `info`.
302302

303303
```shell
304-
$ export SENT_DM_LOG=info
304+
$ export SENT_LOG=info
305305
```
306306

307307
Or to `debug` for more verbose logging.
@@ -323,9 +323,9 @@ if response.my_field is None:
323323
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
324324

325325
```py
326-
from sent_dm import SentDm
326+
from sent_dm import Sent
327327

328-
client = SentDm()
328+
client = Sent()
329329
response = client.messages.with_raw_response.send(
330330
channel=["sms"],
331331
template={
@@ -419,10 +419,10 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
419419

420420
```python
421421
import httpx
422-
from sent_dm import SentDm, DefaultHttpxClient
422+
from sent_dm import Sent, DefaultHttpxClient
423423

424-
client = SentDm(
425-
# Or use the `SENT_DM_BASE_URL` env var
424+
client = Sent(
425+
# Or use the `SENT_BASE_URL` env var
426426
base_url="http://my.test.server.example.com:8083",
427427
http_client=DefaultHttpxClient(
428428
proxy="http://my.test.proxy.example.com",
@@ -442,9 +442,9 @@ client.with_options(http_client=DefaultHttpxClient(...))
442442
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.
443443

444444
```py
445-
from sent_dm import SentDm
445+
from sent_dm import Sent
446446

447-
with SentDm() as client:
447+
with Sent() as client:
448448
# make requests here
449449
...
450450

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ before making any information public.
1616
## Reporting Non-SDK Related Security Issues
1717

1818
If you encounter security issues that are not directly related to SDKs but pertain to the services
19-
or products provided by Sent Dm, please follow the respective company's security reporting guidelines.
19+
or products provided by Sent, please follow the respective company's security reporting guidelines.
2020

21-
### Sent Dm Terms and Policies
21+
### Sent Terms and Policies
2222

2323
Please contact support@sent.dm for any questions or concerns regarding the security of our services.
2424

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "sentdm"
33
version = "0.16.0"
4-
description = "The official Python library for the sent-dm API"
4+
description = "The official Python library for the Sent API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
77
authors = [
8-
{ name = "Sent Dm", email = "support@sent.dm" },
8+
{ name = "Sent", email = "support@sent.dm" },
99
]
1010

1111
dependencies = [

src/sent_dm/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
from . import types
66
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
77
from ._utils import file_from_path
8-
from ._client import Client, SentDm, Stream, Timeout, Transport, AsyncClient, AsyncSentDm, AsyncStream, RequestOptions
8+
from ._client import Sent, Client, Stream, Timeout, AsyncSent, Transport, AsyncClient, AsyncStream, RequestOptions
99
from ._models import BaseModel
1010
from ._version import __title__, __version__
1111
from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
1212
from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
1313
from ._exceptions import (
1414
APIError,
15-
SentDmError,
15+
SentError,
1616
ConflictError,
1717
NotFoundError,
1818
APIStatusError,
@@ -41,7 +41,7 @@
4141
"not_given",
4242
"Omit",
4343
"omit",
44-
"SentDmError",
44+
"SentError",
4545
"APIError",
4646
"APIStatusError",
4747
"APITimeoutError",
@@ -61,8 +61,8 @@
6161
"AsyncClient",
6262
"Stream",
6363
"AsyncStream",
64-
"SentDm",
65-
"AsyncSentDm",
64+
"Sent",
65+
"AsyncSent",
6666
"file_from_path",
6767
"BaseModel",
6868
"DEFAULT_TIMEOUT",

0 commit comments

Comments
 (0)