Registry / communication / novu
library1.14.0pypypiunverified

A Python wrapper for the Novu API, enabling notification infrastructure management. Current version 1.14.0, requires Python >=3.8,<4.0. Release cadence is irregular.

pip install novu
INSTALL
IMPORT
SIG · NOVU
N
novu
communicationpythonv1.14.0
Install
2.0s avg
Import
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.14.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 22.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.0s · import 0.000s · 23MB
20MB installed
● package 20MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Novu
from novu import Novu
from novu.api import Novu

Initialize Novu client and trigger an event.

import os from novu.api import Novu, EventTrigger novu = Novu(api_key=os.environ.get('NOVU_API_KEY', '')) trigger = EventTrigger( name='onboarding-welcome', to={'subscriberId': 'subscriber-id', 'email': 'user@example.com'}, payload={'name': 'John'} ) response = novu.trigger(trigger) print(response.json())
Debug
Known issues
breakingImport path changed in v1.0: Novu moved from novu import Novu to novu.api import Novu.
fix
Use 'from novu.api import Novu' for v1+.
affects: <1.0 vs >=1.0
gotchaSubscriber object creation requires 'subscriberId', not 'id'.
fix
Use keyword argument 'subscriberId' when creating a Subscriber instance.
affects: all
gotchaAPI key must be passed as string, not via environment variable autodiscovery; there is no support for .env files natively.
fix
Explicitly pass api_key=os.environ.get('NOVU_API_KEY').
affects: all
deprecatedClient-less trigger method is deprecated; always use Novu().trigger() now.
fix
Create a Novu instance and call .trigger() on it.
affects: >=1.10
Upgrade
Version history
1.14.0latest on PyPI · released Feb 26, 2024
Audit
Dependencies
requestsrequiredHTTP client for API calls
Agent activity
27 hits · last 30 days
node
26
OpenAI (training)
1
Resources
novu — pip install novu · libregistry