Skip to main content

A command line tool for GCS

Project description

HotPod CLI

Hotpod命令行工具,用于管理GCS实例。

安装

pip install hotpod-cli

配置

在使用该工具之前,需要设置京东云API凭证。

  1. 设置以下环境变量:
export JDCLOUD_AK=your_access_key
export JDCLOUD_SK=your_secret_key

或者在.env文件中配置JDCLOUD_AK和JDCLOUD_SK

使用方法

基本信息

显示关于HotPod CLI的信息:

hotpod info

实例管理

列出所有GCS实例:

hotpod instance list

创建新的GCS实例(默认:1个):

hotpod instance create

使用指定的镜像ID和SKU创建实例:

hotpod instance create --imageid <镜像ID> --sku <SKU ID>

删除GCS实例:

hotpod instance delete --id <实例ID>

显示GCS实例的详细信息:

hotpod instance show --id <实例ID>

文件操作

上传文件到GCS实例:

hotpod file upload --instance <实例ID> --local <本地文件路径> --remote <远程目录路径>

列出GCS实例上的文件和目录:

hotpod file list --instance <实例ID> --path <远程目录路径>

ComfyUI任务

使用指定实例运行ComfyUI任务:

hotpod comfyui runtask --instance <实例ID> --task <任务配置文件路径>

使用指定集群运行ComfyUI任务:

hotpod comfyui runtask --cluster <集群名称> --task <任务配置文件路径>

LLM任务

向特定实例上的模型对话,model包括qwq和deepseek

hotpod llm runtask --instance <实例ID> --model <model> --prompt "你好,请介绍一下自己"

向指定集群上的模型对话

hotpod llm runtask --cluster <集群名称> --model <model> --prompt "你好,请介绍一下自己"

开发

  1. 克隆仓库
  2. 创建虚拟环境
  3. 安装开发依赖:
    pip install -e .
    

许可证

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

hotpod_cli-1.2.0.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

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

hotpod_cli-1.2.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file hotpod_cli-1.2.0.tar.gz.

File metadata

  • Download URL: hotpod_cli-1.2.0.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for hotpod_cli-1.2.0.tar.gz
Algorithm Hash digest
SHA256 cfb541cd4c890ce5fa27128d68866282e5065d26d7a13caefc8c37d93e9c6394
MD5 5cbb85628084755ce822b66d914bec6f
BLAKE2b-256 ed60591001608fb2265c315776bc48b232ea2edd4a727770235af7b7f9ba63dc

See more details on using hashes here.

File details

Details for the file hotpod_cli-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: hotpod_cli-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for hotpod_cli-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0636691328a0ab5fbfb7ea508aa5dd09c928906dd43f5520e218e0525bcebec
MD5 9a2b699afd1b29a15a1928f4f08c4056
BLAKE2b-256 2726bb7b01c1951e622dadd0db2e7dd044ae6eed28a3095c56b83ec1032313ce

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