/pymagento

Python API bindings for the Magento Core API

Primary LanguagePythonBSD 2-Clause "Simplified" LicenseBSD-2-Clause

pymagento

Pymagento provides python bindings for the Magento Core API.

Installation

pip install pymagento

Usage

import pymagento
api = pymagento.Magento("hostname", "api_user", "api_key")
category_id = api.category.create(1, {"name": "New Category"})
category_info = api.category.info(category_id)
arbitrary_product = api.product.list()[39]
api.category.assignProduct(arbitrary_product["id"])

See magento.com for API documentation.