Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trycourier-9.2.0.tar.gz (269.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trycourier-9.2.0-py3-none-any.whl (429.1 kB view details)

Uploaded Python 3

File details

Details for the file trycourier-9.2.0.tar.gz.

File metadata

  • Download URL: trycourier-9.2.0.tar.gz
  • Upload date:
  • Size: 269.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.9

File hashes

Hashes for trycourier-9.2.0.tar.gz
Algorithm Hash digest
SHA256 c646d1830924efe34f67e5a3f0c9f22353f536dde9c63da9b0b5a3950b132cbe
MD5 25903e2f8eb7322e6a87f8c52558160c
BLAKE2b-256 cbd5bcb2b0ccdb5d6f9172bf837509cccc37b9bee3c4c9360f906757ab88a215

See more details on using hashes here.

File details

Details for the file trycourier-9.2.0-py3-none-any.whl.

File metadata

  • Download URL: trycourier-9.2.0-py3-none-any.whl
  • Upload date:
  • Size: 429.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.9

File hashes

Hashes for trycourier-9.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2aa38dbe14513ffd97deeb40bb8055bed3e3dd86cde8701c37c340dd6527fa7
MD5 5aeb0fd6853a6fd1a898b58e8f92ec4d
BLAKE2b-256 6c6b6cd9e0202c587d762b50cfb0a75e2cc3996effd59d59cb116b92f83c844d

See more details on using hashes here.

Release history Release notifications | RSS feed

9.4.3

2 files

9.4.2

2 files

9.4.1

2 files

9.4.0

2 files

9.3.0

2 files

This release

9.2.0 This release

2 files

9.1.0

2 files

9.0.0

2 files

8.0.0

2 files

7.26.2

2 files

7.26.1

2 files

7.26.0

2 files

7.25.0

2 files

7.24.0

2 files

7.23.0

2 files

7.22.0

2 files

7.21.0

2 files

7.20.0

2 files

7.19.2

2 files

7.19.1

2 files

7.19.0

2 files

7.18.2

2 files

7.18.1

2 files

7.18.0

2 files

7.17.1

2 files

7.17.0

2 files

7.16.0

2 files

7.15.0

2 files

7.14.0

2 files

7.13.0

2 files

7.12.0

2 files

7.11.2

2 files

7.11.1

2 files

7.11.0

2 files

7.10.0

2 files

7.9.0

2 files

7.8.0

2 files

7.7.1

2 files

7.7.0

2 files

7.6.1

2 files

7.6.0

2 files

7.5.0

2 files

7.4.0

2 files

7.3.0

2 files

7.2.0

2 files

7.1.1

2 files

7.1.0

2 files

7.0.1

2 files

7.0.0

2 files

6.2.1

2 files

6.2.0

2 files

6.1.0

2 files

6.0.5

2 files

6.0.4

2 files

6.0.3

2 files

6.0.2

2 files

6.0.1

2 files

6.0.0

2 files

5.0.0

2 files

4.7.0

2 files

4.6.0

2 files

4.5.0

2 files

4.4.0

2 files

4.2.0

2 files

4.1.0

2 files

4.0.0

2 files

3.0.0

2 files

2.0.0

2 files

1.9.0

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page