Python library to connect to Magento Webservices.
Check documentation source code
importmagentourl='http://domain.com/'apiuser='user'apipass='password'withmagento.Product(url, apiuser, apipass) asproduct_api:
order_filter= {'created_at':{'from':'2011-09-15 00:00:00'}}
products=product_api.list(order_filter)
withmagento.ProductTypes(url, apiuser, apipass) asproduct_type_api:
product_type=product_type_api.list()
withmagento.Product(url, apiuser, apipass) asproduct_api:
sku='prod1'product=product_api.info(sku)
withmagento.API(url, apiuser, apipass) asmagento_api:
# Calling custom APIs if you have extension modules on your# magento installationwebsites=magento_api.call('ol_websites.list', [])
store_group=magento_api.call('ol_groups.list', [])
store_views=magento_api.call('ol_storeviews.list', [])
withmagento.Order(url, apiuser, apipass) asorder_api:
order_increment_id='100000001 'status='canceled'order_api.addcomment(order_increment_id, status)
withmagento.Store(url, apiuser, apipass) asstore_api:
store_id='1'store_view_info=store_api.info(store_id)
store_views=store_api.list()
withmagento.Magento(url, apiuser, apipass) asmagento_api:
magento_info=magento_api.info()BSD 3-Clause
See LICENSE for more details