ShopifyQL Python SDK and CLI
You can access ShopifyQL data through a dedicated Python SDK and CLI tool designed for analytics workflows.
The shopifyql Python package provides a clean, Pythonic interface for ShopifyQL queries while handling GraphQL API complexity behind the scenes. It eliminates manual OAuth implementation and HTTP request handling, returning data directly as pandas DataFrames. This enables developers to create reporting apps and export store data to data warehouses without managing GraphQL interactions directly.
Anchor to InstallationInstallation
To install the base package, run:
Terminal
Or you can include support for pandas and polars DataFrames:
Terminal
Anchor to Quick startQuick start
Use the Python SDK to query ShopifyQL data:
Python
Anchor to Working with pandasWorking with pandas
For data analysis workflows, get results directly as pandas DataFrames:
Python
This makes it easy to create reporting apps and export store data to data warehouses without managing GraphQL interactions directly.
Anchor to Jupyter notebook templateJupyter notebook template
The fastest way to get started is with the CLI template that sets up a complete development environment:
Terminal
This template provides:
- Pre-configured Python 3.11+ environment with Jupyter notebooks.
- Automatic app configuration and authentication.
- All necessary dependencies installed.
- Ready-to-use development environment powered by Shopify CLI.