Skip to main content

Magento Core API Client

Project description

Python library to connect to Magento Webservices.

Check documentation source code


import magento

url = ''
apiuser = 'user'
apipass = 'password'

with magento.Product(url, apiuser, apipass) as product_api:
    order_filter = {'created_at':{'from':'2011-09-15 00:00:00'}}
    products = product_api.list(order_filter)

with magento.ProductTypes(url, apiuser, apipass) as product_type_api:
    product_type = product_type_api.list()

with magento.Product(url, apiuser, apipass) as product_api:
    sku = 'prod1'
    product =

with magento.API(url, apiuser, apipass) as magento_api:
    # Calling custom APIs if you have extension modules on your
    # magento installation
    websites ='ol_websites.list', [])
    store_group ='ol_groups.list', [])
    store_views ='ol_storeviews.list', [])

with magento.Order(url, apiuser, apipass) as order_api:
    order_increment_id = '100000001 '
    status = 'canceled'
    order_api.addcomment(order_increment_id, status)

with magento.Store(url, apiuser, apipass) as store_api:
    store_id = '1'
    store_view_info =
    store_views = store_api.list()

 with magento.Magento(url, apiuser, apipass) as magento_api:
    magento_info =


GNU Affero General Public License version 3

See LICENSE for more details

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for magento, version 0.6dev
Filename, size File type Python version Upload date Hashes
Filename, size magento-0.6dev.tar.gz (13.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page