A pythonic Lime Light API wrapper.
We currently support only a subset of the full Lime Light API functionality, we will be adding methods and plan to achieve total coverage some time during the next several months.
python-limelight contains two modules that implement the two APIs that Lime Light exposes. Lime
Light calls these APIs their Transaction and Membership APIs, we've implemented them as
limelight.transaction and limelight.membership. Both are essentially an 1:1 mapping of
pythonic-as-possible functions to API methods. Unfortunately, Lime Light's API is pretty much all
over the place. It's comprehensive and useful, but not well organized or consistent.
Our solution is designed for both flexibility and ease of use: the entire API is exposed in python in the aforementioned modules and is used as machinery for a much more cohesive interface to the CRM.
Additionally, python-limelight implements extensive client-side data validation to limit the
amount of time spent waiting for a response (which can take up to thirty seconds).
python-limelight is available on PyPi:
pip install python-limelight
Though, for the time being we recommend you track the git repo:
pip install git+https://github.com/heropunch/python-limelight.git@master
>>> import os >>> from limelight.api import TransactionClient >>> client = TransactionClient(host=os.environ['LIMELIGHT_HOST'], username=os.environ['LIMELIGHT_USER'], password=os.environ['LIMELIGHT_PASSWORD']) >>> client.NewOrder(**order_data) <limelight.transaction.new_order.NewOrder object at 0x106f8a1d0>

