runpod.rs
A Rust client library for the RunPod API
Features
- Create and manage On-Demand GPU pods
- Create and manage Spot (Interruptible) GPU pods
- Start and stop pods
- List and query available GPU types
- Monitor pod status and resources
- Full async support using Tokio
Installation
Add this to your Cargo.toml:
[]
= "0.1.2"
Quick Start
use ;
async
Usage
Managing Pods
// Create a spot (interruptible) pod
let spot_request = CreateSpotPodRequest ;
let spot_pod = client.create_spot_pod.await?;
// List all pods
let pods = client.list_pods.await?;
// Get pod details
let pod_info = client.get_pod.await?;
// Stop a pod
let stop_result = client.stop_pod.await?;
GPU Types
// List all GPU types
let gpu_types = client.list_gpu_types.await?;
// Get specific GPU type details
let gpu_info = client.get_gpu_type.await?;
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For issues and feature requests, please use the GitHub issues page.