{"id":33374353,"url":"https://github.com/martsokha/runpod","last_synced_at":"2025-11-22T23:01:17.379Z","repository":{"id":322768475,"uuid":"1090756814","full_name":"martsokha/runpod","owner":"martsokha","description":"A Rust SDK implementation of the Runpod API that enables seamless integration of GPU infrastructure into your applications, workflows, and automation systems.","archived":false,"fork":false,"pushed_at":"2025-11-14T06:20:17.000Z","size":136,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-14T07:24:33.072Z","etag":null,"topics":["api","client","gpu","http","inference","integration","runpod","sdk","serverless"],"latest_commit_sha":null,"homepage":"https://docs.runpod.io/api-reference","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/martsokha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-06T05:09:36.000Z","updated_at":"2025-11-09T03:42:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/martsokha/runpod","commit_stats":null,"previous_names":["martsokha/runpod"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/martsokha/runpod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martsokha%2Frunpod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martsokha%2Frunpod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martsokha%2Frunpod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martsokha%2Frunpod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martsokha","download_url":"https://codeload.github.com/martsokha/runpod/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martsokha%2Frunpod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285873538,"owners_count":27246054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-22T02:00:05.934Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","client","gpu","http","inference","integration","runpod","sdk","serverless"],"created_at":"2025-11-22T23:00:47.297Z","updated_at":"2025-11-22T23:01:17.348Z","avatar_url":"https://github.com/martsokha.png","language":"Rust","readme":"# Runpod SDK\n\nThis crate is a fork of the original\n[runpod.rs](https://github.com/agentsea/runpod.rs) developed by\n[Patrick Barker](https://github.com/pbarker).\n\n[![Crates.io](https://img.shields.io/crates/v/runpod-sdk?style=flat-square\u0026color=black)](https://crates.io/crates/runpod-sdk)\n[![Documentation](https://img.shields.io/docsrs/runpod-sdk?style=flat-square\u0026color=black)](https://docs.rs/runpod-sdk)\n[![Build](https://img.shields.io/github/actions/workflow/status/martsokha/runpod/build.yml?style=flat-square\u0026color=black)](https://github.com/martsokha/runpod/actions)\n\nA Rust client library for the [Runpod API](https://docs.runpod.io/). This SDK\nprovides a type-safe, ergonomic interface for managing Pods, Serverless\nendpoints, templates, network volumes, and more.\n\n## Features\n\n- **Serverless Endpoints**: Full endpoint management with configuration\n- **Type Safety**: Strongly typed models with comprehensive validation\n- **Async/Await**: Built on modern async Rust with `tokio` and `reqwest`\n\n## Installation\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\ntokio = { version = \"1.0\", features = [\"macros\", \"rt-multi-thread\"] }\nrunpod-sdk = { version = \"0.1\", features = [] }\n```\n\n## Quick Start\n\n### Builder Configuration\n\n```rust,no_run\nuse runpod_sdk::{RunpodConfig, Result};\nuse runpod_sdk::model::v1::ListPodsQuery;\nuse runpod_sdk::service::v1::PodsService;\nuse std::time::Duration;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c()\u003e {\n    let client = RunpodConfig::builder()\n        .with_api_key(\"your-api-key\")\n        .with_base_url(\"https://api.runpod.io/v1\")\n        .with_timeout(Duration::from_secs(60))\n        .build_v1()?;\n\n    let pods = client.list_pods(ListPodsQuery::default()).await?;\n    println!(\"Found {} pods\", pods.len());\n\n    Ok(())\n}\n```\n\n### Environment Variables\n\nThe SDK can be configured using environment variables:\n\n| Variable              | Required | Default                         | Description                                                                              |\n| --------------------- | -------- | ------------------------------- | ---------------------------------------------------------------------------------------- |\n| `RUNPOD_API_KEY`      | Yes      | -                               | Your RunPod API key from [console settings](https://www.runpod.io/console/user/settings) |\n| `RUNPOD_BASE_URL`     | No       | `https://rest.runpod.io/v1`     | Custom REST API base URL                                                                 |\n| `RUNPOD_GRAPHQL_URL`  | No       | `https://api.runpod.io/graphql` | Custom GraphQL API URL (requires `graphql` feature)                                      |\n| `RUNPOD_TIMEOUT_SECS` | No       | `30`                            | Request timeout in seconds (max: 300)                                                    |\n\n```rust,no_run\nuse runpod_sdk::{RunpodClient, Result};\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c()\u003e {\n    let client: RunpodClient = RunpodClient::from_env()?;\n    Ok(())\n}\n```\n\n## Optional Features\n\n### TLS Backend\n\nChoose between two TLS implementations:\n\n```toml\n# Default: rustls-tls (recommended)\nrunpod-sdk = { version = \"0.1\", features = [] }\n\n# Alternative: native-tls\nrunpod-sdk = { version = \"0.1\", features = [\"native-tls\"], default-features = false }\n```\n\n### Tracing Support\n\nEnable comprehensive logging and tracing:\n\n```toml\nrunpod-sdk = { version = \"0.1\", features = [\"tracing\"] }\n```\n\n### Enum String Conversions\n\nEnable string parsing and conversion for all enums:\n\n```toml\nrunpod-sdk = { version = \"0.1\", features = [\"strum\"] }\n```\n\n## Examples\n\nThe `examples/` directory contains comprehensive usage examples:\n\n```bash\n# Set your API key\nexport RUNPOD_API_KEY=\"your-api-key\"\n\n# Run the basic usage example\ncargo run --example basic_usage\n\n# Run the endpoints management example\ncargo run --example manage_endpoints\n\n# Run the pods management example\ncargo run --example manage_pods\n```\n\n## Contributing\n\nContributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md)\nfor details on how to submit pull requests, report issues, and contribute to the\nproject.\n\n## License\n\nThis project is licensed under the MIT License - see the\n[LICENSE.txt](LICENSE.txt) file for details.\n\n## Resources\n\n- [Runpod Documentation](https://docs.runpod.io/)\n- [Runpod API Reference](https://rest.runpod.io/v1/docs)\n- [Full API Documentation](https://docs.rs/runpod-sdk)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartsokha%2Frunpod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartsokha%2Frunpod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartsokha%2Frunpod/lists"}