You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,24 @@
1
1
# Changelog
2
2
3
+
## 1.8.0 (2025-06-28)
4
+
5
+
Full Changelog: [v1.7.0...v1.8.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.7.0...v1.8.0)
6
+
7
+
### Features
8
+
9
+
***client:** add support for aiohttp ([ec89992](https://github.com/brand-dot-dev/python-sdk/commit/ec89992888ebc95015e914ec22ad479054797455))
10
+
11
+
12
+
### Bug Fixes
13
+
14
+
***ci:** release-doctor — report correct token name ([5dfdca8](https://github.com/brand-dot-dev/python-sdk/commit/5dfdca8ac67612c7ebe230b03d8b30754c7ceb49))
15
+
16
+
17
+
### Chores
18
+
19
+
***ci:** only run for pushes and fork pull requests ([4a9a6ac](https://github.com/brand-dot-dev/python-sdk/commit/4a9a6acb4467d8f45b3d81967094fdd119f30bd2))
20
+
***tests:** skip some failing tests on the latest python versions ([1c82bc6](https://github.com/brand-dot-dev/python-sdk/commit/1c82bc6b846e17da31ec6798c9fcd59336709a60))
21
+
3
22
## 1.7.0 (2025-06-19)
4
23
5
24
Full Changelog: [v1.6.0...v1.7.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.6.0...v1.7.0)
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,40 @@ asyncio.run(main())
68
68
69
69
Functionality between the synchronous and asynchronous clients is otherwise identical.
70
70
71
+
### With aiohttp
72
+
73
+
By default, the async client uses `httpx` for HTTP requests. However, for improved concurrency performance you may also use `aiohttp` as the HTTP backend.
74
+
75
+
You can enable this by installing `aiohttp`:
76
+
77
+
```sh
78
+
# install from PyPI
79
+
pip install brand.dev[aiohttp]
80
+
```
81
+
82
+
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
83
+
84
+
```python
85
+
import os
86
+
import asyncio
87
+
from brand.dev import DefaultAioHttpClient
88
+
from brand.dev import AsyncBrandDev
89
+
90
+
91
+
asyncdefmain() -> None:
92
+
asyncwith AsyncBrandDev(
93
+
api_key=os.environ.get("BRAND_DEV_API_KEY"), # This is the default and can be omitted
94
+
http_client=DefaultAioHttpClient(),
95
+
) as client:
96
+
brand =await client.brand.retrieve(
97
+
domain="REPLACE_ME",
98
+
)
99
+
print(brand.brand)
100
+
101
+
102
+
asyncio.run(main())
103
+
```
104
+
71
105
## Using types
72
106
73
107
Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev) which also provide helper methods for things like:
0 commit comments