Metadata-Version: 2.4
Name: bocai-cli
Version: 0.1.0
Summary: CLI wrapper for SaaS APIs
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27.0
Requires-Dist: tenacity>=9.0.0
Requires-Dist: tomli-w>=1.0.0
Requires-Dist: typer>=0.12.3
Provides-Extra: dev
Requires-Dist: pytest>=8.2.0; extra == 'dev'
Requires-Dist: respx>=0.21.1; extra == 'dev'
Description-Content-Type: text/markdown

# bocai-cli

使用 Python + Typer 封装 SaaS API 的命令行工具。

## 安装

### 1) 本地路径安装

```bash
python -m pip install .
```

### 2) 可编辑安装（开发）

```bash
python -m pip install -e .
```

### 3) 私有 Git 安装

```bash
python -m pip install "git+<repo-url>@<tag-or-commit>"
```

### 4）使用构建生成的wheel安装
```bash
pip install xxx.whl(e.g. bocai_cli-0.1.0-py3-none-any.whl)
```

## 构建 wheel（私仓分发），同时打包依赖

```bash
python -m pip wheel . -w dist
```

构建后会在 `dist/` 目录下生成类似 `bocai_cli-0.1.0-py3-none-any.whl` 的文件。


## 构建 wheel（私仓分发），不打包依赖

```bash
python -m pip wheel . --no-deps -w dist
```

构建后会在 `dist/` 目录下生成类似 `bocai_cli-0.1.0-py3-none-any.whl` 的文件。

## 安装后验证

```bash
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"