Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
No description, website, or topics provided.
Branch: master
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
optimizely chore(release): Preparing for 3.0.0 release (#164) Mar 1, 2019
requirements chore(release): Preparing for 3.0.0 release (#164) Mar 1, 2019
tests
.coveragerc
.coveralls.yml
.gitignore Overhaul logging integration. (#123) Jun 4, 2018
.travis.yml
CHANGELOG.rst chore(release): Preparing for 3.0.0 release (#164) Mar 1, 2019
CONTRIBUTING.rst ci: Replace pep8 by flake8 and separate linting stage on Travis (#162) Feb 26, 2019
LICENSE Updating license text in file headers (#33) Dec 20, 2016
MANIFEST.in
README.rst Changing MD --> RST (#143) Sep 24, 2018
setup.py Changing MD --> RST (#143) Sep 24, 2018
tox.ini

README.rst

Optimizely Python SDK

PyPI version Build Status Coverage Status Apache 2.0

This repository houses the Python SDK for Optimizely Full Stack.

Getting Started

Installing the SDK

The SDK is available through PyPi. To install:

pip install optimizely-sdk

Feature Management Access

To access the Feature Management configuration in the Optimizely dashboard, please contact your Optimizely account executive.

Using the SDK

See the Optimizely Full Stack developer documentation to learn how to set up your first Python project and use the SDK.

Development

Building the SDK

Build and install the SDK with pip, using the following command:

pip install -e .

Unit tests

Running all tests

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

Running all tests in a file

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

Running all tests under a class

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

Running a single test

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

Contributing

Please see CONTRIBUTING.

You can’t perform that action at this time.