We encourage pull-requests and other contributions from the community. We've also published an SDK contributor's guide that provides a detailed explanation of how our SDKs work.
-
One-time setup:
mkvirtualenv python-client
-
When working on the project be sure to activate the python-client virtualenv using the technique of your choosing.
-
Install requirements (run-time & test):
pip install -r requirements.txt pip install -r test-requirements.txt
-
Run tests: You'll need redis running locally on its default port of 6379.
-
If you want integration tests to run, set the
LD_SDK_KEY
environment variable to a valid production SDK Key. -
$ py.test testing
Example for switching to python 3:
virtualenv -p `which python3` ~/.virtualenvs/python-client