Skip to main content

Py Google Shopping

Package Version

Python client for Google Content API for Shopping v2.1

Installation

pip install py-google-shopping

Features

  • Handles OAuth2 sanely through ENV variables

  • Handles pagination with iterators

  • Pads and adds checksum to GTIN of products automatically

  • Works well with Django and other frameworks

Usage

Basic

export GOOGLE_SHOPPING_CLIENT_ID=my_client_id
export GOOGLE_SHOPPING_CLIENT_SECRET=my_client_secret
export GOOGLE_SHOPPING_REFRESH_TOKEN=my_refresh_token
from google_shopping import Merchant
merchant_id = '536476575676'
merchant = Merchant(merchant_id, country_code='UK')

# Get product resource
product_resource = merchant.products.get(1234)

# Get all products
products = list(merchant.products.list())

# Iterate through products (generator)
for product in merchant.products.list():
    print product.title

# Delete product resource
product = Product.objects.order_by('?').first()
merchant.products.delete(product.id)

License

License stuff is here.

Support

This version is a backport of the previous version by Nam Ngo. We’ll continue to support it! 😉

Metadata

Release files for py-google-shopping 0.2.2

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

Source distribution (sdist)

Source distribution for py-google-shopping 0.2.2
File Size Uploaded Provenance
py-google-shopping-0.2.2.tar.gz 6.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for py-google-shopping 0.2.2
File Interpreter ABI Platform
py_google_shopping-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / py-google-shopping-0.2.2.tar.gz

Download URL py-google-shopping-0.2.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
75b6a79bc2523f6c9a180ac3a2055900afff6da3f81323901bd27e71980b0617
BLAKE2b-256 checksum
How to use checksums
e6bbe5b86c9882f3bb33fc38e2bcc0c401120e54f8e8af01ad0161b1a49927d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / py_google_shopping-0.2.2-py3-none-any.whl

Download URL py_google_shopping-0.2.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2ce4a9e7cd6c1b9c3ed43cbec839b2609ebe745158f272c56488138f34c1a2d
BLAKE2b-256 checksum
How to use checksums
4a905b6833e774f690139d1711e0f428bacad692afc962df0f2c38b82ac40f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Security for py-google-shopping 0.2.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.2.2 This release

2 release files No 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