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
- Build distribution files:
python -m pip install --upgrade build twine
python -m build
- Validate package metadata:
python -m twine check dist/*
- Upload to TestPyPI (recommended first):
python -m twine upload --repository testpypi dist/*
- Upload to PyPI:
python -m twine upload dist/*
Set credentials using environment variables before uploading:
TWINE_USERNAME=__token__TWINE_PASSWORD=<your_pypi_api_token>
Build compiled wheel (Cython)
To ship a binary wheel with Cython-compiled SDK modules, build with
SANDESH_BUILD_COMPILED=1.
Windows PowerShell:
$env:SANDESH_BUILD_COMPILED="1"
python -m pip install --upgrade build cython
python -m build --wheel
Standard source + wheel build (default, no Cython compilation):
Remove-Item Env:SANDESH_BUILD_COMPILED -ErrorAction Ignore
python -m build
Notes:
- Compiled wheels require a local C/C++ toolchain (for example, Microsoft C++ Build Tools on Windows).
- This raises reverse-engineering difficulty but cannot provide absolute code secrecy in Python packaging.
IDE / Pylance types (.pyi)
Core modules may ship as compiled extensions (.pyd). Type checkers cannot
read those, so the package includes stub files (*.pyi) and py.typed
for autocomplete and static analysis (EventApi, SubscriberApi,
SubscriberDto, Sandesh, etc.).
Metadata
Release files for sandesh-sdk 0.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sandesh_sdk-0.4.7-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details for sandesh_sdk-0.4.7-cp312-cp312-win_amd64.whl |
Release files / sandesh_sdk-0.4.7-cp312-cp312-win_amd64.whl
| Download URL | sandesh_sdk-0.4.7-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 517.4 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
770f0515b5414b0f3b5f54d5452ec5a70f5461911ab2b0a9912ef7109c192b74
|
|
BLAKE2b-256 checksum How to use checksums |
6e37c8796ab782afbf89138fd392bf50084ef7f08ecc1aad18f3e4730e334b8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for sandesh-sdk 0.4.7
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.