Vehk SDKs Overview
Integrate with Vehk Axle using our official SDKs. Available for Python and JavaScript/TypeScript.
Quick Install
- Python
- JavaScript/TypeScript
pip install vehk-axle
npm install vehk-axle
Features
| Feature | Python SDK | JavaScript SDK |
|---|---|---|
| Send Telemetry | ✅ | ✅ |
| Batch Telemetry | ✅ | ✅ |
| Get Predictions | ✅ | ✅ |
| List Predictions | ✅ | ✅ |
| Vehicle Management | ✅ | ✅ |
| TypeScript Types | N/A | ✅ |
| Automatic Retries | ✅ | ✅ |
| Error Handling | ✅ | ✅ |
Authentication
All SDK methods require an API key. Generate one from your Vehk Dashboard → Settings → API Keys.
# Python
from vehk_axle import VehkClient
client = VehkClient(api_key="vehk_your_api_key_here")
// JavaScript/TypeScript
import { VehkClient } from 'vehk-axle';
const client = new VehkClient('vehk_your_api_key_here');
Quick Example
- Python
- JavaScript/TypeScript
from vehk_axle import VehkClient
client = VehkClient(api_key="vehk_your_key")
# Send telemetry data
client.telemetry.send(
vehicle_id="TRUCK-001",
sensor_data={
"speed": 65,
"rpm": 2500,
"coolant_temp": 92,
"fuel_level": 45
}
)
# Get ML prediction
prediction = client.predict(
vehicle_id="TRUCK-001",
sensor_data={"speed": 65, "rpm": 2500}
)
print(f"Health Score: {prediction.health_score}%")
print(f"Status: {prediction.health_status.value}")
print(f"Recommendations: {prediction.recommendations}")
import { VehkClient } from 'vehk-axle';
const client = new VehkClient('vehk_your_key');
// Send telemetry data
await client.telemetry.send({
vehicle_id: 'TRUCK-001',
sensor_data: {
speed: 65,
rpm: 2500,
coolant_temp: 92,
fuel_level: 45
}
});
// Get ML prediction
const prediction = await client.predictions.get('TRUCK-001', {
speed: 65,
rpm: 2500
});
console.log(`Health Score: ${prediction.health_score}%`);
console.log(`Recommendations:`, prediction.recommendations);
Package Links
Next Steps
- Python SDK Reference - Full Python SDK documentation
- JavaScript SDK Reference - Full JavaScript/TypeScript SDK documentation
- API Reference - Direct REST API documentation