Python client for the Magento 2 API
Project description
PyMagento
PyMagento is a Python client for the Magento 2 API. Its goal is to provide an easy-to-use Pythonic interface to the Magento 2 API, while being lightweight and extendable.
Note: PyMagento is not affiliated to nor endorsed by Adobe or the Magento team.
Install
We support only Python 3.8+.
Pip
python -m pip install pymagento
Poetry
poetry add pymagento
Usage
import magento
client = magento.Magento(base_url="...", token="...", scope="all")
product = client.get_product("SKU123")
print(magento.get_custom_attribute(product, "description"))
for order in client.get_orders(status="processing"):
print(order["increment_id"], order["grand_total"])
For more information, read the docs.
License
Copyright 2020-2023 Bixoto.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pymagento-1.7.4.tar.gz
(15.9 kB
view hashes)
Built Distribution
pymagento-1.7.4-py3-none-any.whl
(18.0 kB
view hashes)
Close
Hashes for pymagento-1.7.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1453e89c16d978677b8918660b2d0335df160b98d251162c968a76b3931f0a05 |
|
MD5 | 13cbc52c8f32c7564692388da8bacb4d |
|
BLAKE2b-256 | bf13c951ffe15436cb820ee8b03561b4eba926cdf00fccf49651a2e54f520e00 |