Skip to main content

A command line tool for GCS

Project description

HotPod CLI

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

安装

pip install hotpod

配置

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

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

使用方法

基本信息

显示关于HotPod CLI的信息:

hotpod info

实例管理

列出所有GCS实例:

hotpod instance list

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

hotpod instance create

交互式选择镜像和SKU创建实例:

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 exec --instance <实例ID> --cmd <命令>

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

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

从GCS实例下载文件:

hotpod file download --instance <实例ID> --remote <远程文件路径> --local <本地保存路径>

ComfyUI任务

运行ComfyUI任务:

hotpod comfyui runtask --task <任务配置文件路径>

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

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

等待任务完成:

hotpod comfyui runtask --task <任务配置文件路径> --wait

LLM任务

运行LLM任务,直接返回模型访问URL:

hotpod llm runtask

使用指定模型创建实例:

hotpod llm runtask --model deepseek

向特定实例的模型发送提示词:

hotpod llm runtask --instance <实例ID> --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.1.2.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.1.2-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hotpod_cli-1.1.2.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.1.2.tar.gz
Algorithm Hash digest
SHA256 4f8fbf2c3d90a9ef704aa90bffc6ca1913e4b818792fe0f8b48fa4f9aad8fcac
MD5 c1aa335e6bda9270da66e70ee848f5f8
BLAKE2b-256 5f6b18d1b72c3d6cb936da9c0104e64b62a7a0e32d70a58089f371c0e51db8cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hotpod_cli-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 36.3 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0dc9e7a54a9ca507a6adfd86beeb27a46b9836239f0fb58c004481bbb9efbb3
MD5 4eea4b3ac831e8e17d33fa0b1795af25
BLAKE2b-256 af8799709f2a44d843a84b77b3238a42307c0159882672f59183cff89c4ce41f

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