Novu

3.13.0 · active · verified Fri Mar 27

Open-source notification infrastructure. The official Python SDK is novu-py (pip install novu-py, import novu_py), NOT the older community packages novu or novu-python. Current version is 3.13.0 (Jan 2026). Three separate PyPI packages exist with different APIs — using the wrong one is the #1 footgun.

Warnings

Install

Imports

Quickstart

Official novu-py SDK. Use context manager for resource cleanup in long-lived apps.

from novu_py import Novu

# Initialize with your Novu API key
novu = Novu(secret_key='YOUR_NOVU_API_KEY')

# Trigger a notification workflow
response = novu.trigger(
    workflow_id='welcome-email',  # workflow ID from Novu dashboard
    to={
        'subscriber_id': 'user-123',
        'email': 'alice@example.com',
        'first_name': 'Alice'
    },
    payload={
        'company': 'Acme Corp',
        'action_url': 'https://app.example.com'
    }
)
print(response)

# Use as context manager for proper cleanup
with Novu(secret_key='YOUR_NOVU_API_KEY') as novu:
    novu.trigger(
        workflow_id='password-reset',
        to={'subscriber_id': 'user-456'},
        payload={'reset_url': 'https://app.example.com/reset/token'}
    )

view raw JSON →