Courier Python SDK
The Courier Python SDK provides typed access to the Courier REST API from Python applications. Use it to send notifications, manage user profiles, check message status, issue JWT tokens for client-side SDKs, and more.
Installation
pip install trycourier
Requires Python 3.8+.
Quick Start
import os
from courier import Courier
client = Courier(
api_key=os.environ.get("COURIER_API_KEY"), # the default, can be omitted
)
response = client.send.message(
message={
"to": {"user_id": "your_user_id"},
"template": "your_template_id",
"data": {"foo": "bar"},
},
)
print(response.request_id)
The client reads COURIER_API_KEY from your environment automatically.
An async client is also available as AsyncCourier, with the same methods.
Documentation
Full documentation: courier.com/docs/sdk-libraries/python
Release files for trycourier 9.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trycourier-9.6.0.tar.gz | 282.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trycourier-9.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 746.8 kB
Release files / trycourier-9.6.0.tar.gz
| Download URL | trycourier-9.6.0.tar.gz |
|---|---|
| Size | 282.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
231bede3cdb7babbc6c5cc0c95f6f10dad94e9d7d4ae2f7ada19ba8ca3a431d1
|
|
BLAKE2b-256 checksum How to use checksums |
2265a9f40fd6a9e1a97c70a45b4d92aa12cab2d3496d51ff035cd521facc0a9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.9
|
Release files / trycourier-9.6.0-py3-none-any.whl
| Download URL | trycourier-9.6.0-py3-none-any.whl |
|---|---|
| Size | 464.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7169a6da60f40799921cbb4e2214236f62e0e58c70557e5721b9feed9e93e016
|
|
BLAKE2b-256 checksum How to use checksums |
a9842f27287ae754ef20cf80ed62ccd032c1b7d6ada53ea932f15e0d931a0137
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.9
|