Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.suprsend.com/llms.txt

Use this file to discover all available pages before exploring further.

Installation

1

Install 'libmagic' system package.

You can skip this step if you already have this package installed in your system.
# if you are using linux / debian based systems
sudo apt install libmagic

# If you are using macOS
brew install libmagic
2

Install 'suprsend-py-sdk' using pip

$ pip install suprsend-py-sdk

# to upgrade to latest SDK version

$ pip install suprsend-py-sdk --upgrade
Python version 3.7 or later is requiredIf your python3 version is lower than 3.7, upgrade it.
Schema Validation Support: If you’re using schema validation for workflow payloads, you need Python SDK v0.15.0 or later. The API response format was modified to support schema validation, and older SDK versions may not properly handle validation errors.

Initialization

For initializing SDK, you need workspace_key and workspace_secret. You will get both the tokens from your Suprsend dashboard (Developers -> API Keys).
from suprsend import Suprsend
# Initialize SDK
supr_client = Suprsend("WORKSPACE KEY", "WORKSPACE SECRET")