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.3.tar.gz (18.4 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.3-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pr_search_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 18.4 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.3.tar.gz
Algorithm Hash digest
SHA256 59a0157b0c41fec1ffcf554a9e4c8936ced738283972c4958caf819b713d95a9
MD5 19c992157997cb13a78afc3680c2cf9e
BLAKE2b-256 8fc3bd20399bd45bbc23e606926a81f59b0b2ea0ebe61313acdb98d4bb33e2e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pr_search_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a36c8c09cfeb16800a0f802b6d6cc9efa11c611e1c88fd240b3ea786046d253b
MD5 32261cd19e62aa45b9efa95ef1d52d98
BLAKE2b-256 217fdc8ce3cef7599a506e26605b6c6f9bbd79711776176c328c90934a1473ae

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