unitpost 0.2.0__tar.gz → 0.3.0__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: unitpost
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Official Unitpost SDK for Python — send email and manage contacts, segments, campaigns, templates, brand kits, domains, suppressions, webhooks, and usage.
5
5
  Project-URL: Homepage, https://www.unitpost.com
6
6
  Project-URL: Documentation, https://www.unitpost.com/docs
@@ -66,15 +66,15 @@ Pass the key to `Unitpost(...)`, or set `UNITPOST_API_KEY`. Create a key at
66
66
 
67
67
  | Accessor | Covers |
68
68
  | --- | --- |
69
- | `emails` | Send, batch, list, get, update, stats, inbound (`received_*`) |
69
+ | `email` | Send, batch, list, get, update, stats, inbound (`received_*`) |
70
+ | `email.topics` | Topics + contact topic prefs |
71
+ | `email.campaigns` | Draft, schedule, send, pause/resume |
72
+ | `email.templates` | Template CRUD |
73
+ | `email.domains` | Domains + verify |
70
74
  | `contacts` | CRUD, import jobs |
71
75
  | `contact_fields` | Custom field definitions |
72
76
  | `segments` | Segments + membership |
73
- | `topics` | Topics + contact topic prefs |
74
- | `campaigns` | Draft, schedule, send, pause/resume |
75
- | `templates` | Template CRUD |
76
77
  | `brand_kits` | Brand kit |
77
- | `domains` | Domains + verify |
78
78
  | `webhooks` | Endpoints + `verify()` |
79
79
  | `api_keys` | API key management |
80
80
  | `suppressions` | Suppression list |
@@ -129,7 +129,7 @@ event = client.webhooks.verify(payload=raw_body, secret=secret, headers=request.
129
129
 
130
130
  ## Idempotency
131
131
 
132
- `emails.send` and `emails.batch` are safe to retry by default — if you don't pass
132
+ `email.send` and `email.batch` are safe to retry by default — if you don't pass
133
133
  `idempotency_key`, the SDK generates one so an automatic retry can't double-send.
134
134
  Pass your own to dedupe across separate calls:
135
135
 
@@ -149,7 +149,7 @@ Transient failures are retried automatically: `429`, `5xx`, and transport errors
149
149
  `Retry-After` is honored; otherwise exponential backoff with full jitter is used.
150
150
  Client errors (`401`/`403`/`404`/`409`/`422`) are never retried. Only requests
151
151
  safe to replay are retried: `GET`s and writes carrying an idempotency key (which
152
- `emails.send` and `emails.batch` always do); any other keyless write is never
152
+ `email.send` and `email.batch` always do); any other keyless write is never
153
153
  auto-retried.
154
154
 
155
155
  ```python
@@ -43,15 +43,15 @@ Pass the key to `Unitpost(...)`, or set `UNITPOST_API_KEY`. Create a key at
43
43
 
44
44
  | Accessor | Covers |
45
45
  | --- | --- |
46
- | `emails` | Send, batch, list, get, update, stats, inbound (`received_*`) |
46
+ | `email` | Send, batch, list, get, update, stats, inbound (`received_*`) |
47
+ | `email.topics` | Topics + contact topic prefs |
48
+ | `email.campaigns` | Draft, schedule, send, pause/resume |
49
+ | `email.templates` | Template CRUD |
50
+ | `email.domains` | Domains + verify |
47
51
  | `contacts` | CRUD, import jobs |
48
52
  | `contact_fields` | Custom field definitions |
49
53
  | `segments` | Segments + membership |
50
- | `topics` | Topics + contact topic prefs |
51
- | `campaigns` | Draft, schedule, send, pause/resume |
52
- | `templates` | Template CRUD |
53
54
  | `brand_kits` | Brand kit |
54
- | `domains` | Domains + verify |
55
55
  | `webhooks` | Endpoints + `verify()` |
56
56
  | `api_keys` | API key management |
57
57
  | `suppressions` | Suppression list |
@@ -106,7 +106,7 @@ event = client.webhooks.verify(payload=raw_body, secret=secret, headers=request.
106
106
 
107
107
  ## Idempotency
108
108
 
109
- `emails.send` and `emails.batch` are safe to retry by default — if you don't pass
109
+ `email.send` and `email.batch` are safe to retry by default — if you don't pass
110
110
  `idempotency_key`, the SDK generates one so an automatic retry can't double-send.
111
111
  Pass your own to dedupe across separate calls:
112
112
 
@@ -126,7 +126,7 @@ Transient failures are retried automatically: `429`, `5xx`, and transport errors
126
126
  `Retry-After` is honored; otherwise exponential backoff with full jitter is used.
127
127
  Client errors (`401`/`403`/`404`/`409`/`422`) are never retried. Only requests
128
128
  safe to replay are retried: `GET`s and writes carrying an idempotency key (which
129
- `emails.send` and `emails.batch` always do); any other keyless write is never
129
+ `email.send` and `email.batch` always do); any other keyless write is never
130
130
  auto-retried.
131
131
 
132
132
  ```python
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "unitpost"
7
- version = "0.2.0"
7
+ version = "0.3.0"
8
8
  description = "Official Unitpost SDK for Python — send email and manage contacts, segments, campaigns, templates, brand kits, domains, suppressions, webhooks, and usage."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"