unitpost 0.2.1__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.
- {unitpost-0.2.1 → unitpost-0.3.0}/PKG-INFO +9 -9
- {unitpost-0.2.1 → unitpost-0.3.0}/README.md +7 -7
- {unitpost-0.2.1 → unitpost-0.3.0}/pyproject.toml +1 -1
- unitpost-0.3.0/src/unitpost/_generated/models.py +805 -0
- {unitpost-0.2.1 → unitpost-0.3.0}/src/unitpost/_generated/operations.py +42 -0
- {unitpost-0.2.1 → unitpost-0.3.0}/src/unitpost/_http.py +1 -1
- {unitpost-0.2.1 → unitpost-0.3.0}/src/unitpost/resources.py +22 -0
- unitpost-0.2.1/src/unitpost/_generated/models.py +0 -2652
- {unitpost-0.2.1 → unitpost-0.3.0}/.gitignore +0 -0
- {unitpost-0.2.1 → unitpost-0.3.0}/package.json +0 -0
- {unitpost-0.2.1 → unitpost-0.3.0}/src/unitpost/__init__.py +0 -0
- {unitpost-0.2.1 → unitpost-0.3.0}/src/unitpost/_client.py +0 -0
- {unitpost-0.2.1 → unitpost-0.3.0}/src/unitpost/_generated/__init__.py +0 -0
- {unitpost-0.2.1 → unitpost-0.3.0}/src/unitpost/_webhooks.py +0 -0
- {unitpost-0.2.1 → unitpost-0.3.0}/tests/test_retry.py +0 -0
- {unitpost-0.2.1 → unitpost-0.3.0}/tests/test_sdk.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: unitpost
|
|
3
|
-
Version: 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
|
-
| `
|
|
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
|
-
`
|
|
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
|
-
`
|
|
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
|
-
| `
|
|
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
|
-
`
|
|
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
|
-
`
|
|
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.
|
|
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"
|