Metadata-Version: 2.4
Name: pr-search-cli
Version: 0.1.0
Summary: Thin client for the PR similarity API.
Author: Hugging Face
License-Expression: MIT
Project-URL: Homepage, https://github.com/huggingface/pr-search-cli
Project-URL: Repository, https://github.com/huggingface/pr-search-cli
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=8.3.0; extra == "dev"
Requires-Dist: ruff>=0.11; extra == "dev"
Dynamic: license-file

# pr-search-cli

Thin client for the PR similarity API.

Default deployment target:

- API: `https://evalstate-openclaw-pr-api.hf.space`
- repo: `openclaw/openclaw`

## Install / run

Run without installing permanently:

```bash
uvx pr-search-cli repo status
uvx pr-search-cli pr similar 67144
uvx pr-search-cli pr clusters 67144
```

Run the `pr-search` script from this package explicitly:

```bash
uvx --from pr-search-cli pr-search repo status
```

## Commands

```text
pr-search repo status
pr-search similar <number>
pr-search clusters <number>
pr-search cluster list
pr-search cluster view <cluster-id>
```

Useful flags:

- `--base-url`
- `-R, --repo`
- `--json`

`pr similar` and `pr clusters` also support:

- `--mode auto|indexed|live`

## Examples

```bash
pr-search repo status
pr-search similar 67144
pr-search clusters 67144
pr-search cluster list --limit 20
pr-search --json similar 67144 --mode live
pr-search --base-url http://127.0.0.1:7860 repo status
```

## Publish

Build artifacts:

```bash
uv build
```

Publish to PyPI:

```bash
uv publish
```
