HARCH|CORP
SDKs
SDK officiels pour Python, TypeScript et CLI.
Choisissez votre SDK
npm install @harchos/sdk@harchos/sdk|Version du SDK: 0.1.0|Prochainementimport { HarchOS } from '@harchos/sdk';
// Initialize client with sovereign defaults
const client = await HarchOS.create({
apiKey: 'hrch_live_sk_abc123',
region: 'morocco',
sovereignty: 'strict',
carbonAware: true,
});
// Deploy a compute workload
const workload = await client.compute.createWorkload({
name: 'training-run-001',
gpu: 'H100',
count: 8,
hub: 'dakhla',
schedule: 'carbon-optimal',
});
// Stream real-time metrics via WebSocket
for await (const event of workload.streamMetrics()) {
console.log(`GPU Util: ${event.gpuUtil}% | Power: ${event.powerW}W`);
}CLI
CLI puissant pour gérer les ressources, le déploiement et la surveillance depuis la ligne de commande.
macOS
brew install harchos/tap/harchosLinux
curl -fsSL https://get.harchos.ai | shWindows
winget install HarchOS.HarchOSharchos auth loginharchos auth login — S'authentifier avec votre compte HarchOSharchos workloads listharchos compute allocate — Allouer des ressources GPU pour les charges de travailharchos workloads deploy --gpu H100 --count 8harchos compute status — Vérifiez l'état des ressources de calculharchos workloads scale <id> --count 16harchos data ingest — Ingestez des données dans le stockage souverainharchos models deploy <model> --hub dakhlaharchos deploy apply — Apply infrastructure configurationharchos hubs statusharchos monitor dashboard — Ouvrir le tableau de bord de surveillanceharchos energy reportharchos carbon report — Générer un rapport d'intensité carboneharchos logs tail <workload-id>harchos config set — Set configuration parametersComparaison
| Langue | Python | TypeScript | Go | Rust |
|---|---|---|---|---|
| Langue | ||||
| Type Sécurité | ||||
| Support Asynchrone | — | |||
| Streaming | ||||
| API Carbone | ✓ | |||
| CLI Intégration | ||||
| Support IDE | — | |||
| Tests Unitaires | — | |||
| Prêt pour la Production | ✓ | ✓ | ✓ | ✓ |
| Prêt pour la Production | ✓ | ✓ | ✓ | ✓ |