A collection of SDK examples demonstrating how to use CompShare cloud computing APIs across multiple programming languages.
CompShare is a cloud computing platform that provides GPU-accelerated computing instances. This repository contains example code and tutorials for integrating with CompShare APIs using different programming languages and SDKs.
Language | SDK Directory | Status |
---|---|---|
Python | python-sdk/ |
✅ Ready |
Go | golang-sdk/ |
✅ Ready |
Java | java-sdk/ |
✅ Ready |
These examples demonstrate how to:
- 🚀 Create CompShare GPU instances
- 🔧 Configure instance specifications (CPU, Memory, GPU)
- 📊 Query instance status and details
- 🔑 Authenticate using API keys
Before running any examples, you'll need:
- CompShare Account: Sign up at CompShare Console
- API Credentials: Get your
public_key
andprivate_key
from API Management - Programming Environment: Choose your preferred language and set up the development environment
All examples require your CompShare API credentials:
public_key
andprivate_key
from API Management- Region:
cn-wlcb
(standard) - Zone:
cn-wlcb-01
(standard) - Base URL:
https://api.compshare.cn
(standard)
If you encounter issues:
- Check the language-specific README in each SDK directory
- Verify your API credentials are correct
- Ensure you're using the correct region (
cn-wlcb
) and zone (cn-wlcb-01
) - Contact CompShare support through their console
Contributions are welcome! Please feel free to submit issues or pull requests to improve these examples.