sendora 2.9.0__tar.gz → 2.9.1__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 (40) hide show
  1. {sendora-2.9.0 → sendora-2.9.1}/CHANGELOG.md +6 -0
  2. {sendora-2.9.0 → sendora-2.9.1}/PKG-INFO +6 -6
  3. {sendora-2.9.0 → sendora-2.9.1}/README.md +5 -5
  4. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_version.py +1 -1
  5. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/servers.py +4 -4
  6. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/skills/sendora/SKILL.md +7 -7
  7. {sendora-2.9.0 → sendora-2.9.1}/.gitignore +0 -0
  8. {sendora-2.9.0 → sendora-2.9.1}/LICENSE +0 -0
  9. {sendora-2.9.0 → sendora-2.9.1}/pyproject.toml +0 -0
  10. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/__init__.py +0 -0
  11. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_account.py +0 -0
  12. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_answers.py +0 -0
  13. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_client.py +0 -0
  14. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_errors.py +0 -0
  15. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_json.py +0 -0
  16. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_keys.py +0 -0
  17. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_model.py +0 -0
  18. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_options.py +0 -0
  19. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_pages.py +0 -0
  20. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_retry.py +0 -0
  21. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_transport.py +0 -0
  22. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_webhooks.py +0 -0
  23. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/_wire.py +0 -0
  24. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/py.typed +0 -0
  25. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/__init__.py +0 -0
  26. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/broadcasts.py +0 -0
  27. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/domains.py +0 -0
  28. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/email.py +0 -0
  29. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/erasures.py +0 -0
  30. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/inbound.py +0 -0
  31. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/inbound_domains.py +0 -0
  32. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/messages.py +0 -0
  33. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/server.py +0 -0
  34. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/streams.py +0 -0
  35. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/suppressions.py +0 -0
  36. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/tokens.py +0 -0
  37. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/tracking_domains.py +0 -0
  38. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/tracking_opt_outs.py +0 -0
  39. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/resources/webhooks.py +0 -0
  40. {sendora-2.9.0 → sendora-2.9.1}/src/sendora/types.py +0 -0
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.9.1
4
+
5
+ - The README, the skill and the docstrings say that a server holds up to
6
+ ten live keys, so each system can have its own. The account still holds
7
+ up to two. No call changes.
8
+
3
9
  ## 2.9.0
4
10
 
5
11
  - `tokens.create` and `tokens.revoke` of `Sendora` and `AsyncSendora` are
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: sendora
3
- Version: 2.9.0
3
+ Version: 2.9.1
4
4
  Summary: The Python client for Sendora's email API.
5
5
  Project-URL: Homepage, https://sendora.se/docs
6
6
  License-Expression: MIT
@@ -448,9 +448,9 @@ sendora = Sendora(server.token.token)
448
448
  ```
449
449
 
450
450
  A server is created with its default transactional stream and its first
451
- key, whose value is in the answer this once. A server holds up to two
452
- live keys and never falls below one, so rotation is create the new key,
453
- switch to it, revoke the old one.
451
+ key, whose value is in the answer this once. A server holds up to ten
452
+ live keys, so each system can have its own, and never falls below one.
453
+ Rotation is create the new key, switch to it, revoke the old one.
454
454
 
455
455
  | Call | Answers |
456
456
  | ---------------------------------------------------- | ------------------------------------------------------------------------------------ |
@@ -459,7 +459,7 @@ switch to it, revoke the old one.
459
459
  | `account.servers.get(server_id)` | One server |
460
460
  | `account.servers.update(server_id, name=)` | The renamed server |
461
461
  | `account.servers.delete(server_id)` | `None`; `server_in_flight` while its messages are still being delivered |
462
- | `account.servers.tokens.create(server_id, name=)` | `CreatedToken` with its `token` value, once; a third live key is `token_limit` |
462
+ | `account.servers.tokens.create(server_id, name=)` | `CreatedToken` with its `token` value, once; an eleventh live key is `token_limit` |
463
463
  | `account.servers.tokens.list(server_id)` | `TokenList` with `tokens`, revoked ones included |
464
464
  | `account.servers.tokens.get(server_id, token_id)` | One key, without its value |
465
465
  | `account.servers.tokens.revoke(server_id, token_id)` | `None`; the last live key is refused (`last_token`) |
@@ -594,7 +594,7 @@ except SendoraError as error:
594
594
  | `last_token` | 409 | The only live key cannot be revoked. |
595
595
  | `last_secret` | 409 | The only live secret of a webhook cannot be deleted. |
596
596
  | `secret_limit` | 409 | The webhook already holds two live secrets; `max` says how many. |
597
- | `token_limit` | 409 | The server or the account already holds two live keys; `max` says how many. |
597
+ | `token_limit` | 409 | The server already holds ten live keys; `max` says how many. |
598
598
  | `server_exists` | 409 | The account already has a server with that name. |
599
599
  | `server_limit` | 409 | The account has as many servers as it may; `max` says how many. |
600
600
  | `server_reserved` | 409 | The server sends Sendora's own sign-in mail and cannot be renamed or removed. |
@@ -426,9 +426,9 @@ sendora = Sendora(server.token.token)
426
426
  ```
427
427
 
428
428
  A server is created with its default transactional stream and its first
