Skip to main content

BitaHub 平台命令行工具,用于登录、管理项目和任务、查询 GPU 资源

Project description

BitaHub-CLI

BitaHub 平台命令行工具,用于登录、管理项目和任务、查询 GPU 资源。

安装

pip install -e .

依赖

  • Python >= 3.8
  • requests >= 2.28.0
  • click >= 8.0.0

使用方法

账户

bitahub login <邮箱> <密码>           # 登录
bitahub status                        # 查看登录状态(含当前项目)
bitahub logout                        # 退出登录

项目管理

bitahub list-project                  # 查看项目列表
bitahub list-project -p 2 -s 10      # 分页查看
bitahub use <项目ID/项目名称>          # 切换到指定项目

任务管理

bitahub list-task                     # 查看任务列表(含标签)
bitahub list-task -p 2 -s 10         # 分页查看
bitahub status -t <ID或codeNo>       # 查看任务详情(参数/日志/SSH)
bitahub tail -t <ID> -l 100          # 查看日志末尾
bitahub full-log -t <ID>             # 查看完整日志

# 启动任务
bitahub run -i <镜像> -g rtx3090 -c 1 -x "python train.py"
bitahub run -i <镜像> -g rtx3090 -c 1 -x "python train.py" --tag mytag

# 创建调试机并获取 SSH 连接
bitahub create-debug -i <镜像> -c 1
bitahub create-debug -i <镜像> -c 1 -x "sleep 3h"

# 停止任务
bitahub stop-task -t <ID或codeNo>
bitahub stop-task -t <ID或codeNo> -f   # 跳过确认

# 删除任务
bitahub delete-task -t <ID或codeNo>
bitahub delete-task -t <ID或codeNo> -f # 跳过确认

资源与镜像

bitahub list-gpu                      # 查看 GPU 资源
bitahub list-gpu -g rtx3090          # 按类型筛选
bitahub list-image                    # 查看平台镜像(缓存)
bitahub list-image --update           # 刷新缓存
bitahub list-image --user             # 用户自定义镜像

支付

bitahub payment                       # 查看算力余额
bitahub payment -s <团队ID>           # 设置默认支付

配置

配置存储在 ~/.bitahub/config.json,镜像缓存存储在 ~/.bitahub/images_cache.json

License

MIT

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

bitahub-0.1.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

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

bitahub-0.1.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file bitahub-0.1.0.tar.gz.

File metadata

  • Download URL: bitahub-0.1.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for bitahub-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6ef09afc9511e8b80169c4a25730f2c2d48605fb758eb44aa81226572e8739c5
MD5 bac0d7669312e82108f13551b55efe1b
BLAKE2b-256 e45cc8d25b32df480f0f471aae6a43cc5303908b0ca29a8e332a9d0ba7632e60

See more details on using hashes here.

File details

Details for the file bitahub-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bitahub-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for bitahub-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 781985e5830530af8dc08b5eae90d8de46b9c7feb619e00a761e19c3d298cc0e
MD5 f18121ffd238c12f4d9b46b9d2cecaaa
BLAKE2b-256 ec51b6edcd6d5bf4ec4100b1fa3e90fbc3ee82dc7e9cf08dd03bd71197c89fdf

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