Skip to main content

PriceGraph CLI (pricegraph-cli)

Official, lightweight, read-only command-line interface for PriceGraph UK (https://www.pricegraph.co.uk).

Installation (Once Published)

pipx install pricegraph-cli

Local Development Install

pip install --no-deps --no-build-isolation -e ./cli
pricegraph --help

Uninstall

pip uninstall -y pricegraph-cli

Commands

Command Description Example
search Search UK retail products pricegraph search "sony wh1000xm5" --limit 5
compare Compare live UK offers by GTIN or query pricegraph compare 4548736132566
resolve Resolve Brand + MPN to canonical GTIN pricegraph resolve --brand Sony --mpn WH1000XM5
batch Batch-compare up to 10 GTINs (args or --stdin) pricegraph batch 4548736132566 5036108314256
categories List canonical UK retail categories pricegraph categories --published-only
merchants List participating UK retail merchants pricegraph merchants --q laptop
deals List current verified UK retail deals pricegraph deals --limit 10
open Explicitly open a validated /product/<slug> page pricegraph open 1 or pricegraph open 4548736132566 --dry-run
version Show CLI version (offline by default; --remote checks API) pricegraph version --json

Machine Output & Exit Codes

  • --json and --csv write strictly to stdout (no banners or spinners); errors and warnings write to stderr.
  • CSV output neutralizes spreadsheet formula prefixes (=, +, -, @, \t, \r).
  • Exit codes: 0 OK, 2 invalid input, 3 not found (404), 4 restricted (401/402/403), 5 rate-limited/unavailable (429/503), 6 transport/malformed response.

Privacy & Commercial Model

  • No affiliate links or redirects: The CLI never contains affiliate URLs, sets affiliate cookies, or opens /go/* endpoints. pricegraph open launches only validated first-party https://www.pricegraph.co.uk/product/<slug>?utm_source=cli pages (--no-utm omits utm_source=cli).
  • Minimal, opt-out telemetry: By default, requests send User-Agent: pricegraph-cli/<version> and X-PriceGraph-Client: cli/<version>. Set PRICEGRAPH_NO_TELEMETRY=1 (or PRICEGRAPH_TELEMETRY=0) to omit X-PriceGraph-Client and use a generic User-Agent.
  • No persistent catalogue cache: Only short-TTL (15m) product page references for numbered pricegraph open <n> are stored locally (~/.cache/pricegraph-cli/recent_refs.json).

Metadata

Release files for pricegraph-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pricegraph-cli 0.1.0
File Size Uploaded Provenance Actions
pricegraph_cli-0.1.0.tar.gz 15.4 kB With provenance Details for pricegraph_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pricegraph-cli 0.1.0
File Interpreter ABI Platform Actions
pricegraph_cli-0.1.0-py3-none-any.whl Python 3 none any Details for pricegraph_cli-0.1.0-py3-none-any.whl

Total release size: 28.3 kB

Release files / pricegraph_cli-0.1.0.tar.gz

Download URL pricegraph_cli-0.1.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c18166e773aab7e24638375b8748dfe9bec7846f375231d3a27220b63c9ab896
BLAKE2b-256 checksum
How to use checksums
e0586865b23b64a791643bc2f22a041d43ed637b49a16770b3518e49e1c9fd08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / pricegraph_cli-0.1.0-py3-none-any.whl

Download URL pricegraph_cli-0.1.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab9105ba9ab9a7dabf3c5005e16845f1a94db681a3a48630bc52ff84b0d64ceb
BLAKE2b-256 checksum
How to use checksums
1f409aa2ffcc5dd3cfb3705cc1205b615930bc238534d7b852f60e0cdaf0bd13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for pricegraph-cli 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pricegraph_cli-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page