Metadata-Version: 1.0
Name: python-google-shopping
Version: 0.1
Summary: Python client for Google Shopping API
Home-page: http://blog.namis.me
Author: Nam Ngo
Author-email: nam@kogan.com.au
License: Copyright (c) 2015 Nam Ngo.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Description: Python Google Shopping for Human
        =================================
        
        Python client for Google Content API v2
        
        Installation
        -------------
        
        .. code-block:: bash
          
          pip install python-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
        
        .. code-block:: bash
        
          export GOOGLE_SHOPPING_CLIENT_ID=my_client_id
          export GOOGLE_SHOPPING_CLIENT_SECRET=my_client_secret
          export GOOGLE_SHOPPING_REFRESH_TOKEN=my_refresh_token
        
        
        .. code-block:: python
        
          from google_shopping import Merchant
          merchant_id = '536476575676'
          merchant = Merchant(merchant_id, country_code='AU')
          
          # 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)
        
        
Keywords: google shopping content api merchant product
Platform: UNKNOWN
