Skip to main content

Kadoa official python SDK

Project description

Python SDK

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.1.6.tar.gz (4.5 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.1.6-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kadoa_sdk-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e222d33838b0924324d385a972bbabf8b8647002c1cfaf640efcdac8a07b3330
MD5 29c05a6db89cd1d33335de8aad933b76
BLAKE2b-256 5223c6b3cd6960a90a4524b14f71fbbae564aede5cbbb976552f1b1f54651945

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kadoa_sdk-0.1.6-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.12

File hashes

Hashes for kadoa_sdk-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c22dd360384871913ad9f719d1badcff57eb3bb0c46a35a108f6239b7c0b1ae6
MD5 070bc5cbb955badd1f0415f81beeb3cd
BLAKE2b-256 bf1cb1a43320b6f4db9eeef525e137dcebae9dbb1f6d7efbcf2f90d20cac7e3c

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