Skip to main content

Python wrapper for querying WooCommerce API

Project description

Pywoo is a Python 3 wrapper for WooCommerce’s API.

Installation

pip3 install pywoo

How to use it

from pywoo import Api

api = Api('http://your_path_to_woocommerce_api', 'your_consumer_key', 'your_consumer_secret')

my_product = api.create_product(name="Pizza")

my_product.description = "A delicious margherita"
my_product.update()

The Api object will help you in creating, retrieving, editing and deleting any class exposed by the WooCommerce API.

Also, all classes have instance methods for modifing the objects on the go and static methods for doing the same stuff the Api object does.

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

pywoo-1.0.0.tar.gz (8.7 kB view hashes)

Uploaded Source

Built Distribution

pywoo-1.0.0-py2.py3-none-any.whl (18.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page