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 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.9.2.tar.gz
(17.0 kB
view hashes)
Built Distribution
pymagento-1.9.2-py3-none-any.whl
(19.1 kB
view hashes)
Close
Hashes for pymagento-1.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a495a3e5b72f5147a4f3f15e034509bfad9b842a23c219099ad392f22cf0980a |
|
MD5 | 1baaf760724c28efe36af6241da6839c |
|
BLAKE2b-256 | 53089d6eb40bac2a31d68fb765c72deefba7497d2307ddb8c687a55ce99ec979 |