Skip to main content

Utility functions for working with the Shopify API

Project description

Shopify Utils

A collection of utility functions for working with the Shopify API, with a focus on GraphQL endpoints.

Features

  • Fetch published products with pagination support
  • Customizable product fields
  • Sorting options
  • Proper error handling

Installation

pip install schemaplus-shopify-utils

Usage

from schemaplus_shopify_utils.product_utils import get_published_products

# Replace with your shop details
shop = {
    "name": "your-store.myshopify.com",
    "token": "your_access_token"
}

# Get published products
total_count, products = get_published_products(
    shop,
    count=10,
    with_additional_fields=True
)

# Process products
for product in products:
    print(f"- {product['title']} ({product['handle']})")

License

MIT

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

schemaplus_shopify_utils-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

schemaplus_shopify_utils-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file schemaplus_shopify_utils-0.1.1.tar.gz.

File metadata

File hashes

Hashes for schemaplus_shopify_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b625dee0437071711629519cec3cd502e64b974dc719a0dfa84663f7d587f3e9
MD5 e3d909e8793174865fe383c0dd4bcbd6
BLAKE2b-256 d6b0e06774f2c0b1ee67fa9123f61355ea85c1b41ceee5ca4b3953b7c5ae6f12

See more details on using hashes here.

File details

Details for the file schemaplus_shopify_utils-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for schemaplus_shopify_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 757a0112cea665cafece309bce6a6d03671ba1e5b8082ed0d4dffc66d4224619
MD5 56bdf70acbe126fde34f1c92c5d27244
BLAKE2b-256 b8cd82fe9d0bc59bf806704e60868baecb46d021bc52d4928424da2d2911d987

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