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
+25-14Lines changed: 25 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,46 +4,56 @@ We [keep a changelog.](http://keepachangelog.com/)
4
4
5
5
## [Unreleased]
6
6
7
+
## [1.5.0] - 2025-12-11
8
+
7
9
### Added
8
10
11
+
- Add `AsyncClient` and `AsyncEndpoint` that work based on asynchronous approach. Signatures and usage is basically the same but `AsyncClient`
12
+
supports async context manager mode.
13
+
14
+
- Add `httpx >=0.24.0` as an additional runtime dependency in order to support async/await and also `typing_extensions >=4.7.1` to `environment.yaml`, `environment-dev.yaml`, and `pyproject.toml`.
15
+
9
16
- Add missing endpoints:
10
17
11
-
- Add "users", "me" to the `users` key of special cases in the class `Config`.
18
+
- Add `"users"`, `"me"` to the `users` key of special cases in the class `Config`.
12
19
- Add `handle_users` to `mailgun.handlers.users_handler` for parsing [Users API](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/users).
13
20
- Add `handle_mailboxes_credentials()` to `mailgun.handlers.domains_handler` for parsing `Update Mailgun SMTP credentials` in [Credentials API](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/credentials).
14
21
15
22
- Examples:
16
23
24
+
- Add async examples to `async_client_examples.py`.
17
25
- Move credentials examples from `mailgun/examples/domain_examples.py` to `mailgun/examples/credentials_examples.py` and add a new example `put_mailboxes_credentials()`.
18
-
- Add the `get_routes_match()` example to `mailgun/examples/routes_examples.py`
19
-
- Add the `update_template_version_copy()` example to `mailgun/examples/templates_examples.py`
20
-
- Add `mailgun/examples/users_examples.py`
26
+
- Add the `get_routes_match()` example to `mailgun/examples/routes_examples.py`.
27
+
- Add the `update_template_version_copy()` example to `mailgun/examples/templates_examples.py`.
28
+
- Add `mailgun/examples/users_examples.py`.
21
29
22
30
- Docs:
23
31
32
+
- Add the `AsyncClient` section to `README.md`.
24
33
- Add `Credentials` and `Users` sections with examples to `README.md`.
25
34
- Add docstrings to the test class `UsersTests` & `AsyncUsersTests` and theirs methods.
26
35
27
36
- Tests:
28
37
29
-
- Add `test_put_mailboxes_credentials` to `DomainTests` and `AsyncDomainTests`
30
-
- Add `test_get_routes_match` to `RoutesTests` and `AsyncRoutesTests`
31
-
- Add `test_update_template_version_copy` to `TemplatesTests ` and `AsyncTemplatesTests `
38
+
- Add same tests for `AsyncClient` as exist for `Client`.
39
+
- Add `test_put_mailboxes_credentials` to `DomainTests` and `AsyncDomainTests`.
40
+
- Add `test_get_routes_match` to `RoutesTests` and `AsyncRoutesTests`.
41
+
- Add `test_update_template_version_copy` to `TemplatesTests ` and `AsyncTemplatesTests`.
32
42
- Add classes `UsersTests` and `AsyncUsersTests` to `tests/tests.py`.
33
43
34
44
### Changed
35
45
36
-
- Update `handle_templates()` in `mailgun/handlers/templates_handler.py` to handle `new_tag`
37
-
46
+
- Update `handle_templates()` in `mailgun/handlers/templates_handler.py` to handle `new_tag`.
38
47
- Update CI workflows: update `pre-commit` hooks to the latest versions.
39
-
40
-
- Modify `mypy`'s additional_dependencies in `.pre-commit-config.yaml` to suppress `error: Untyped decorator makes function` by adding `pytest-order`
41
-
42
-
- Replace spaces with tabs in `Makefile`
48
+
- Modify `mypy`'s additional_dependencies in `.pre-commit-config.yaml` to suppress `error: Untyped decorator makes function` by adding `pytest-order`.
49
+
- Replace spaces with tabs in `Makefile`.
50
+
- Update `Makefile`: add `make check-env` and improve `make test`.
43
51
44
52
### Pull Requests Merged
45
53
54
+
-[PR_24](https://github.com/mailgun/mailgun-python/pull/24) - Async client support
0 commit comments