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-text。选项与示例在对应源码目录的 README 中:

基本使用

razel-py-cli init              # 首次使用前执行
razel-py-cli --help
razel-py-cli speech-to-text --help

开发

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

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

构建与发布(仅发布 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.1-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for razel_py_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8baab4e438331c6070aae04dcbe45cd181daa885285aea15b745588997be7840
MD5 51b81e6f1ffdd1c52a6f4e2c619c962b
BLAKE2b-256 7583a3bbb84da6a8e98772779caf701c93f878d77634c85af57351e63f8ec00a

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