Skip to main content

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_key is required for enterprise features, where applicable.
  • api_key represents 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


Download files

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

Source Distribution

kadoa_sdk-0.2.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

kadoa_sdk-0.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file kadoa_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: kadoa_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for kadoa_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b3e106ad278d85db5b6190c4c8e33ae4d3075cecb6f5a7311909d536266b1884
MD5 e96fa91a74ee8b24eb1bcfb58baf2e1b
BLAKE2b-256 78cf300fe28592065827f7680083969d8b53181e22280e26ef132fc56c63028f

See more details on using hashes here.

File details

Details for the file kadoa_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: kadoa_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for kadoa_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 665285423a0c22c41bc176fa926eae14fc7beb9652a324cb017d61195371e6e4
MD5 4aafde63f7c56923f0aabb2bf454174d
BLAKE2b-256 e727a53583c638c55cced601148192bf4068e70f91699e22962d74d5c82a2651

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