Skip to main content

cue-notify-client

Python client for Cue, a self-hosted notification decision engine. Its only dependency is httpx.

pip install cue-notify-client

The package is imported as cue_client.

from cue_client import Cue

with Cue(api_key="ck_…", base_url="https://cue.example.com") as cue:
    cue.upsert_recipient(
        "user-42",
        timezone="Europe/Berlin",
        addresses=[{"channel": "email", "value": "ann@example.com"}],
    )
    cue.send_event(
        "order.shipped", "user-42", {"order_id": "1001"}, idempotency_key="order-1001-shipped"
    )

AsyncCue has the same methods for asyncio. Errors raise CueError with the problem details Cue returns (status, title, detail, errors). Rate limits and gateway errors are retried automatically for requests that are safe to repeat: reads, profile updates, and sends with an idempotency key.

Verifying webhooks

If Cue delivers to your service through its webhook connector, check every request before trusting it:

from cue_client import InvalidSignatureError, verify_webhook


def handle(request):
    try:
        verify_webhook(request.body, request.headers.get("Cue-Signature"), secret=WEBHOOK_SECRET)
    except InvalidSignatureError:
        return 401
    message = json.loads(request.body)
    ...

Verify the raw body bytes, before parsing them. Requests signed more than five minutes ago are rejected (tolerance= changes this).

Asking a person first

asked = cue.request_approval("Refund order 9?", ["lead"], body="Never arrived.")
cue.get_approval(asked["id"])["status"]  # pending, approved, rejected or expired

CrewAI Flows: cue_client.crewai.CueFeedbackProvider. Dapr Agents: cue_client.dapr.approval_request and approval_response. See approval requests.

Metadata

Release files for cue-notify-client 0.4.0

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

Source distribution (sdist)

Source distribution for cue-notify-client 0.4.0
File Size Uploaded Provenance Actions
cue_notify_client-0.4.0.tar.gz 151.0 kB With provenance Details for cue_notify_client-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cue-notify-client 0.4.0
File Interpreter ABI Platform Actions
cue_notify_client-0.4.0-py3-none-any.whl Python 3 none any Details for cue_notify_client-0.4.0-py3-none-any.whl

Total release size: 167.3 kB

Release files / cue_notify_client-0.4.0.tar.gz

Download URL cue_notify_client-0.4.0.tar.gz
Size 151.0 kB
Tags Source
SHA-256 checksum
How to use checksums
926191e42dd8e2c49551c1fc2204694d60d95f5fce9f9a8a5711d348166700df
BLAKE2b-256 checksum
How to use checksums
c69a9f3d82dbb9e97a8fe5317f100ea89b144ad808cad5f8b954a854395086c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / cue_notify_client-0.4.0-py3-none-any.whl

Download URL cue_notify_client-0.4.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d74939db1fe9de71cee6b8bc6ee79d1e86386b777dcbb1bab9a27ad14a4d3bf4
BLAKE2b-256 checksum
How to use checksums
feec6799a7b49d914775e85ad062bb837a12ebe1b0def27cc71a847fa9bb6bb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Security for cue-notify-client 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cue_notify_client-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

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.

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