import { CodeBlock } from '@/components/ui/CodeBlock'; import { SectionHeading } from '@/components/ui/SectionHeading'; import React from 'react'; export const SdkSection: React.FC = () => (
# Install the bundled Python SDK (from repo or local wheel/path){'\n'} pip install /path/to/datastack/sdk/python/datastack{'\n\n'} # Auto-loads config.datastack.py from project root{'\n'} from datastack import DataStack{'\n\n'} client = DataStack(){'\n'} client.send({'{'}"event_type": "sensor_telemetry", "temperature": 24.8, "status": "NOMINAL"{'}'}){'\n'} client.send_file("telemetry_batch.csv"){'\n'} client.disconnect()

How it works

Zero-boilerplate config. Auto-recovery built in.

Install the self-hosted SDK from sdk/python/datastack (or build a wheel with pip wheel ./sdk/python/datastack -w dist/) and drop config.datastack.py into your Python project to stream single events, batches, or .csv / .json files directly—with automatic HTTP fallback, offline disk spooling, and Heartbeat IDLE recovery.

); export default SdkSection;