Skip to main content

Kiponos Python SDK for real-time configuration management via WebSocket/STOMP for Kiponos.io

Project description

Kiponos Python SDK

The Kiponos Python SDK enables real-time configuration management via WebSocket/STOMP. It connects to the Kiponos server, fetches a configuration tree, and subscribes to updates for dynamic config changes.

Installation

Install via pip:

pip install kiponos-pysdk

Prerequisites

  • Python 3.12 or higher
  • Environment variables: KIPONOS_ID and KIPONOS_ACCESS (obtain from your Kiponos team account)

Usage

Basic Example

from kiponos_pysdk import KiponosClient

# Initialize client
client = KiponosClient(
    server_url="wss://kiponos.io/api/io-kiponos-sdk",
    kiponos="['Kiponos-Server']['3.0']['Dev']['Factory-Settings']"
)

try:
    # Connect and fetch config
    client.connect()
    print(f"Team ID: {client.team_id}")
    print(f"Value: {client.get('tag-test', 'not found')}")

    # Keep program running to receive updates
    input("Press Enter to exit...")
finally:
    client.close()

Interactive Example

Run example_app.py for an interactive CLI:

poetry run python example_app.py

Commands:

  • get <key>: Get value for a key
  • list-keys: List all config keys
  • dump: Print the entire config tree
  • exit: Stop the program

Configuration

Set environment variables:

export KIPONOS_ID="your-kiponos-id"
export KIPONOS_ACCESS="your-kiponos-access"

License

MIT License. See LICENSE for details.

Support

Contact: support@kiponos.io Homepage: https://kiponos.io

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

kiponos_pysdk-0.1.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

kiponos_pysdk-0.1.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file kiponos_pysdk-0.1.2.tar.gz.

File metadata

  • Download URL: kiponos_pysdk-0.1.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.3 Linux/6.5.0-41-generic

File hashes

Hashes for kiponos_pysdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 db8b68119ee8992be87a3f45946b332e68a20c5cfc733e8e40fc04ae4c1c96c3
MD5 e8602c9035e1275c71e0cd7fbdd5bec7
BLAKE2b-256 13229768d2d8c420edadee03f18937a3c39cf06d38fd9e3bf0c32234a9bafe68

See more details on using hashes here.

File details

Details for the file kiponos_pysdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: kiponos_pysdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.3 Linux/6.5.0-41-generic

File hashes

Hashes for kiponos_pysdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe89b1f1ea5e39733e17d71eb992f9004f476a70cd8ff2b60ca979f855fb756f
MD5 8fb96c3cf4e0492dd756d3840a54545d
BLAKE2b-256 966b01519b2c2e6d0f42648108554b492c0d948ae5487e4cc9282ea9e1acfed2

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