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
--jsonand--csvwrite strictly tostdout(no banners or spinners); errors and warnings write tostderr.- CSV output neutralizes spreadsheet formula prefixes (
=,+,-,@,\t,\r). - Exit codes:
0OK,2invalid input,3not found (404),4restricted (401/402/403),5rate-limited/unavailable (429/503),6transport/malformed response.
Privacy & Commercial Model
- No affiliate links or redirects: The CLI never contains affiliate URLs, sets affiliate cookies, or opens
/go/*endpoints.pricegraph openlaunches only validated first-partyhttps://www.pricegraph.co.uk/product/<slug>?utm_source=clipages (--no-utmomitsutm_source=cli). - Minimal, opt-out telemetry: By default, requests send
User-Agent: pricegraph-cli/<version>andX-PriceGraph-Client: cli/<version>. SetPRICEGRAPH_NO_TELEMETRY=1(orPRICEGRAPH_TELEMETRY=0) to omitX-PriceGraph-Clientand use a genericUser-Agent. - No persistent catalogue cache: Only short-TTL (
15m) product page references for numberedpricegraph 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.