Skip to main content

AutoDL弹性部署API封装类,支持所有弹性部署相关功能

Project description

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

Project details


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.2.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autodl_api-1.0.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file autodl_api-1.0.2.tar.gz.

File metadata

  • Download URL: autodl_api-1.0.2.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for autodl_api-1.0.2.tar.gz
Algorithm Hash digest
SHA256 65a4388623518becc4d7862f79f228d21e97ebee63a55cdd15528a581cc2000d
MD5 851d04f917087d38c7e10f758dd37ef8
BLAKE2b-256 364261e3798681d0986fe05b024cd753981401bc0dc4482d51cda15640b7c6d6

See more details on using hashes here.

File details

Details for the file autodl_api-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: autodl_api-1.0.2-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

Hashes for autodl_api-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68b0d9e62fe3a0e266ade3cb032ef683c9bf8bf682d8f6e6b172f1ce715eaf59
MD5 1034c9319aa8e1c9da956a74160dfd27
BLAKE2b-256 4f5bc65f3ad2a6b29160323a46d86d7fc40858cf04a8d6cd4bd5dae17b006313

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page