AutoDL弹性部署API封装类,支持所有弹性部署相关功能
Project description
AutoDL API封装包
这是一个完整的AutoDL API封装包,支持所有弹性部署相关功能。
📦 安装
PyPI安装
pip install autodl-api
从源码安装
git clone https://github.com/Rookie-Package/autodl.git
cd autodl
pip install -e .
依赖安装
pip install requests
🚀 快速开始
from autodl import AutoDLElasticDeployment
# 创建客户端
client = AutoDLElasticDeployment("your_api_token")
# 获取镜像列表
images = client.get_images()
# 获取部署列表
deployments = client.get_deployments()
# 获取GPU库存
stock = client.get_gpu_stock("westDC2", 118)
📚 文档
🧪 测试
# 运行基本测试
python tests/test_autodl.py
# 运行单元测试
python -m pytest tests/test_autodl.py -v
📄 许可证
MIT License
🤝 贡献
欢迎提交Issue和Pull Request!
📞 支持
如有问题,请查看文档或提交Issue。
🆕 最新更新
v1.0.0
- ✅ 完整的AutoDL弹性部署API支持
- ✅ 支持ReplicaSet、Job、Container三种部署类型
- ✅ 容器管理和监控功能
- ✅ GPU库存查询和时长包管理
- ✅ 完整的错误处理和类型提示
- ✅ 详细的文档和示例
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
autodl_api-1.0.1.tar.gz
(13.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autodl_api-1.0.1.tar.gz.
File metadata
- Download URL: autodl_api-1.0.1.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67900442ac4b9c170a967a1de729e0dc548e41640d87b5e878eb5db82f323ac4
|
|
| MD5 |
a27dafae54ea318c2dbadad7e9bd8f18
|
|
| BLAKE2b-256 |
82474d99035117184db2feccec086876e53c7e3177fd836063067c6eeed2f87d
|
File details
Details for the file autodl_api-1.0.1-py3-none-any.whl.
File metadata
- Download URL: autodl_api-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
794707e8ec900ded972b7dcaffb2736e700f4ba1c8e51d69f86e7eeb50511992
|
|
| MD5 |
f95f54e17ac1fc486d8633c3f16d5054
|
|
| BLAKE2b-256 |
68cb52b4fd744a678797ec8c85c9f2281ebcc668805aa151f6c950e79d28f58a
|