This is a Python library for interacting with CS-Cart shopping cart via REST API.
pip install pycscart
git clone [email protected]:gongled/pycscart
python pycscart/setup.py install
Create a CSCartClient()
instance pointing at your CS-Cart store:
>>> from pycscart import CSCartClient
>>> c = CSCartClient('http://example.com', '[email protected]', '2560VIl10GKpc3Hc7CNjB96U4HIW6299')
Then try calling some methods:
>>> c.list_products()
[CSCartProduct::{}, CSCartProduct::{}, ...]
Compatible with CS-Cart 4.0.0 or newer. Older versions are not implemented because of no APIs in these releases.
Keep in mind, that some methods could work only for a specific release. For example, you cannot have list of vendors on CS-Cart just as you cannot have a list of storefronts on Multi-Vendor installation.
If you find a something is broken, please submit an issue. Don't forget to specify a version of CS-Cart and what kind of error do you have.
Open source under the MIT License. See LICENSE.