Skip to main content

Official Python SDK for the Sandesh notification API.

Project description

sandesh-sdk

Official Python SDK for the Sandesh notification API.

License

This SDK is licensed under the MIT License.

See ../LICENSE.

Install

pip install sandesh-sdk

Quick start

from sandesh.sdk import Sandesh

client = Sandesh(
    base_url="https://your-sandesh-api.example.com",
    bearer_token="your_jwt_or_api_key",
)

result = client.events_trigger(
    {
        "name": "vendor-assessment-form-to-vendor",
        "to": {"subscriberId": "vendor-contact-1"},
        "payload": {
            "organisation": "Acme Corp",
            "vendor_name": "Globex",
            "assessment_name": "Vendor Risk Check",
            "due_date": "April 30, 2026",
            "url": "https://app.example.com/assessment?id=123",
        },
        "overrides": {
            "email": {
                "cc": ["risk@example.com"],
                "subject": "Reminder: Vendor Risk Check",
            }
        },
    }
)

print(result)

Covered methods

  • Events: strict and legacy trigger methods.
  • Subscribers: create/get/list/update/deactivate.
  • Notifications: create/list/get/seen/unseen/retry/resend.
  • Templates: list/create/get/update/delete/preview/validate.
  • Integrations and credentials.
  • Settings, SES helpers, stats, and health.

If your code currently uses Novu-style classes, switch imports only:

from sandesh.api import EventApi, SubscriberApi
from sandesh.dto import SubscriberDto

Publish to PyPI

  1. Build distribution files:
python -m pip install --upgrade build twine
python -m build
  1. Validate package metadata:
python -m twine check dist/*
  1. Upload to TestPyPI (recommended first):
python -m twine upload --repository testpypi dist/*
  1. Upload to PyPI:
python -m twine upload dist/*

Set credentials using environment variables before uploading:

  • TWINE_USERNAME=__token__
  • TWINE_PASSWORD=<your_pypi_api_token>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sandesh_sdk-0.3.1.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sandesh_sdk-0.3.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file sandesh_sdk-0.3.1.tar.gz.

File metadata

  • Download URL: sandesh_sdk-0.3.1.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for sandesh_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 06b5ef7a0af7128746a4592734324c7f70c6a034fcea3edb80aa955bfee9caf7
MD5 b7f236d146617edf5d2ad92d4b8474ea
BLAKE2b-256 3efcb5b386e697d7f8e310b320a59623e2dec50b345c0e72c3cb59498bdf35ae

See more details on using hashes here.

File details

Details for the file sandesh_sdk-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: sandesh_sdk-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for sandesh_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b314a01af489abb54cd9afbf9fe5192cbb40f63b1159b19ced565db433f030c
MD5 5a7b9ba1ff28d16dcae5357bcbaa3f20
BLAKE2b-256 02f668e0bccb5756bf5f0eaf7f570426efe528b2a4a70acf9af2ee8e5f4eba25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page