429
- key, whose value is in the answer this once. A server holds up to two
430
- live keys and never falls below one, so rotation is create the new key,
431
- switch to it, revoke the old one.
429
+ key, whose value is in the answer this once. A server holds up to ten
430
+ live keys, so each system can have its own, and never falls below one.
431
+ Rotation is create the new key, switch to it, revoke the old one.
432
432
 
433
433
  | Call | Answers |
434
434
  | ---------------------------------------------------- | ------------------------------------------------------------------------------------ |
@@ -437,7 +437,7 @@ switch to it, revoke the old one.
437
437
  | `account.servers.get(server_id)` | One server |
438
438
  | `account.servers.update(server_id, name=)` | The renamed server |
439
439
  | `account.servers.delete(server_id)` | `None`; `server_in_flight` while its messages are still being delivered |
440
- | `account.servers.tokens.create(server_id, name=)` | `CreatedToken` with its `token` value, once; a third live key is `token_limit` |
440
+ | `account.servers.tokens.create(server_id, name=)` | `CreatedToken` with its `token` value, once; an eleventh live key is `token_limit` |
441
441
  | `account.servers.tokens.list(server_id)` | `TokenList` with `tokens`, revoked ones included |
442
442
  | `account.servers.tokens.get(server_id, token_id)` | One key, without its value |
443
443
  | `account.servers.tokens.revoke(server_id, token_id)` | `None`; the last live key is refused (`last_token`) |
@@ -572,7 +572,7 @@ except SendoraError as error:
572
572
  | `last_token` | 409 | The only live key cannot be revoked. |
573
573
  | `last_secret` | 409 | The only live secret of a webhook cannot be deleted. |
574
574
  | `secret_limit` | 409 | The webhook already holds two live secrets; `max` says how many. |
575
- | `token_limit` | 409 | The server or the account already holds two live keys; `max` says how many. |
575
+ | `token_limit` | 409 | The server already holds ten live keys; `max` says how many. |
576
576
  | `server_exists` | 409 | The account already has a server with that name. |
577
577
  | `server_limit` | 409 | The account has as many servers as it may; `max` says how many. |
578
578
  | `server_reserved` | 409 | The server sends Sendora's own sign-in mail and cannot be renamed or removed. |
@@ -1,3 +1,3 @@
1
1
  """The package's version: the build reads it, and every request names it."""
2
2
 
3
- __version__ = "2.9.0"
3
+ __version__ = "2.9.1"
@@ -17,7 +17,7 @@ from sendora.types import (
17
17
 
18
18
 
19
19
  class ServerTokens:
20
- """The keys of one server; a server holds at most two live keys."""
20
+ """The keys of one server; a server holds at most ten live keys."""
21
21
 
22
22
  def __init__(self, transport: SyncTransport) -> None:
23
23
  """Takes the client's transport."""
@@ -37,7 +37,7 @@ class ServerTokens:
37
37
  The key, with its value in ``token``.
38
38
 
39
39
  Raises:
40
- ConflictError: The server holds two live keys (``token_limit``).
40
+ ConflictError: The server holds ten live keys (``token_limit``).
41
41
 
42
42
  Example:
43
43
  >>> created = account.servers.tokens.create(server_id, name="CI")
@@ -201,7 +201,7 @@ class Servers:
201
201
 
202
202
 
203
203
  class AsyncServerTokens:
204
- """The keys of one server; a server holds at most two live keys."""
204
+ """The keys of one server; a server holds at most ten live keys."""
205
205
 
206
206
  def __init__(self, transport: AsyncTransport) -> None:
207
207
  """Takes the client's transport."""
@@ -221,7 +221,7 @@ class AsyncServerTokens:
221
221
  The key, with its value in ``token``.
222
222
 
223
223
  Raises:
224
- ConflictError: The server holds two live keys (``token_limit``).
224
+ ConflictError: The server holds ten live keys (``token_limit``).
225
225
 
226
226
  Example:
227
227
  >>> created = await account.servers.tokens.create(server_id, name="CI")
@@ -28,13 +28,13 @@ and every event is in it.
28
28
  it.
29
29
  - A server is created with its first key:
30
30
  `account.servers.create(name=...)` answers `token.token` once, and
31
- `Sendora(token)` sends with it. A server or the account holds at most
32
- two live keys, so rotate by creating the new key, switching to it, then
33
- revoking the old one; the last live key can never be revoked. The account
34
- key creates and revokes a server's keys (`account.servers.tokens`). A
35
- server key only reads them (`sendora.tokens.list()` and `.get()`); its
36
- `tokens.create` and `tokens.revoke` are deprecated and refused
37
- (`wrong_token_kind`).
31
+ `Sendora(token)` sends with it. A server holds at most ten live keys,
32
+ so each system can have its own, and the account two. Rotate by creating
33
+ the new key, switching to it, then revoking the old one; the last live
34
+ key can never be revoked. The account key creates and revokes a
35
+ server's keys (`account.servers.tokens`). A server key only reads them
36
+ (`sendora.tokens.list()` and `.get()`); its `tokens.create` and
37
+ `tokens.revoke` are deprecated and refused (`wrong_token_kind`).
38
38
  - For tests and CI, use a test server:
39
39
  `account.servers.create(name=..., mode="test")`. It accepts, logs and
40
40
  fires webhooks like a live one but delivers nothing; its keys start
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes