跳转到主要内容

WooCommerce API的Python包装器

项目描述

Pywoo是WooCommerce API的Python 3包装器。

安装

pip3 install pywoo

如何使用

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()

Api对象将帮助您创建、检索、编辑和删除WooCommerce API公开的任何类。

此外,所有类都有实例方法来修改对象,并且有静态方法来做与Api对象相同的事情。

由以下提供支持