Files
sdk/README.md
zeekay 1a19f15912 feat: Unified multi-language Hanzo SDK
- Consolidated Python, JavaScript, Rust, and Go SDKs
- Standard directory structure (src/py, src/js, src/rs, src/go)
- Real implementations from existing SDKs (not stubs)
- Comprehensive test framework with CI/CD matrix
- Dual distribution support (pip and npm)
- Language parity for all core commands
- Smart routing based on language strengths
2025-09-15 12:44:41 -05:00

1.4 KiB

Hanzo Unified SDK

Unified multi-language SDK for Hanzo AI infrastructure, combining Python, JavaScript/TypeScript, Rust, and Go implementations.

Structure

sdk/
├── src/           # Source code by language
│   ├── py/        # Python implementation
│   ├── js/        # JavaScript/TypeScript implementation
│   ├── rs/        # Rust implementation
│   └── go/        # Go implementation
├── docs/          # Documentation
├── tests/         # Cross-language tests
├── scripts/       # Build and deployment scripts
└── bin/           # Compiled binaries

Installation

Python

pip install hanzo

Node.js

npm install -g @hanzo/cli

Rust

cargo install hanzo-cli

Go

go install github.com/hanzoai/sdk/cmd/hanzo@latest

Commands

All commands work identically across all language implementations:

  • hanzo node start - Start local AI node
  • hanzo agent run - Run AI agents
  • hanzo mcp serve - Start MCP server
  • hanzo net status - Network status
  • hanzo dev - Development tools

Development

Each language implementation maintains feature parity while leveraging language-specific strengths:

  • Python: ML/AI operations, data processing
  • JavaScript: Web integration, browser compatibility
  • Rust: System operations, performance-critical paths
  • Go: Network operations, blockchain integration