Skip to main content

Thin CLI client for the PR similarity API.

Project description

pr-search-cli

Standalone CLI client for the PR search API.

Default deployment target:

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

When --base-url is omitted, the CLI now infers the Hugging Face Space host from --repo by convention:

  • openclaw/openclaw -> https://evalstate-openclaw-pr-api.hf.space
  • huggingface/transformers -> https://evalstate-transformers-pr-api.hf.space
  • huggingface/diffusers -> https://evalstate-diffusers-pr-api.hf.space

You can also set a default API host with:

export PR_SEARCH_BASE_URL=https://evalstate-transformers-pr-api.hf.space

Resolution order:

  1. explicit --base-url
  2. PR_SEARCH_BASE_URL
  3. inferred host from --repo
  4. fallback default deployment target

Install / run

Run without installing permanently:

uvx pr-search-cli status
uvx pr-search-cli code similar 67144
uvx pr-search-cli code clusters for-pr 67144
uvx pr-search-cli issues list
uvx pr-search-cli contributors show alice

Run the pr-search script from this package explicitly:

uvx --from pr-search-cli pr-search status

CLI overview

pr-search status

pr-search code status
pr-search code similar <pr-number>
pr-search code clusters list
pr-search code clusters show <cluster-id>
pr-search code clusters for-pr <pr-number>

pr-search issues status
pr-search issues list
pr-search issues show <cluster-id>
pr-search issues for-pr <pr-number>
pr-search issues contains-pr <pr-number> [cluster-id]
pr-search issues duplicate-prs
pr-search issues best

pr-search contributors status
pr-search contributors list
pr-search contributors show <login>
pr-search contributors risk <login>

The old repo ..., similar, clusters, cluster ..., and analysis ... commands are still accepted as hidden compatibility aliases.

Useful flags

Global flags:

  • --base-url
  • -R, --repo
  • PR_SEARCH_BASE_URL environment variable
  • --format text|json|jsonl|ids
  • --json (compatibility alias for --format json)

Lookup commands also support:

  • --mode auto|indexed|live

Issue-cluster commands also support:

  • --variant auto|hybrid|deterministic

Examples

pr-search status
pr-search -R huggingface/transformers status
pr-search -R huggingface/transformers code similar 44940
pr-search -R huggingface/diffusers issues list
PR_SEARCH_BASE_URL=https://evalstate-transformers-pr-api.hf.space pr-search status
pr-search code status
pr-search code similar 67144 --mode live
pr-search code clusters list --limit 20
pr-search issues list --variant auto
pr-search issues for-pr 67144
pr-search issues contains-pr 67144 issue-cluster-44861-3
pr-search contributors list --format jsonl
pr-search contributors risk alice --format json
pr-search --base-url http://127.0.0.1:7860 status

Output formats

  • text
    • stable key/value blocks and tables for humans and shell users
  • json
    • full API payload
  • jsonl
    • one JSON object per list row when the command returns a collection
  • ids
    • just the primary identifiers from list-like commands

Publish

Build artifacts:

uv build

Publish to PyPI:

uv publish

Project details


Download files

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

Source Distribution

pr_search_cli-0.1.4.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

pr_search_cli-0.1.4-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file pr_search_cli-0.1.4.tar.gz.

File metadata

  • Download URL: pr_search_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pr_search_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cb16aee1177b7189b26dd98e6f01ee784a80309cded60c3368534053edc9e3a1
MD5 6ed3361930a2ee57547f40ccef6c9d21
BLAKE2b-256 77442b876417e69d34ee751eea4822cb3a10074589b43e18be6ddf0c4fdcb1c6

See more details on using hashes here.

File details

Details for the file pr_search_cli-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pr_search_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pr_search_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 602a90f924faf2ca8875040e1e9b69b8d2515ec23a76378e2fe5c0fe64171527
MD5 461865bca3ffa2a7d48c79749d8484ca
BLAKE2b-256 74273bcbf55f7ab29de80108111770803f0424f20ee6211a130f5cdccfd215cb

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