This repository houses the Python SDK for Optimizely Full Stack.
The SDK is available through PyPi. To install:
pip install optimizely-sdk
To access the Feature Management configuration in the Optimizely dashboard, please contact your Optimizely account executive.
See the Optimizely Full Stack developer documentation to learn how to set up your first Python project and use the SDK.
Build and install the SDK with pip, using the following command:
pip install -e .
To get test dependencies installed, use a modified version of the install command:
pip install -e .[test]
You can run all unit tests with:
nosetests
To run all tests under a particular test file you can use the following command:
nosetests tests.<file_name_without_extension>
For example, to run all tests under test_event
, the command would
be:
nosetests tests.test_event
To run all tests under a particular class of tests you can use the following command:
nosetests tests.<file_name_without_extension>:ClassName
For example, to run all tests under test_event.EventTest
, the
command would be:
nosetests tests.test_event:EventTest
To run a single test you can use the following command:
nosetests tests.<file_name_without_extension>:ClassName.test_name
For example, to run test_event.EventTest.test_dispatch
, the command
would be:
nosetests tests.test_event:EventTest.test_dispatch
Please see CONTRIBUTING.