Kadoa official python SDK
Project description
Python SDK
Requirements
- Python 3.10+
Get Started
pip install kadoa-sdk
It is recommended to store Kadoa credentials in a .env file and use the python-dotenv library to make the API key available at runtime. Also, ensure that these .env files are excluded from version control.
Client Initialization
import os
from kadoa_sdk import Kadoa
kadoa_props = {
"api_key": None,
"team_api_key": os.getenv("KADOA_TEAM_API_KEY")
}
kadoa_client = Kadoa(**kadoa_props)
team_api_keyis required for enterprise features, where applicable.api_keyrepresents a personal API key, used where a personal API key is applicable.
Features
Real-time Events Monitoring
You can bring your own processing function to handle real-time monitoring events, as shown below:
def custom_process_event(event):
# Process event
kadoa_client.realtime.listen(custom_process_event)
If authentication succeeds for realtime.listen, you should see "Connected" displayed and receive heartbeat events similar to this: Heartbeat received {'type': 'heartbeat', 'timestamp': 1736101321032} periodically (e.g., every 15 seconds).
The client will automatically attempt to reconnect if it does not receive a heartbeat.
Note that if a monitoring message is not delivered during the reconnection process, it will be delivered as soon as the client reconnects (either manually when restarting the program or automatically if no heartbeat is received).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kadoa_sdk-0.2.1.tar.gz.
File metadata
- Download URL: kadoa_sdk-0.2.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8eb34b097c982595645ebab3f08eb0203a45d5d8f50fde1bc35cb087f76ce41
|
|
| MD5 |
10f30c9506c8c89e479a23aecac1a111
|
|
| BLAKE2b-256 |
5b4a524db16646fbb6d212d23829507811dd89a5c96766edc8e32613e0018351
|
File details
Details for the file kadoa_sdk-0.2.1-py3-none-any.whl.
File metadata
- Download URL: kadoa_sdk-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5efa93891bfdbf830981987da20e18f0ebcbd6c923e4fc62a4107f72d77642ca
|
|
| MD5 |
5ba52d9206d8f75c144340ce1da18931
|
|
| BLAKE2b-256 |
f5ef4850613cd4a88b86be5b8fec89378b6659fe06523626166ef0c2aa6c670b
|