Skip to content
Installation

Installation

github.com • November 26, 2026

Shopify Spy needs Python 3.11 or later. Install it as a command-line tool, as a library in the environment your scripts run in, or both.

As a command-line tool

uv tool installs CLI tools in isolated environments, so they won't conflict with other Python projects:

pipx works the same way: pipx install shopify-spy .

Installing provides two identical commands, spy and shopify-spy ; the docs use spy . With uvx , name the package: uvx shopify-spy ... or uvx --from shopify-spy spy ... . uvx spy would fetch an unrelated package named spy .

To use it as a Python library ( import shopify_spy ), the package has to be in the environment the script runs in. A pipx or uv tool install only provides the command.

A script can also declare the dependency itself ( inline script metadata ), so uv run script.py works from any directory:

Without uv, install it into a virtual environment. While the environment is active, scripts can import it and the spy command works too.

Excel output ( --format xlsx , or an .xlsx path in the library) needs the excel extra:

The repository is a flake. Its build runs the test suite.

The CLI and the dev shell include Excel support, so --format xlsx works without the excel extra. In your own flake, overlays.default adds python3Packages.shopify-spy (for every Python version) and a top-level shopify-spy . As in nixpkgs, the library package leaves Excel support out; add it with python3.withPackages (ps: [ ps.shopify-spy ] ++ ps.shopify-spy.optional-dependencies.excel) .

Extracted Entities

Platforms (1)

Tools (3)