root/dev/: hybrid-python-sdk-0.0.4 metadata and description
Hybrid cloud ECS resource statistics SDK for Baidu and Volcano Cloud
| author | huanchao |
| author_email | huanchao <chao.huan@adwangmai.com> |
| classifiers |
|
| description_content_type | text/markdown |
| requires_dist |
|
| requires_python | >=3.6 |
Because this project isn't in the mirror_whitelist,
no releases from root/pypi are included.
| File | Tox results | History |
|---|---|---|
hybrid_python_sdk-0.0.4-py3-none-any.whl
|
|
Hybrid Python SDK
混合云ECS资源统计SDK,支持百度云和火山云。
功能特性
- 支持百度云和火山云ECS资源统计
- 并行处理,性能优化,执行时间从40秒优化到4秒
- 简洁的输出格式
- 统计CPU、内存、磁盘资源
安装
pip install hybrid-python-sdk
使用方法
命令行使用
hybrid-ecs
环境变量配置
百度云
export BAIDU_CLOUD_ACCESS_KEY_ID="your_access_key"
export BAIDU_CLOUD_ACCESS_KEY_SECRET="your_secret_key"
export BAIDU_BCE_ENDPOINT="http://bcc.bj.baidubce.com" # 可选
火山云
export VOLC_ACCESS_KEY="your_access_key"
export VOLC_SECRET_KEY="your_secret_key"
export VOLC_REGION="cn-beijing" # 可选,默认cn-beijing
输出格式
Baidu cloud:CPU=674核,memory=3424GB,disk=8780GB
Volc cloud:CPU=4882核,memory=15481.0GB,disk=67552GB
Hybrid cloud:CPU=5556核,memory=18905.0GB,disk=76332GB
版本历史
0.0.4
- 性能优化:执行时间从40秒优化到4秒
- 简化输出格式
- 增加并发处理
- 优化错误处理
0.0.3
- 初始版本