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

Metadata

Release files for trycourier 10.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trycourier 10.0.1
File Size Uploaded Provenance Actions
trycourier-10.0.1.tar.gz 304.9 kB Without provenance Details for trycourier-10.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trycourier 10.0.1
File Interpreter ABI Platform Actions
trycourier-10.0.1-py3-none-any.whl Python 3 none any Details for trycourier-10.0.1-py3-none-any.whl

Total release size: 799.5 kB

Release files / trycourier-10.0.1.tar.gz

Download URL trycourier-10.0.1.tar.gz
Size 304.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c7e48374ddb9e9dd4c0566065056238b4d31e37d8c6110d9de8ea5e2f69b117b
BLAKE2b-256 checksum
How to use checksums
82d9d61cda3aa3cdef62c5e1cdde3aaf4b68cd6f0251941a4c59407ecf5baa56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.9

Release files / trycourier-10.0.1-py3-none-any.whl

Download URL trycourier-10.0.1-py3-none-any.whl
Size 494.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1baa2b5a0dd3694ec7d31ab3ebf4d31cb9e16041b970482f24bf945247e4924f
BLAKE2b-256 checksum
How to use checksums
9ed3c5ffda08d912e8d16fa69e645f3102dbd1abb9eaee5317a8c9c026aa786c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.9

Security for trycourier 10.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

10.0.1 This release

2 release files No provenance

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