This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Magento Core API Client

Project Description

Python library to connect to Magento Webservices.

Check documentation source code

Usage

import magento

url = 'http://domain.com/'
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 = product_api.info(sku)

with magento.API(url, apiuser, apipass) as magento_api:
    # Calling custom APIs if you have extension modules on your
    # magento installation
    websites = magento_api.call('ol_websites.list', [])
    store_group = magento_api.call('ol_groups.list', [])
    store_views = magento_api.call('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_api.info(store_id)
    store_views = store_api.list()

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

License

BSD 3-Clause

See LICENSE for more details

Release History

Release History

This version
History Node

2.2

History Node

2.1

History Node

2.0

History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.6dev

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1.4

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
magento-2.2.tar.gz (14.3 kB) Copy SHA256 Checksum SHA256 Source Aug 17, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting