Skip to main content

LeHome Challenge CLI distributed via uv tool run

Project description

LeHome CLI

lehome 是一个面向 LeHome Challenge 的可分发 uv CLI。

它把 /root/data/lehome_cli 里的源脚本打包成 runtime bundle,在目标机器上自动解包到稳定目录,再提供:

  • 一个超级菜单入口
  • 原版 all.sh 的直达入口
  • step1 / step2 / step3 / ai / git / diff / vpn 这些老脚本的直达入口

用户用法

推荐直接运行:

uvx lehome-cli

如果你想在 PyPI 发布前先从 GitHub 直接跑:

uvx --from git+https://github.com/sudo-yf/lehome.git lehome

常用命令:

uvx lehome-cli --help
uvx lehome-cli all --list
uvx lehome-cli step1
uvx lehome-cli step2
uvx lehome-cli step3
uvx lehome-cli ai
uvx lehome-cli git 1
uvx lehome-cli diff
uvx lehome-cli vpn
uvx lehome-cli doctor
uvx lehome-cli version
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome --help
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome all --list
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome step1
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome step2
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome step3
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome ai
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome git 1
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome diff
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome vpn
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome doctor
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome version

如果你已经在本地 clone 了仓库,也可以这样调试:

uv tool run --from . lehome

环境变量

默认值:

  • DATA_ROOT=/root/data
  • LEHOME_REPO_URL=https://github.com/sudo-yf/lehome-challenge.git
  • LEHOME_DEFAULT_DIRNAME=lehome-challenge

示例:

DATA_ROOT=/tmp/lehome-data \
LEHOME_REPO_URL=https://github.com/sudo-yf/lehome-challenge.git \
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome doctor

维护说明

/root/data/lehome_cli 是源真相,/root/data/lehome 是分发仓库。

当源脚本更新后,在本仓库运行:

python tools/import_runtime.py --source /root/data/lehome_cli

这个脚本会:

  • 校验源文件存在
  • 复制到 src/lehome_cli/bundle/
  • 生成 manifest.json

平台约束:

  • 仅支持 Linux / Ubuntu / bash
  • 不承诺 Windows / macOS 可用

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

lehome_cli-0.2.2.tar.gz (48.9 kB view details)

Uploaded Source

Built Distribution

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

lehome_cli-0.2.2-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

File details

Details for the file lehome_cli-0.2.2.tar.gz.

File metadata

  • Download URL: lehome_cli-0.2.2.tar.gz
  • Upload date:
  • Size: 48.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lehome_cli-0.2.2.tar.gz
Algorithm Hash digest
SHA256 67338d327373a483538671ec3b04bf952f27f6396f8914eae7d0172b4d61e85b
MD5 ff8a6aa2df7d24a95fa8236866d8fa86
BLAKE2b-256 8a5a80d401bd03c7e9510d877816f420dcf7e0821d8b133b5370af536684b13e

See more details on using hashes here.

File details

Details for the file lehome_cli-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: lehome_cli-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 55.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lehome_cli-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 28fae69e551cfc42ccf3c2de569565e6d6e25b7aa7fbcbf8ddf8f0c2b6271eff
MD5 e40b8597210f17270e0f7280a413c388
BLAKE2b-256 2ccf7552feb11911e5aaa560c02062ede063f0c3e4ba65cb4b57f982ac9a3476

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