notifications-python-client
Python API client for GOV.UK Notify.
What it is and what it does
This is an official Python client for GOV.UK Notify, a UK government service that handles transactional communications. It wraps the Notify API to let you send emails, SMS text messages, and physical letters from Python code without managing SMTP servers or carrier integrations yourself. The client handles authentication via PyJWT, makes HTTP requests through requests, and provides a command-line interface via docopt.
The package is maintained by the UK government's digital service (alphagov) and is actively developed. It targets modern Python versions (3.9 through 3.14) and is classified as Beta maturity. Use it when your application needs to send notifications through an official government channel or when you're building services that integrate with GOV.UK infrastructure.
Use it for:
- Send confirmation emails and SMS alerts from a UK government service or citizen-facing application.
- Notify users of application events (password resets, appointment reminders, status updates) via email or text.
- Dispatch physical letters for formal communications or official correspondence.
- Integrate transactional notifications into a larger government digital service without managing mail infrastructure.
- Batch-send notifications to multiple recipients using the Notify API from a Python backend.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client library for sending emails, text messages, and letters through the GOV.UK Notify API.
Yes, if you are building a service that uses GOV.UK Notify. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It is the official client and integrates cleanly with standard Python tooling. Not relevant outside the GOV.UK Notify ecosystem.
Install
notifications-python-client on PyPI
pip
pip install notifications-python-clientuv
uv add notifications-python-clientpoetry
poetry add notifications-python-clientInstalling notifications-python-client
Before you install
Low install friction with a pure-Python wheel distribution. The package is actively maintained with a recent release and depends on three stable, widely-used libraries: requests, PyJWT, and docopt.
License in practice
MIT license is permissive and places no significant restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install notifications-python-client
from notifications_python_client.notifications import NotificationsAPIClient
client = NotificationsAPIClient(api_key='your-api-key')
response = client.send_email_notification(email_address='user@example.com', template_id='template-id')
Requires a GOV.UK Notify account and API key to send notifications; the service is specific to UK government use.
Verify before relying
- Whether the package supports rate limiting or retry logic for production workloads.
- Whether async/await patterns are supported for concurrent notification sending.
- Specific rate limits or quotas imposed by the GOV.UK Notify service itself.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — requests, PyJWT, docopt |
| Maintenance | actively maintained — 80 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 209,804/month — #9,508 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: notifications_python_client-12.1.0-py3-none-any.whl
Keywords: gds, govuk, notify
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
sendgridSends emails and SMS messages via the Twilio…
permissive · top 1,000 on PyPI
sib-api-v3-sdkPython SDK for the SendinBlue REST API,…
unclear · top 15,000 on PyPI
notify_pySends cross-platform desktop notifications from…
permissive · top 15,000 on PyPI
onesignal-python-apiA Python client library for the OneSignal API…
unclear · top 15,000 on PyPI
azure-communication-emailSends emails via Azure Communication Services,…
permissive · top 5,000 on PyPI
smsapi-clientA Python client library for sending SMS…
permissive · top 15,000 on PyPI
govuk-bank-holidaysFetches and caches the official UK bank…
permissive · top 15,000 on PyPI
neverbounce-sdkPython client library for the NeverBounce email…
permissive · top 15,000 on PyPI
novuPython SDK for Novu's notification API,…
permissive · top 15,000 on PyPI
lobPython wrapper for the Lob.com API, providing…
permissive · top 15,000 on PyPI