Skip to main content

AutoDL API封装包

Python 3.7+ License: MIT

这是一个完整的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库存查询和时长包管理
  • ✅ 完整的错误处理和类型提示
  • ✅ 详细的文档和示例

Release files for autodl-api 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autodl-api 1.0.2
File Size Uploaded
autodl_api-1.0.2.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autodl-api 1.0.2
File Interpreter ABI Platform
autodl_api-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 21.7 kB

Release files / autodl_api-1.0.2.tar.gz

Download URL autodl_api-1.0.2.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
65a4388623518becc4d7862f79f228d21e97ebee63a55cdd15528a581cc2000d
BLAKE2b-256 checksum
How to use checksums
364261e3798681d0986fe05b024cd753981401bc0dc4482d51cda15640b7c6d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / autodl_api-1.0.2-py3-none-any.whl

Download URL autodl_api-1.0.2-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68b0d9e62fe3a0e266ade3cb032ef683c9bf8bf682d8f6e6b172f1ce715eaf59
BLAKE2b-256 checksum
How to use checksums
4f5bc65f3ad2a6b29160323a46d86d7fc40858cf04a8d6cd4bd5dae17b006313
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page