# hybrid-python-sdk

`hybrid-python-sdk` 是一个用于统计和分析混合云（百度云、火山引擎）ECS 资源使用情况的 Python SDK。

## 📦 安装

### 方式一：通过 devpi 或 wheel 包安装

```bash
pip install -i https://devpi.adwangmai.com/root/dev hybrid-python-sdk==0.0.1

### 方式二：本地开发调试

克隆项目到本地后
pip install -e .

### 方式三：构建wheel包
python -m build
pip install dist/hybrid_python_sdk-0.0.1-py3-none-any.whl


## 环境变量配置

export BAIDU_CLOUD_ACCESS_KEY_ID=your_baidu_ak
export BAIDU_CLOUD_ACCESS_KEY_SECRET=your_baidu_sk
export VOLC_ACCESS_KEY=your_volc_ak
export VOLC_SECRET_KEY=your_volc_sk

## 使用示例
```python
from hybridecs.hybrid_cloud import HybridCloudECS

def main():
    print("开始测试 hybrid-python-sdk 功能...")
    ecs = HybridCloudECS()
    ecs.init_cloud_providers()
    ecs.collect_cloud_resources()
    ecs.calculate_hybrid_sum()
    ecs.print_hybrid_result()

if __name__ == "__main__":
    main()

python test.py


