SDKs & Libraries

Official SDKs and community libraries to integrate KSP Cloud into your applications

PythonJavaScriptJavaGoArduinoC# / .NET

Official SDKs

Maintained by KSP Electronics with comprehensive documentation and support

🐍

Python SDK

v1.2.0
5.2K

Official Python library for KSP Cloud API. Perfect for data science and automation.

Type hintsAsync supportPandas integrationCLI tools
pip install ksp-cloud
DocsGitHub
📦

JavaScript SDK

v2.1.3
12.4K

Browser and Node.js compatible SDK. Build web apps and dashboards.

TypeScript supportReact hooksWebSocket eventsTree-shakeable
npm install @ksp/cloud-sdk
DocsGitHub

Java SDK

v1.0.5
3.1K

Enterprise-grade Java library for Android and server applications.

Android supportReactive streamsBuilt-in retryThread-safe
implementation "com.ksp:cloud-sdk:1.0.5"
DocsGitHub
🔷

Go SDK

v0.9.2
1.8K

Lightweight Go package for high-performance applications.

Context supportZero dependenciesConcurrent-safeMinimal overhead
go get github.com/ksp-electronics/ksp-go-sdk
DocsGitHub
🤖

Arduino Library

v1.5.0
8.9K

Connect Arduino devices directly to KSP Cloud. ESP8266/ESP32 compatible.

WiFi auto-connectOTA updatesLow memoryExample sketches
Arduino Library Manager: "KSP Cloud"
DocsGitHub
🔷

C# / .NET SDK

v1.1.0
2.3K

Cross-platform .NET library for Windows, Linux, and macOS.

Async/await.NET 6+ supportDependency injectionStrong typing
dotnet add package KSP.Cloud.SDK
DocsGitHub

Quick Start Examples

🐍

Python SDK

# Install
pip install ksp-cloud

# Usage
from ksp_cloud import KSPClient

# Initialize client
client = KSPClient(api_key="your_api_key")

# Get all devices
devices = client.devices.list()
print(f"Found {len(devices)} devices")

# Get device data
data = client.devices.get_data("deltax_001")
print(f"Temperature: {data.temperature}°C")

# Set up alert
client.alerts.create(
    device_id="deltax_001",
    min_temp=2.0,
    max_temp=8.0,
    notify_whatsapp=True
)

# Get historical data
history = client.devices.get_history(
    device_id="deltax_001",
    start="2025-12-01",
    end="2025-12-07",
    interval="1h"
)

# Export to pandas DataFrame
df = history.to_dataframe()
print(df.describe())
📦

JavaScript SDK

// Install
npm install @ksp/cloud-sdk

// Usage (Node.js / Browser)
import { KSPClient } from '@ksp/cloud-sdk';

// Initialize client
const client = new KSPClient({
  apiKey: 'your_api_key'
});

// Get all devices
const devices = await client.devices.list();
console.log(`Found ${devices.length} devices`);

// Get device data
const data = await client.devices.getData('deltax_001');
console.log(`Temperature: ${data.temperature}°C`);

// Real-time updates with WebSocket
client.subscribe('deltax_001', (data) => {
  console.log('New reading:', data.temperature);
});

// React Hook Example
import { useDevice } from '@ksp/cloud-sdk/react';

function DeviceMonitor() {
  const { data, loading } = useDevice('deltax_001');

  if (loading) return <div>Loading...</div>;

  return (
    <div>
      Temperature: {data.temperature}°C
    </div>
  );
}
🤖

Arduino Library

// Install via Arduino Library Manager: "KSP Cloud"

#include <KSPCloud.h>

// Initialize
KSPCloud cloud("your_api_key");

void setup() {
  Serial.begin(115200);

  // Connect to WiFi
  cloud.begin("YourWiFi", "YourPassword");

  // Register device
  cloud.registerDevice("my_sensor");
}

void loop() {
  // Read sensor
  float temp = readTemperature();

  // Send to cloud
  cloud.send("temperature", temp);

  // Check for OTA updates
  cloud.checkUpdate();

  delay(60000); // Send every minute
}

float readTemperature() {
  // Your sensor reading code
  return 25.3;
}

Community Libraries

Third-party integrations and tools built by the community

ksp-grafana-datasource

TypeScript

Grafana data source plugin for KSP Cloud

by communityView

homeassistant-ksp

Python

Home Assistant integration for KSP devices

by communityView

ksp-influxdb-bridge

Go

Export KSP data to InfluxDB

by communityView

Built something cool with KSP Cloud?

Share on GitHub

Need Help with Integration?

Check out our comprehensive documentation and code examples