Carlos Killpack 72154f2c79 Update README.rst 3 years ago
docs Added sphinx-apidocs 4 years ago
limelight Improved LimeLightException behavior 4 years ago
test Added sphinx documentation, added response object to exceptions 4 years ago
.gitignore Code cleanup and new tests, updated .travis.yml 4 years ago
.travis.yml Dropped Python 3.2 support, among other things. 4 years ago
LICENSE Quite some progress. 4 years ago
README.rst Update README.rst 3 years ago Version bump 4 years ago Version bump 4 years ago


|build| |downloads| |license|


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

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+

Making API Calls

>>> import os
>>> from limelight.api import TransactionClient
>>> client = TransactionClient(host=os.environ['LIMELIGHT_HOST'],
>>> client.NewOrder(**order_data)

.. |build| image::
:alt: Travis-CI

.. |license| image::
:alt: License

.. |downloads| image::
:alt: Downloads