cue-notify-client
Python client for Cue, the attention layer between
software, AI agents and people. 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.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cue_notify_client-0.3.1.tar.gz | 150.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cue_notify_client-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 166.3 kB
Release files / cue_notify_client-0.3.1.tar.gz
| Download URL | cue_notify_client-0.3.1.tar.gz |
|---|---|
| Size | 150.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7db86ca772d919f0f9db4c72c400d8222563e87df99c0606aada18701d593b3
|
|
BLAKE2b-256 checksum How to use checksums |
0b072ff2c16a4e9733a41176e7cd8535e099518f63eaf63af7ecf1ef43882873
|
| 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 11, 2026.
Transparency logRelease files / cue_notify_client-0.3.1-py3-none-any.whl
| Download URL | cue_notify_client-0.3.1-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb2ac77cf7fab65ec7477302e63eab41428f18b75df6ef2304603b8ae521ccd5
|
|
BLAKE2b-256 checksum How to use checksums |
fba137f0565502d4c28dc94eaeff319e07a01f99417da1b129af36d76fda0382
|
| 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 11, 2026.
Transparency log