Wrapper and parser modules for Shopify's API.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
shopify
.gitignore
LICENSE.txt
README.md
example.py
requirements.txt
setup.cfg
setup.py

README.md

Description

Contains wrappers and parsers for Shopify's Products API.

Usage

from shopify.products import ProductsApiWrapper, Product, Image

api_key = '<api_key>'
password = '<password>'
store_name = '<store_name>'

paw = ProductsApiWrapper(api_key, password, store_name)
for product in paw.list():
    print product.title
    
product = Product(title='My test product')
image = Image()
image.src = 'https://www.imageurl.com/myimage.jpg'
product.image = image
product.add_tags('testing', 'product')

product = paw.create(product)

product.title = 'My New Title For My Test Product'

paw.update(product)

Installation

pip install git+https://github.com/ziplokk1/python-shopify-api.git