Skip to content

Python library for interacting with CS-Cart REST API

License

Notifications You must be signed in to change notification settings

elyzov/pycscart

Repository files navigation

pycscart

Build Status PyPI

This is a Python library for interacting with CS-Cart shopping cart via REST API.

Installation

From PyPI

pip install pycscart

From source

git clone [email protected]:gongled/pycscart
python pycscart/setup.py install

Basic Usage

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::{}, ...]

Compatibility

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.

License

Open source under the MIT License. See LICENSE.

About

Python library for interacting with CS-Cart REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published