Skip to content

Commit 9ce49fe

Browse files
author
Dan Richelson
committed
Update version. Update Readme
1 parent e6e98a6 commit 9ce49fe

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to the LaunchDarkly Python SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [3.0.0] - 2016-08-22
6+
### Added
7+
- Twisted support for LDD mode only.
8+
9+
### Changed
10+
- FeatureStore interface get() and all() methods now take an additional callback parameter.
11+
512
## [2.0.0] - 2016-08-10
613
### Added
714
- Support for multivariate feature flags. `variation` replaces `toggle` and can return a string, number, dict, or boolean value depending on how the flag is defined.

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,38 @@ Your first feature flag
2626
-----------------------
2727

2828
1. Create a new feature flag on your [dashboard](https://app.launchdarkly.com)
29-
2. In your application code, use the feature's key to check wthether the flag is on for each user:
29+
2. In your application code, use the feature's key to check whether the flag is on for each user:
3030

3131
if client.variation("your.flag.key", {"key": "user@test.com"}, False):
3232
# application code to show the feature
3333
else:
3434
# the code to run if the feature is off
3535

36+
Twisted
37+
-------
38+
Twisted is supported for LDD mode only. To run in Twisted/LDD mode,
39+
40+
1. Use this dependency:
41+
42+
```
43+
ldclient-py[twisted]==3.0.0
44+
```
45+
2. Configure the client:
46+
47+
```
48+
feature_store = TwistedRedisFeatureStore(url='YOUR_REDIS_URL', redis_prefix="ldd-restwrapper", expiration=0)
49+
ldclient.config.feature_store = feature_store
50+
51+
ldclient.config = ldclient.Config(
52+
use_ldd=use_ldd,
53+
event_consumer_class=TwistedEventConsumer,
54+
)
55+
ldclient.sdk_key = 'YOUR_SDK_KEY'
56+
```
57+
3. Get the client:
58+
59+
```client = ldclient.get()```
60+
3661
Learn more
3762
-----------
3863

ldclient/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "2.0.0"
1+
VERSION = "3.0.0"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def run(self):
3939

4040
setup(
4141
name='ldclient-py',
42-
version='2.0.0',
42+
version='3.0.0',
4343
author='Catamorphic Co.',
4444
author_email='team@catamorphic.com',
4545
packages=['ldclient'],

0 commit comments

Comments
 (0)