bocai-cli
使用 Python + Typer 封装 SaaS API 的命令行工具。
安装
1) 本地路径安装
python -m pip install .
2) 可编辑安装(开发)
python -m pip install -e .
3) 私有 Git 安装
python -m pip install "git+<repo-url>@<tag-or-commit>"
4)使用构建生成的wheel安装
pip install xxx.whl(e.g. bocai_cli-0.1.0-py3-none-any.whl)
构建 wheel(私仓分发),同时打包依赖
python -m pip wheel . -w dist
构建后会在 dist/ 目录下生成类似 bocai_cli-0.1.0-py3-none-any.whl 的文件。
构建 wheel(私仓分发),不打包依赖
python -m pip wheel . --no-deps -w dist
构建后会在 dist/ 目录下生成类似 bocai_cli-0.1.0-py3-none-any.whl 的文件。
安装后验证
bocai-cli --help
bocai-cli auth --help
bocai-cli report --help
配置文件
Windows系统
C:\Users{用户名}.config\bocai-cli\config.toml
Linux系统
先读环境变量 BOCAI_CLI_CONFIG_PATH
没有就读默认路径:~/.config/bocai-cli/config.toml
/home/{用户名}/.config/bocai-cli\config.toml (非root用户)
/root/.config/bocai-cli\config.toml (root用户)
config.toml配置内容(base_url,app_id,secret按实际替换)
base_url = "http://10.0.0.227:10086"
app_id = "test_app_001"
secret = "test_secret_123456"
Metadata
Release files for bocai-cli 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bocai_cli-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for bocai_cli-0.1.5-py3-none-any.whl |
Release files / bocai_cli-0.1.5-py3-none-any.whl
| Download URL | bocai_cli-0.1.5-py3-none-any.whl |
|---|---|
| Size | 30.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfad0a3a14d0a8d24035dbf1e253b91246ae1759d7ff81213601f663939c4b92
|
|
BLAKE2b-256 checksum How to use checksums |
372b1055a1da12a886aee544e41de2db14f9710a6af0c231bcab78e28f69164d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Security for bocai-cli 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.