Skip to main content

Razel Python CLI (Typer): installable command-line tool

Project description

razel-py-cli

razel-py-cli:基于 Typer,命令 razel-py-clipython -m razel_py_cli使用前请先执行 razel-py-cli init,生成 ~/.razel/config.json 并配置密钥(见 config)。

子命令文档

顶层命令包括 initconfigspeech-to-textacceptance-toolkitpptmeeting-prd。选项与示例在对应源码目录的 README 中:

Stashed changes

基本使用

razel-py-cli init              # 首次使用前执行
razel-py-cli --help
razel-py-cli speech-to-text --help
razel-py-cli acceptance-toolkit --help
razel-py-cli acceptance-toolkit run --help
razel-py-cli ppt --help
razel-py-cli ppt doctor        # 检查 PPT Master 环境
razel-py-cli meeting-prd --help
razel-py-cli meeting-prd notes --help
razel-py-cli meeting-prd prd --help
razel-py-cli meeting-prd export-docx --help

开发

uv sync --group dev
uv run razel-py-cli --help
uv run pytest

新增顶层子命令时,请在 tests/ 下补充对应测试(约定见 tests/conftest.py 顶部说明)。

依赖版本以 uv.lock 为准;修改 pyproject.toml 的依赖后,请同时刷新 uv.lock 并一起提交,这样本地、CI 和发布构建看到的解析结果才会保持一致。

构建与发布(仅发布 wheel)

统一脚本放在仓库根目录 scripts/

  • macOS / Linux:
    • bash scripts/build.sh
    • bash scripts/publish_pypi.sh
  • Windows (PowerShell):
    • powershell -ExecutionPolicy Bypass -File scripts/build.ps1
    • powershell -ExecutionPolicy Bypass -File scripts/publish_pypi.ps1

制品在 dist/(仅 *.whl)。版本号以 pyproject.toml 为准;安装示例中的文件名请按实际构建结果替换。

本地 wheel 安装:

pip install /path/to/razel_py_cli-<version>-py3-none-any.whl

发布前需要先设置 PyPI token(不要写入仓库):

  • macOS / Linux:
    • export UV_PUBLISH_TOKEN="pypi-xxxx"
  • Windows PowerShell:
    • $env:UV_PUBLISH_TOKEN="pypi-xxxx"

publish_pypi 脚本会执行 uv publish dist/*.whl(PowerShell 版本等价),只上传 wheel,不上传 sdist。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

razel_py_cli-0.0.4-py3-none-any.whl (89.8 kB view details)

Uploaded Python 3

File details

Details for the file razel_py_cli-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for razel_py_cli-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8539d84965c8417ebe8c78bb115a5420187ef118aa47a130d27f9d181d810872
MD5 8afda1f67194e67fc207ab92029caded
BLAKE2b-256 c029d3a66c285990852efe6a4bbbf0bc22524b5866508497a03c13ebbd14813f

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