optimizely-sdk 5.2.0__tar.gz → 5.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/CHANGELOG.md +579 -501
  2. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/LICENSE +201 -201
  3. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/MANIFEST.in +6 -6
  4. {optimizely_sdk-5.2.0/optimizely_sdk.egg-info → optimizely-sdk-5.4.0}/PKG-INFO +857 -802
  5. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/README.md +256 -256
  6. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/__init__.py +12 -12
  7. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/bucketer.py +220 -166
  8. optimizely-sdk-5.4.0/optimizely/cmab/__init__.py +12 -0
  9. optimizely-sdk-5.4.0/optimizely/cmab/cmab_client.py +198 -0
  10. optimizely-sdk-5.4.0/optimizely/cmab/cmab_service.py +175 -0
  11. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/config_manager.py +507 -507
  12. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/decision/__init__.py +12 -12
  13. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/decision/optimizely_decide_option.py +30 -27
  14. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/decision/optimizely_decision.py +70 -50
  15. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/decision/optimizely_decision_message.py +25 -25
  16. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/decision_service.py +1043 -629
  17. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/entities.py +271 -194
  18. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/error_handler.py +33 -33
  19. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/event/__init__.py +12 -12
  20. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/event/event_factory.py +213 -200
  21. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/event/event_processor.py +397 -397
  22. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/event/log_event.py +42 -42
  23. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/event/payload.py +141 -138
  24. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/event/user_event.py +110 -106
  25. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/event/user_event_factory.py +139 -128
  26. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/event_builder.py +304 -292
  27. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/event_dispatcher.py +69 -69
  28. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/exceptions.py +18 -0
  29. {optimizely_sdk-5.2.0/optimizely/lib → optimizely-sdk-5.4.0/optimizely/helpers}/__init__.py +12 -12
  30. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/helpers/audience.py +98 -98
  31. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/helpers/condition.py +817 -817
  32. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/helpers/condition_tree_evaluator.py +125 -125
  33. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/helpers/constants.py +172 -172
  34. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/helpers/enums.py +235 -231
  35. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/helpers/event_tag_utils.py +144 -144
  36. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/helpers/experiment.py +34 -34
  37. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/helpers/sdk_settings.py +69 -65
  38. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/helpers/types.py +130 -111
  39. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/helpers/validator.py +381 -381
  40. {optimizely_sdk-5.2.0/optimizely/helpers → optimizely-sdk-5.4.0/optimizely/lib}/__init__.py +12 -12
  41. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/lib/pymmh3.py +456 -456
  42. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/logger.py +142 -142
  43. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/notification_center.py +142 -142
  44. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/notification_center_registry.py +64 -64
  45. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/odp/__init__.py +12 -12
  46. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/odp/lru_cache.py +125 -120
  47. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/odp/odp_config.py +96 -96
  48. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/odp/odp_event.py +74 -74
  49. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/odp/odp_event_api_manager.py +98 -98
  50. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/odp/odp_event_manager.py +281 -281
  51. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/odp/odp_manager.py +135 -135
  52. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/odp/odp_segment_api_manager.py +194 -194
  53. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/odp/odp_segment_manager.py +94 -94
  54. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/odp/optimizely_odp_option.py +25 -25
  55. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/optimizely.py +1613 -1489
  56. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/optimizely_config.py +542 -542
  57. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/optimizely_factory.py +248 -180
  58. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/optimizely_user_context.py +343 -343
  59. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/project_config.py +878 -718
  60. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/user_profile.py +157 -157
  61. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely/version.py +15 -15
  62. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0/optimizely_sdk.egg-info}/PKG-INFO +857 -802
  63. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely_sdk.egg-info/SOURCES.txt +3 -0
  64. optimizely_sdk-5.2.0/optimizely/py.typed → optimizely-sdk-5.4.0/optimizely_sdk.egg-info/dependency_links.txt +1 -1
  65. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely_sdk.egg-info/requires.txt +12 -6
  66. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/requirements/core.txt +5 -4
  67. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/requirements/docs.txt +3 -3
  68. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/requirements/test.txt +5 -5
  69. optimizely-sdk-5.4.0/requirements/typing.txt +5 -0
  70. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/setup.cfg +4 -4
  71. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/setup.py +61 -61
  72. optimizely_sdk-5.2.0/requirements/typing.txt +0 -4
  73. /optimizely_sdk-5.2.0/optimizely_sdk.egg-info/dependency_links.txt → /optimizely-sdk-5.4.0/optimizely/py.typed +0 -0
  74. {optimizely_sdk-5.2.0 → optimizely-sdk-5.4.0}/optimizely_sdk.egg-info/top_level.txt +0 -0
@@ -1,501 +1,579 @@
1
- # Optimizely Python SDK Changelog
2
-
3
- ## 5.2.0
4
- February 26, 2025
5
-
6
- Python threads have been named.
7
-
8
- `PollingConfigManager` now has another optional parameter `retries` that will control how many times the SDK will attempt to get the datafile if the connection fails. Previously, the SDK would only try once. Now it defaults to maximum of three attempts. When sending event data, the SDK will attempt to send event data up to three times, where as before it would only attempt once.
9
-
10
- ## 5.1.0
11
- November 27th, 2024
12
-
13
- Added support for batch processing in DecideAll and DecideForKeys, enabling more efficient handling of multiple decisions in the User Profile Service.([#440](https://github.com/optimizely/python-sdk/pull/440))
14
-
15
- ## 5.0.1
16
- June 26th, 2024
17
-
18
- We removed redundant dependencies pyOpenSSL and cryptography ([#435](https://github.com/optimizely/python-sdk/pull/435), [#436](https://github.com/optimizely/python-sdk/pull/436)).
19
-
20
- ## 5.0.0
21
- January 18th, 2024
22
-
23
- ### New Features
24
-
25
- The 5.0.0 release introduces a new primary feature, [Advanced Audience Targeting]( https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting) enabled through integration with [Optimizely Data Platform (ODP)](https://docs.developers.optimizely.com/optimizely-data-platform/docs) ([#395](https://github.com/optimizely/python-sdk/pull/395), [#398](https://github.com/optimizely/python-sdk/pull/398), [#402](https://github.com/optimizely/python-sdk/pull/402), [#403](https://github.com/optimizely/python-sdk/pull/403), [#405](https://github.com/optimizely/python-sdk/pull/405)).
26
-
27
- You can use ODP, a high-performance [Customer Data Platform (CDP)]( https://www.optimizely.com/optimization-glossary/customer-data-platform/), to easily create complex real-time segments (RTS) using first-party and 50+ third-party data sources out of the box. You can create custom schemas that support the user attributes important for your business, and stitch together user behavior done on different devices to better understand and target your customers for personalized user experiences. ODP can be used as a single source of truth for these segments in any Optimizely or 3rd party tool.
28
-
29
- With ODP accounts integrated into Optimizely projects, you can build audiences using segments pre-defined in ODP. The SDK will fetch the segments for given users and make decisions using the segments. For access to ODP audience targeting in your Feature Experimentation account, please contact your Optimizely Customer Success Manager.
30
-
31
- This version includes the following changes:
32
-
33
- * New API added to `OptimizelyUserContext`:
34
-
35
- * `fetchQualifiedSegments()`: this API will retrieve user segments from the ODP server. The fetched segments will be used for audience evaluation. The fetched data will be stored in the local cache to avoid repeated network delays.
36
- * When an `OptimizelyUserContext` is created, the SDK will automatically send an identify request to the ODP server to facilitate observing user activities.
37
-
38
- * New APIs added to `OptimizelyClient`:
39
-
40
- * `sendOdpEvent()`: customers can build/send arbitrary ODP events that will bind user identifiers and data to user profiles in ODP.
41
-
42
- For details, refer to our documentation pages:
43
-
44
- * [Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting)
45
- * [Server SDK Support](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-for-server-side-sdks)
46
- * [Initialize Python SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/initialize-sdk-python)
47
- * [OptimizelyUserContext Python SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/wip-fsodp-optimizelyusercontext-python)
48
- * [Advanced Audience Targeting segment qualification methods](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-segment-qualification-methods-python)
49
- * [Send Optimizely Data Platform data using Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/send-odp-data-using-advanced-audience-targeting-python)
50
-
51
- ### Logging
52
-
53
- * Add warning to polling intervals below 30 seconds ([#428](https://github.com/optimizely/python-sdk/pull/428))
54
- * Add warning to duplicate experiment keys ([#430](https://github.com/optimizely/python-sdk/pull/430))
55
-
56
- ### Enhancements
57
- * Added `py.typed` to enable external usage of mypy type annotations.
58
-
59
- ### Breaking Changes
60
- * Updated minimum supported Python version from 3.7 -> 3.8
61
- * `ODPManager` in the SDK is enabled by default. Unless an ODP account is integrated into the Optimizely projects, most `ODPManager` functions will be ignored. If needed, `ODPManager` can be disabled when `OptimizelyClient` is instantiated.
62
- * `BaseConfigManager` abstract class now requires a get_sdk_key method. ([#413](https://github.com/optimizely/python-sdk/pull/413))
63
- * `PollingConfigManager` requires either the sdk_key parameter or datafile containing an sdkKey. ([#413](https://github.com/optimizely/python-sdk/pull/413))
64
- * Asynchronous `BatchEventProcessor` is now the default event processor. ([#378](https://github.com/optimizely/python-sdk/pull/378))
65
-
66
- ## 5.0.0-beta
67
- Apr 28th, 2023
68
-
69
- ### New Features
70
-
71
- The 5.0.0-beta release introduces a new primary feature, [Advanced Audience Targeting]( https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting) enabled through integration with [Optimizely Data Platform (ODP)](https://docs.developers.optimizely.com/optimizely-data-platform/docs) ([#395](https://github.com/optimizely/python-sdk/pull/395), [#398](https://github.com/optimizely/python-sdk/pull/398), [#402](https://github.com/optimizely/python-sdk/pull/402), [#403](https://github.com/optimizely/python-sdk/pull/403), [#405](https://github.com/optimizely/python-sdk/pull/405)).
72
-
73
- You can use ODP, a high-performance [Customer Data Platform (CDP)]( https://www.optimizely.com/optimization-glossary/customer-data-platform/), to easily create complex real-time segments (RTS) using first-party and 50+ third-party data sources out of the box. You can create custom schemas that support the user attributes important for your business, and stitch together user behavior done on different devices to better understand and target your customers for personalized user experiences. ODP can be used as a single source of truth for these segments in any Optimizely or 3rd party tool.
74
-
75
- With ODP accounts integrated into Optimizely projects, you can build audiences using segments pre-defined in ODP. The SDK will fetch the segments for given users and make decisions using the segments. For access to ODP audience targeting in your Feature Experimentation account, please contact your Optimizely Customer Success Manager.
76
-
77
- This version includes the following changes:
78
-
79
- * New API added to `OptimizelyUserContext`:
80
-
81
- * `fetchQualifiedSegments()`: this API will retrieve user segments from the ODP server. The fetched segments will be used for audience evaluation. The fetched data will be stored in the local cache to avoid repeated network delays.
82
- * When an `OptimizelyUserContext` is created, the SDK will automatically send an identify request to the ODP server to facilitate observing user activities.
83
-
84
- * New APIs added to `OptimizelyClient`:
85
-
86
- * `sendOdpEvent()`: customers can build/send arbitrary ODP events that will bind user identifiers and data to user profiles in ODP.
87
-
88
- For details, refer to our documentation pages:
89
-
90
- * [Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting)
91
- * [Server SDK Support](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-for-server-side-sdks)
92
- * [Initialize Python SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/initialize-sdk-python)
93
- * [OptimizelyUserContext Python SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/wip-fsodp-optimizelyusercontext-python)
94
- * [Advanced Audience Targeting segment qualification methods](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-segment-qualification-methods-python)
95
- * [Send Optimizely Data Platform data using Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/send-odp-data-using-advanced-audience-targeting-python)
96
-
97
- ### Breaking Changes
98
-
99
- * `ODPManager` in the SDK is enabled by default. Unless an ODP account is integrated into the Optimizely projects, most `ODPManager` functions will be ignored. If needed, `ODPManager` can be disabled when `OptimizelyClient` is instantiated.
100
- * `BaseConfigManager` abstract class now requires a get_sdk_key method. ([#413](https://github.com/optimizely/python-sdk/pull/413))
101
- * `PollingConfigManager` requires either the sdk_key parameter or datafile containing an sdkKey. ([#413](https://github.com/optimizely/python-sdk/pull/413))
102
- * Asynchronous `BatchEventProcessor` is now the default event processor. ([#378](https://github.com/optimizely/python-sdk/pull/378))
103
-
104
- ## 4.1.1
105
- March 10th, 2023
106
-
107
- We updated our README.md and other non-functional code to reflect that this SDK supports both Optimizely Feature Experimentation and Optimizely Full Stack. ([#420](https://github.com/optimizely/python-sdk/pull/420))
108
-
109
- ## 4.1.0
110
- July 7th, 2022
111
-
112
- ### Bug Fixes
113
- * Fix invalid datafile returned from `ProjectConfig.to_datafile` and `OptimizelyConfig.get_datafile` ([#321](https://github.com/optimizely/python-sdk/pull/321), [#384](https://github.com/optimizely/python-sdk/pull/384))
114
-
115
- ## 4.0.0
116
- January 12th, 2022
117
-
118
- ### New Features
119
- * Add a set of new APIs for overriding and managing user-level flag, experiment and delivery rule decisions. These methods can be used for QA and automated testing purposes. They are an extension of the OptimizelyUserContext interface ([#361](https://github.com/optimizely/python-sdk/pull/361), [#365](https://github.com/optimizely/python-sdk/pull/365), [#369](https://github.com/optimizely/python-sdk/pull/369)):
120
- - setForcedDecision
121
- - getForcedDecision
122
- - removeForcedDecision
123
- - removeAllForcedDecisions
124
-
125
- * For details, refer to our documentation pages: [OptimizelyUserContext](https://docs.developers.optimizely.com/full-stack/v4.0/docs/optimizelyusercontext-python) and [Forced Decision methods](https://docs.developers.optimizely.com/full-stack/v4.0/docs/forced-decision-methods-python).
126
-
127
- ### Breaking Changes:
128
-
129
- * Support for `Python v3.4` has been dropped as of this release due to a security vulnerability with `PyYAML <v5.4`. ([#366](https://github.com/optimizely/python-sdk/pull/366))
130
- * We no longer support `Python v2.7, v3.5, and v3.6` including `PyPy` as of this release. ([#377](https://github.com/optimizely/python-sdk/pull/373))
131
- * We now support `Python v3.7 and above` including `PyPy3`.
132
-
133
- ## 3.10.0
134
- September 16th, 2021
135
-
136
- ### New Features
137
- * Added new public properties to OptimizelyConfig.
138
- - sdk_key and environment_key [#338] (https://github.com/optimizely/python-sdk/pull/338)
139
- - attributes and events [#339] (https://github.com/optimizely/python-sdk/pull/339)
140
- - experiment_rules, delivery_rules, audiences and audiences in OptimizelyExperiment
141
- - [#342] (https://github.com/optimizely/python-sdk/pull/342)
142
- - [#351] (https://github.com/optimizely/python-sdk/pull/351/files)
143
- * For details please refer to our documentation page:
144
- - Python-sdk: [https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-python]
145
-
146
- * OptimizelyFeature.experiments_map of OptimizelyConfig is now deprecated. Please use OptimizelyFeature.experiment_rules and OptimizelyFeature.delivery_rules. [#360] (https://github.com/optimizely/python-sdk/pull/360)
147
-
148
- ### Bug Fixes
149
- * Fix event processor negative timeout interval when retrieving events from queue. [#356] (https://github.com/optimizely/python-sdk/pull/356)
150
-
151
- ## 3.9.1
152
- July 14th, 2021
153
-
154
- ### Bug Fixes:
155
- * Fixed issue with serving incorrect variation in projects containing multiple flags with duplicate keys. [#347] (https://github.com/optimizely/python-sdk/pull/347)
156
- * Fixed issue with serving incorrect variation in create_impression_event in user_event_factory.py. [#350] (https://github.com/optimizely/python-sdk/pull/350)
157
-
158
- ## 3.9.0
159
- June 1st, 2021
160
-
161
- ### New Features
162
- * Added support for multiple concurrent prioritized experiments per flag. [#322](https://github.com/optimizely/python-sdk/pull/322)
163
-
164
- ## 3.8.0
165
- February 12th, 2021
166
-
167
- ### New Features
168
- * New Features
169
- Introducing a new primary interface for retrieving feature flag status, configuration and associated experiment decisions for users ([#309](https://github.com/optimizely/python-sdk/pull/309)). The new `OptimizelyUserContext` class is instantiated with `create_user_context` and exposes the following APIs to get `OptimizelyDecision`:
170
-
171
- - set_attribute
172
- - decide
173
- - decide_all
174
- - decide_for_keys
175
- - track_event
176
-
177
- For details, refer to our documentation page: https://docs.developers.optimizely.com/full-stack/v4.0/docs/python-sdk.
178
-
179
- ## 3.7.1
180
- November 19th, 2020
181
-
182
- ### Bug Fixes:
183
- * Added "enabled" field to decision metadata structure. [#306](https://github.com/optimizely/python-sdk/pull/306)
184
-
185
- ## 3.7.0
186
- November 2nd, 2020
187
-
188
- ### New Features
189
- * Added support for upcoming application-controlled introduction of tracking for non-experiment Flag decisions. [#300](https://github.com/optimizely/python-sdk/pull/300)
190
-
191
- ## 3.6.0
192
- October 1st, 2020
193
-
194
- ### New Features:
195
- * Version targeting using semantic version syntax. [#293](https://github.com/optimizely/python-sdk/pull/293)
196
- * Datafile accessor API added to access current config as a JSON string. [#283](https://github.com/optimizely/python-sdk/pull/283)
197
-
198
- ### Bug Fixes:
199
- * Fixed package installation for Python 3.4 and pypy. [#298](https://github.com/optimizely/python-sdk/pull/298)
200
-
201
- ## 3.5.2
202
- July 14th, 2020
203
-
204
- ### Bug Fixes:
205
- * Fixed handling of network and no status code errors when polling for datafile in `PollingConfigManager` and `AuthDatafilePollingConfigManager`. ([#287](https://github.com/optimizely/python-sdk/pull/287))
206
-
207
- ## 3.5.1
208
- July 10th, 2020
209
-
210
- ### Bug Fixes:
211
- * Fixed HTTP request exception handling in `PollingConfigManager`. ([#285](https://github.com/optimizely/python-sdk/pull/285))
212
-
213
- ## 3.5.0
214
- July 9th, 2020
215
-
216
- ### New Features:
217
- * Introduced 2 APIs to interact with feature variables:
218
- * `get_feature_variable_json` allows you to get value for JSON variables related to a feature.
219
- * `get_all_feature_variables` gets values for all variables under a feature.
220
- * Added support for fetching authenticated datafiles. `AuthDatafilePollingConfigManager` is a new config manager that allows you to poll for a datafile belonging to a secure environment. You can create a client by setting the `datafile_access_token`.
221
-
222
- ### Bug Fixes:
223
- * Fixed log messages for targeted rollouts evaluation. ([#268](https://github.com/optimizely/python-sdk/pull/268))
224
-
225
- ## 3.4.2
226
- June 11th, 2020
227
-
228
- ### Bug Fixes:
229
- * Adjusted log level for audience evaluation logs. ([#267](https://github.com/optimizely/python-sdk/pull/267))
230
-
231
- ## 3.4.1
232
- March 19th, 2020
233
-
234
- ### Bug Fixes:
235
- * Updated `jsonschema` to address [installation issue](https://github.com/optimizely/python-sdk/issues/232).
236
-
237
- ## 3.4.0
238
- January 27th, 2020
239
-
240
- ### New Features:
241
- * Added a new API to get project configuration static data.
242
- * Call `get_optimizely_config()` to get a snapshot of project configuration static data.
243
- * It returns an `OptimizelyConfig` instance which includes a datafile revision number, all experiments, and feature flags mapped by their key values.
244
- * Added caching for `get_optimizely_config()` - `OptimizelyConfig` object will be cached and reused for the lifetime of the datafile.
245
- * For details, refer to our documentation page: [https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-python](https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-python).
246
-
247
-
248
- ## 3.3.1
249
- December 16th, 2019
250
-
251
- ### Bug Fixes:
252
- * Fixed [installation issue](https://github.com/optimizely/python-sdk/issues/220) on Windows. ([#224](https://github.com/optimizely/python-sdk/pull/224))
253
- * Fixed batch event processor deadline reset issue. ([#227](https://github.com/optimizely/python-sdk/pull/227))
254
- * Added more batch event processor debug messages. ([#227](https://github.com/optimizely/python-sdk/pull/227))
255
-
256
- ## 3.3.0
257
- October 28th, 2019
258
-
259
- ### New Features:
260
- * Added support for event batching via the event processor.
261
- * Events generated by methods like `activate`, `track`, and `is_feature_enabled` will be held in a queue until the configured batch size is reached, or the configured flush interval has elapsed. Then, they will be batched into a single payload and sent to the event dispatcher.
262
- * To configure event batching, set the `batch_size` and `flush_interval` properties when initializing instance of [BatchEventProcessor](https://github.com/optimizely/python-sdk/blob/3.3.x/optimizely/event/event_processor.py#L45).
263
- * Event batching is disabled by default. You can pass in instance of `BatchEventProcessor` when creating `Optimizely` instance to enable event batching.
264
- * Users can subscribe to `LogEvent` notification to be notified of whenever a payload consisting of a batch of user events is handed off to the event dispatcher to send to Optimizely's backend.
265
- * Introduced blocking timeout in `PollingConfigManager`. By default, calls to `get_config` will block for maximum of 10 seconds until config is available.
266
-
267
- ### Bug Fixes:
268
- * Fixed incorrect log message when numeric metric is not used. ([#217](https://github.com/optimizely/python-sdk/pull/217))
269
-
270
- ## 3.2.0
271
- August 27th, 2019
272
-
273
- ### New Features:
274
- * Added support for automatic datafile management via [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151):
275
- * The [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151) is an implementation of the [BaseConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L32).
276
- * Users may provide one of datafile or SDK key (sdk_key) or both to `optimizely.Optimizely`. Based on that, the SDK will use the [StaticConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L73) or the [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151). Refer to the [README](README.md) for more instructions.
277
- * An initial datafile can be provided to the `PollingConfigManager` to bootstrap before making HTTP requests for the hosted datafile.
278
- * Requests for the datafile are made in a separate thread and are scheduled with fixed delay.
279
- * Configuration updates can be subscribed to by adding the OPTIMIZELY_CONFIG_UPDATE notification listener.
280
- * Introduced `Optimizely.get_feature_variable` API. ([#191](https://github.com/optimizely/python-sdk/pull/191))
281
-
282
- ### Deprecated:
283
-
284
- * `NotificationCenter.clear_notifications` is deprecated as of this release. Please use `NotificationCenter.clear_notification_listeners`. ([#182](https://github.com/optimizely/python-sdk/pull/182))
285
- * `NotificationCenter.clear_all_notifications` is deprecated as of this release. Please use `NotificationCenter.clear_all_notification_listeners`. ([#182](https://github.com/optimizely/python-sdk/pull/182))
286
-
287
- ## 3.2.0b1
288
- July 26th, 2019
289
-
290
- ### New Features:
291
- * Added support for automatic datafile management via [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151):
292
- * The [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151) is an implementation of the [BaseConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L32).
293
- * Users may provide one of datafile or SDK key (sdk_key) or both to `optimizely.Optimizely`. Based on that, the SDK will use the [StaticConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L73) or the [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151). Refer to the [README](README.md) for more instructions.
294
- * An initial datafile can be provided to the `PollingConfigManager` to bootstrap before making HTTP requests for the hosted datafile.
295
- * Requests for the datafile are made in a separate thread and are scheduled with fixed delay.
296
- * Configuration updates can be subscribed to by adding the OPTIMIZELY_CONFIG_UPDATE notification listener.
297
- * Introduced `Optimizely.get_feature_variable` API. ([#191](https://github.com/optimizely/python-sdk/pull/191))
298
-
299
- ### Deprecated:
300
-
301
- * `NotificationCenter.clear_notifications` is deprecated as of this release. Please use `NotificationCenter.clear_notification_listeners`. ([#182](https://github.com/optimizely/python-sdk/pull/182))
302
- * `NotificationCenter.clear_all_notifications` is deprecated as of this release. Please use `NotificationCenter.clear_all_notification_listeners`. ([#182](https://github.com/optimizely/python-sdk/pull/182))
303
-
304
- ## 3.1.0
305
- May 3rd, 2019
306
-
307
- ### New Features:
308
- * Introduced Decision notification listener to be able to record:
309
- * Variation assignments for users activated in an experiment.
310
- * Feature access for users.
311
- * Feature variable value for users.
312
-
313
- ### Bug Fixes:
314
- * Feature variable APIs now return default variable value when featureEnabled property is false. ([#171](https://github.com/optimizely/python-sdk/pull/171))
315
-
316
- ### Deprecated:
317
- * Activate notification listener is deprecated as of this release. Recommendation is to use the new Decision notification listener. Activate notification listener will be removed in the next major release.
318
-
319
- ## 3.0.0
320
- March 1st, 2019
321
-
322
- The 3.0 release improves event tracking and supports additional audience
323
- targeting functionality.
324
-
325
- ### New Features:
326
- * Event tracking:
327
- * The `track` method now dispatches its conversion event *unconditionally*, without first determining whether the user is targeted by a known experiment that uses the event. This may increase outbound network traffic.
328
- * In Optimizely results, conversion events sent by 3.0 SDKs don\'t explicitly name the experiments and variations that are currently targeted to the user. Instead, conversions are automatically attributed to variations that the user has previously seen, as long as those variations were served via 3.0 SDKs or by other clients capable of automatic attribution, and as long as our backend actually received the impression events for those variations.
329
- * Altogether, this allows you to track conversion events and attribute them to variations even when you don't know all of a user's attribute values, and even if the user's attribute values or the experiment's configuration have changed such that the user is no longer affected by the experiment. As a result, **you may observe an increase in the conversion rate for previously-instrumented events.** If that is undesirable, you can reset the results of previously-running experiments after upgrading to the 3.0 SDK. - This will also allow you to attribute events to variations from other Optimizely projects in your account, even though those experiments don't appear in the same datafile.
330
- * Note that for results segmentation in Optimizely results, the user attribute values from one event are automatically applied to all other events in the same session, as long as the events in question were actually received by our backend. This behavior was already in place and is not affected by the 3.0 release.
331
- * Support for all types of attribute values, not just strings.
332
- * All values are passed through to notification listeners.
333
- * Strings, booleans, and valid numbers are passed to the event dispatcher and can be used for Optimizely results segmentation. A valid number is a finite float or numbers.Integral in the inclusive range \[-2 ^ 53, 2 ^ 53\].
334
- * Strings, booleans, and valid numbers are relevant for audience conditions.
335
- * Support for additional matchers in audience conditions:
336
- * An `exists` matcher that passes if the user has a non-null value for the targeted user attribute and fails otherwise.
337
- * A `substring` matcher that resolves if the user has a string value for the targeted attribute.
338
- * `gt` (greater than) and `lt` (less than) matchers that resolve if the user has a valid number value for the targeted attribute. A valid number is a finite float or numbers.Integral in the inclusive range \[-2 ^ 53, 2 ^ 53\].
339
- * The original (`exact`) matcher can now be used to target booleans and valid numbers, not just strings.
340
- * Support for A/B tests, feature tests, and feature rollouts whose audiences are combined using `"and"` and `"not"` operators, not just the `"or"` operator.
341
- * Datafile-version compatibility check: The SDK will remain uninitialized (i.e., will gracefully fail to activate experiments and features) if given a datafile version greater than 4.
342
- * Updated Pull Request template and commit message guidelines.
343
-
344
- ### Breaking Changes:
345
- * Conversion events sent by 3.0 SDKs don\'t explicitly name the experiments and variations that are currently targeted to the user, so these events are unattributed in raw events data export. You must use the new *results* export to determine the variations to which events have been attributed.
346
- * Previously, notification listeners were only given string-valued user attributes because only strings could be passed into various method calls. That is no longer the case. You may pass non-string attribute values, and if you do, you must update your notification listeners to be able to receive whatever values you pass in.
347
-
348
- ### Bug Fixes:
349
- * Experiments and features can no longer activate when a negatively targeted attribute has a missing, null, or malformed value.
350
- * Audience conditions (except for the new `exists` matcher) no longer resolve to `false` when they fail to find an legitimate value for the targeted user attribute. The result remains `null` (unknown). Therefore, an audience that negates such a condition (using the `"not"` operator) can no longer resolve to `true` unless there is an unrelated branch in the condition tree that itself resolves to `true`.
351
- * Updated the default event dispatcher to log an error if the request resolves to HTTP 4xx or 5xx. ([#140](https://github.com/optimizely/python-sdk/pull/140))
352
- * All methods now validate that user IDs are strings and that experiment keys, feature keys, feature variable keys, and event keys are non-empty strings.
353
-
354
- ## 2.1.1
355
- August 21st, 2018
356
-
357
- * Fix: record conversions for all experiments using an event when using track([#136](https://github.com/optimizely/python-sdk/pull/136)).
358
-
359
- ## 2.1.0
360
- July 2nd, 2018
361
-
362
- * Introduced support for bot filtering ([#121](https://github.com/optimizely/python-sdk/pull/121)).
363
- * Overhauled logging to use standard Python logging ([#123](https://github.com/optimizely/python-sdk/pull/123)).
364
-
365
- ## 2.0.1
366
- June 19th, 2018
367
-
368
- * Fix: send impression event for Feature Test when Feature is disabled ([#128](https://github.com/optimizely/python-sdk/pull/128)).
369
-
370
- ## 2.0.0
371
- April 12th, 2018
372
-
373
- This major release introduces APIs for Feature Management. It also
374
- introduces some breaking changes listed below.
375
-
376
- ### New Features
377
- * Introduced the `is_feature_enabled` API to determine whether to show a feature to a user or not.
378
-
379
- ```
380
- is_enabled = optimizel_client.is_feature_enabled('my_feature_key', 'my_user', user_attributes)
381
- ```
382
-
383
- * All enabled features for the user can be retrieved by calling:
384
-
385
- ```
386
- enabled_features = optimizely_client.get_enabled_features('my_user', user_attributes)
387
- ```
388
- * Introduced Feature Variables to configure or parameterize a feature. There are four variable types: `String`, `Integer`, `Double`, `Boolean`.
389
-
390
- ```
391
- string_variable = optimizely_client.get_feature_variable_string('my_feature_key', 'string_variable_key', 'my_user')
392
- integer_variable = optimizely_client.get_feature_variable_integer('my_feature_key', 'integer_variable_key', 'my_user')
393
- double_variable = optimizely_client.get_feature_variable_double('my_feature_key', 'double_variable_key', 'my_user')
394
- boolean_variable = optimizely_client.get_feature_variable_boolean('my_feature_key', 'boolean_variable_key', 'my_user')
395
- ```
396
-
397
- ### Breaking changes
398
- * The `track` API with revenue value as a stand-alone parameter has been removed. The revenue value should be passed in as an entry in the event tags dict. The key for the revenue tag is `revenue` and the passed in value will be treated by Optimizely as the value for computing results.
399
-
400
- ```
401
- event_tags = {
402
- 'revenue': 1200
403
- }
404
-
405
- optimizely_client.track('event_key', 'my_user', user_attributes, event_tags)
406
- ```
407
-
408
- ## 2.0.0b1
409
- March 29th, 2018
410
-
411
- This beta release introduces APIs for Feature Management. It also
412
- introduces some breaking changes listed below.
413
-
414
- ### New Features
415
- * Introduced the `is_feature_enabled` API to determine whether to show a feature to a user or not.
416
- ```
417
- is_enabled = optimizel_client.is_feature_enabled('my_feature_key', 'my_user', user_attributes)
418
- ```
419
-
420
- * All enabled features for the user can be retrieved by calling:
421
-
422
- ```
423
- enabled_features = optimizely_client.get_enabled_features('my_user', user_attributes)
424
- ```
425
-
426
- * Introduced Feature Variables to configure or parameterize a feature. There are four variable types: `String`, `Integer`, `Double`, `Boolean`.
427
-
428
- ```
429
- string_variable = optimizely_client.get_feature_variable_string('my_feature_key', 'string_variable_key', 'my_user')
430
- integer_variable = optimizely_client.get_feature_variable_integer('my_feature_key', 'integer_variable_key', 'my_user')
431
- double_variable = optimizely_client.get_feature_variable_double('my_feature_key', 'double_variable_key', 'my_user')
432
- boolean_variable = optimizely_client.get_feature_variable_boolean('my_feature_key', 'boolean_variable_key', 'my_user')
433
- ```
434
-
435
- ### Breaking changes
436
- * The `track` API with revenue value as a stand-alone parameter has been removed. The revenue value should be passed in as an entry in the event tags dict. The key for the revenue tag is `revenue` and the passed in value will be treated by Optimizely as the value for computing results.
437
-
438
- ```
439
- event_tags = {
440
- 'revenue': 1200
441
- }
442
-
443
- optimizely_client.track('event_key', 'my_user', user_attributes, event_tags)
444
- ```
445
-
446
- ## 1.4.0
447
-
448
- * Added support for IP anonymization.
449
- * Added support for notification listeners.
450
- * Added support for bucketing ID.
451
- * Updated mmh3 to handle installation failures on Windows 10.
452
-
453
- ## 1.3.0
454
-
455
- * Introduced support for forced bucketing.
456
- * Introduced support for numeric metrics.
457
- * Updated event builder to support new endpoint.
458
-
459
- ## 1.2.1
460
-
461
- * Removed older feature flag parsing.
462
-
463
- ## 1.2.0
464
-
465
- * Added user profile service.
466
-
467
- ## 1.1.1
468
-
469
- * Updated datafile parsing to be able to handle additional fields.
470
- * Deprecated Classic project support.
471
-
472
- ## 1.1.0
473
-
474
- * Included datafile revision information in log events.
475
- * Added event tags to track API to allow users to pass in event metadata.
476
- * Deprecated the `event_value` parameter from the track method. Should use `event_tags` to pass in event value instead.
477
- * Updated event logging endpoint to logx.optimizely.com.
478
-
479
- ## 1.0.0
480
-
481
- * Introduced support for Full Stack projects in Optimizely X. No breaking changes from previous version.
482
- * Introduced more graceful exception handling in instantiation and core methods.
483
- * Updated whitelisting to precede audience matching.
484
-
485
- ## 0.1.3
486
-
487
- * Added support for v2 endpoint and datafile.
488
- * Updated dispatch_event to consume an Event object instead of url and params. The Event object comprises of four properties: url (string representing URL to dispatch event to), params (dict representing the params to be set for the event), http_verb (one of 'GET' or 'POST') and headers (header values to be sent along).
489
- * Fixed issue with tracking events for experiments in groups.
490
-
491
- ## 0.1.2
492
-
493
- * Updated requirements file.
494
-
495
- ## 0.1.1
496
-
497
- * Introduced option to skip JSON schema validation.
498
-
499
- ## 0.1.0
500
-
501
- * Beta release of the Python SDK for server-side testing.
1
+ # Optimizely Python SDK Changelog
2
+
3
+ ## 5.4.0
4
+ December 19th, 2025
5
+
6
+ ### New Features
7
+
8
+ Holdout features:
9
+
10
+ - Added support for Holdouts in Feature Experimentation, enabling global traffic exclusion from experiments for statistical confidence validation. ([#469](https://github.com/optimizely/python-sdk/pull/469))
11
+ - Added holdout support for default decision service ([#467](https://github.com/optimizely/python-sdk/pull/467))
12
+ - Project Config updated for Holdout ([#464](https://github.com/optimizely/python-sdk/pull/464))
13
+
14
+ ---
15
+
16
+ ### Bug Fixes
17
+ - Resolved issues with Holdout impression event handling and notification delivery. ([#471](https://github.com/optimizely/python-sdk/pull/471))
18
+
19
+ ---
20
+
21
+
22
+ ## 5.3.0
23
+ November 13th, 2025
24
+
25
+ This release introduces **Contextual Multi-Armed Bandit (CMAB)** support in the Optimizely Python SDK along with several enhancements, bug fixes, and infrastructure improvements.
26
+
27
+ ---
28
+
29
+ ### New Features
30
+
31
+ #### **CMAB Support**
32
+
33
+ A major addition in this release is support for **Contextual Multi-Armed Bandit (CMAB)**, enabling adaptive experimentation based on contextual user data.
34
+
35
+ The CMAB feature includes:
36
+
37
+ - CMAB Client and Service implementations to communicate with CMAB APIs ([#453](https://github.com/optimizely/python-sdk/pull/453), [#455](https://github.com/optimizely/python-sdk/pull/455))
38
+ - Decision Service updates to handle CMAB-based decisioning ([#457](https://github.com/optimizely/python-sdk/pull/457))
39
+ - Impression event updates to include CMAB UUID ([#458](https://github.com/optimizely/python-sdk/pull/458))
40
+ - Cache system enhancements including a new `remove()` method for CMAB cache ([#454](https://github.com/optimizely/python-sdk/pull/454))
41
+ - Configuration options to customize CMAB cache parameters ([#463](https://github.com/optimizely/python-sdk/pull/463))
42
+ - Exposure of CMAB prediction endpoint for programmatic access ([#466](https://github.com/optimizely/python-sdk/pull/466))
43
+
44
+ These updates collectively enable Python SDK users to leverage machine learning–driven bandit optimization strategies within Optimizely Feature Experimentation.
45
+
46
+ ---
47
+
48
+ #### **Multi-Region Data Hosting**
49
+
50
+ - Added SDK support for multi-region data hosting, allowing projects to specify their data residency region ([#459](https://github.com/optimizely/python-sdk/pull/459)).
51
+
52
+ ---
53
+
54
+ ### Security Fixes
55
+
56
+ - Addressed a CSRF security warning by properly importing and registering `CSRFProtect`
57
+ ([#448](https://github.com/optimizely/python-sdk/pull/448), [#450](https://github.com/optimizely/python-sdk/pull/450), [#452](https://github.com/optimizely/python-sdk/pull/452)).
58
+
59
+ ---
60
+
61
+ ### Enhancements
62
+
63
+ - Updated project configuration to track CMAB properties ([#451](https://github.com/optimizely/python-sdk/pull/451)).
64
+ - Removed unused `testapp` folder from tests as part of maintenance cleanup ([#461](https://github.com/optimizely/python-sdk/pull/461)).
65
+
66
+ ---
67
+
68
+ ### Bug Fixes
69
+
70
+ - Fixed concurrency issues in CMAB service to ensure thread-safe cache and decision logic ([#462](https://github.com/optimizely/python-sdk/pull/462)).
71
+
72
+ ---
73
+
74
+ ### New Contributors
75
+
76
+ - [@esrakartalOpt](https://github.com/esrakartalOpt) made their first contribution in [#459](https://github.com/optimizely/python-sdk/pull/459).
77
+
78
+ ---
79
+
80
+
81
+ ## 5.2.0
82
+ February 26, 2025
83
+
84
+ Python threads have been named.
85
+
86
+ `PollingConfigManager` now has another optional parameter `retries` that will control how many times the SDK will attempt to get the datafile if the connection fails. Previously, the SDK would only try once. Now it defaults to maximum of three attempts. When sending event data, the SDK will attempt to send event data up to three times, where as before it would only attempt once.
87
+
88
+ ## 5.1.0
89
+ November 27th, 2024
90
+
91
+ Added support for batch processing in DecideAll and DecideForKeys, enabling more efficient handling of multiple decisions in the User Profile Service.([#440](https://github.com/optimizely/python-sdk/pull/440))
92
+
93
+ ## 5.0.1
94
+ June 26th, 2024
95
+
96
+ We removed redundant dependencies pyOpenSSL and cryptography ([#435](https://github.com/optimizely/python-sdk/pull/435), [#436](https://github.com/optimizely/python-sdk/pull/436)).
97
+
98
+ ## 5.0.0
99
+ January 18th, 2024
100
+
101
+ ### New Features
102
+
103
+ The 5.0.0 release introduces a new primary feature, [Advanced Audience Targeting]( https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting) enabled through integration with [Optimizely Data Platform (ODP)](https://docs.developers.optimizely.com/optimizely-data-platform/docs) ([#395](https://github.com/optimizely/python-sdk/pull/395), [#398](https://github.com/optimizely/python-sdk/pull/398), [#402](https://github.com/optimizely/python-sdk/pull/402), [#403](https://github.com/optimizely/python-sdk/pull/403), [#405](https://github.com/optimizely/python-sdk/pull/405)).
104
+
105
+ You can use ODP, a high-performance [Customer Data Platform (CDP)]( https://www.optimizely.com/optimization-glossary/customer-data-platform/), to easily create complex real-time segments (RTS) using first-party and 50+ third-party data sources out of the box. You can create custom schemas that support the user attributes important for your business, and stitch together user behavior done on different devices to better understand and target your customers for personalized user experiences. ODP can be used as a single source of truth for these segments in any Optimizely or 3rd party tool.
106
+
107
+ With ODP accounts integrated into Optimizely projects, you can build audiences using segments pre-defined in ODP. The SDK will fetch the segments for given users and make decisions using the segments. For access to ODP audience targeting in your Feature Experimentation account, please contact your Optimizely Customer Success Manager.
108
+
109
+ This version includes the following changes:
110
+
111
+ * New API added to `OptimizelyUserContext`:
112
+
113
+ * `fetchQualifiedSegments()`: this API will retrieve user segments from the ODP server. The fetched segments will be used for audience evaluation. The fetched data will be stored in the local cache to avoid repeated network delays.
114
+ * When an `OptimizelyUserContext` is created, the SDK will automatically send an identify request to the ODP server to facilitate observing user activities.
115
+
116
+ * New APIs added to `OptimizelyClient`:
117
+
118
+ * `sendOdpEvent()`: customers can build/send arbitrary ODP events that will bind user identifiers and data to user profiles in ODP.
119
+
120
+ For details, refer to our documentation pages:
121
+
122
+ * [Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting)
123
+ * [Server SDK Support](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-for-server-side-sdks)
124
+ * [Initialize Python SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/initialize-sdk-python)
125
+ * [OptimizelyUserContext Python SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/wip-fsodp-optimizelyusercontext-python)
126
+ * [Advanced Audience Targeting segment qualification methods](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-segment-qualification-methods-python)
127
+ * [Send Optimizely Data Platform data using Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/send-odp-data-using-advanced-audience-targeting-python)
128
+
129
+ ### Logging
130
+
131
+ * Add warning to polling intervals below 30 seconds ([#428](https://github.com/optimizely/python-sdk/pull/428))
132
+ * Add warning to duplicate experiment keys ([#430](https://github.com/optimizely/python-sdk/pull/430))
133
+
134
+ ### Enhancements
135
+ * Added `py.typed` to enable external usage of mypy type annotations.
136
+
137
+ ### Breaking Changes
138
+ * Updated minimum supported Python version from 3.7 -> 3.8
139
+ * `ODPManager` in the SDK is enabled by default. Unless an ODP account is integrated into the Optimizely projects, most `ODPManager` functions will be ignored. If needed, `ODPManager` can be disabled when `OptimizelyClient` is instantiated.
140
+ * `BaseConfigManager` abstract class now requires a get_sdk_key method. ([#413](https://github.com/optimizely/python-sdk/pull/413))
141
+ * `PollingConfigManager` requires either the sdk_key parameter or datafile containing an sdkKey. ([#413](https://github.com/optimizely/python-sdk/pull/413))
142
+ * Asynchronous `BatchEventProcessor` is now the default event processor. ([#378](https://github.com/optimizely/python-sdk/pull/378))
143
+
144
+ ## 5.0.0-beta
145
+ Apr 28th, 2023
146
+
147
+ ### New Features
148
+
149
+ The 5.0.0-beta release introduces a new primary feature, [Advanced Audience Targeting]( https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting) enabled through integration with [Optimizely Data Platform (ODP)](https://docs.developers.optimizely.com/optimizely-data-platform/docs) ([#395](https://github.com/optimizely/python-sdk/pull/395), [#398](https://github.com/optimizely/python-sdk/pull/398), [#402](https://github.com/optimizely/python-sdk/pull/402), [#403](https://github.com/optimizely/python-sdk/pull/403), [#405](https://github.com/optimizely/python-sdk/pull/405)).
150
+
151
+ You can use ODP, a high-performance [Customer Data Platform (CDP)]( https://www.optimizely.com/optimization-glossary/customer-data-platform/), to easily create complex real-time segments (RTS) using first-party and 50+ third-party data sources out of the box. You can create custom schemas that support the user attributes important for your business, and stitch together user behavior done on different devices to better understand and target your customers for personalized user experiences. ODP can be used as a single source of truth for these segments in any Optimizely or 3rd party tool.
152
+
153
+ With ODP accounts integrated into Optimizely projects, you can build audiences using segments pre-defined in ODP. The SDK will fetch the segments for given users and make decisions using the segments. For access to ODP audience targeting in your Feature Experimentation account, please contact your Optimizely Customer Success Manager.
154
+
155
+ This version includes the following changes:
156
+
157
+ * New API added to `OptimizelyUserContext`:
158
+
159
+ * `fetchQualifiedSegments()`: this API will retrieve user segments from the ODP server. The fetched segments will be used for audience evaluation. The fetched data will be stored in the local cache to avoid repeated network delays.
160
+ * When an `OptimizelyUserContext` is created, the SDK will automatically send an identify request to the ODP server to facilitate observing user activities.
161
+
162
+ * New APIs added to `OptimizelyClient`:
163
+
164
+ * `sendOdpEvent()`: customers can build/send arbitrary ODP events that will bind user identifiers and data to user profiles in ODP.
165
+
166
+ For details, refer to our documentation pages:
167
+
168
+ * [Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting)
169
+ * [Server SDK Support](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-for-server-side-sdks)
170
+ * [Initialize Python SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/initialize-sdk-python)
171
+ * [OptimizelyUserContext Python SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/wip-fsodp-optimizelyusercontext-python)
172
+ * [Advanced Audience Targeting segment qualification methods](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-segment-qualification-methods-python)
173
+ * [Send Optimizely Data Platform data using Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/send-odp-data-using-advanced-audience-targeting-python)
174
+
175
+ ### Breaking Changes
176
+
177
+ * `ODPManager` in the SDK is enabled by default. Unless an ODP account is integrated into the Optimizely projects, most `ODPManager` functions will be ignored. If needed, `ODPManager` can be disabled when `OptimizelyClient` is instantiated.
178
+ * `BaseConfigManager` abstract class now requires a get_sdk_key method. ([#413](https://github.com/optimizely/python-sdk/pull/413))
179
+ * `PollingConfigManager` requires either the sdk_key parameter or datafile containing an sdkKey. ([#413](https://github.com/optimizely/python-sdk/pull/413))
180
+ * Asynchronous `BatchEventProcessor` is now the default event processor. ([#378](https://github.com/optimizely/python-sdk/pull/378))
181
+
182
+ ## 4.1.1
183
+ March 10th, 2023
184
+
185
+ We updated our README.md and other non-functional code to reflect that this SDK supports both Optimizely Feature Experimentation and Optimizely Full Stack. ([#420](https://github.com/optimizely/python-sdk/pull/420))
186
+
187
+ ## 4.1.0
188
+ July 7th, 2022
189
+
190
+ ### Bug Fixes
191
+ * Fix invalid datafile returned from `ProjectConfig.to_datafile` and `OptimizelyConfig.get_datafile` ([#321](https://github.com/optimizely/python-sdk/pull/321), [#384](https://github.com/optimizely/python-sdk/pull/384))
192
+
193
+ ## 4.0.0
194
+ January 12th, 2022
195
+
196
+ ### New Features
197
+ * Add a set of new APIs for overriding and managing user-level flag, experiment and delivery rule decisions. These methods can be used for QA and automated testing purposes. They are an extension of the OptimizelyUserContext interface ([#361](https://github.com/optimizely/python-sdk/pull/361), [#365](https://github.com/optimizely/python-sdk/pull/365), [#369](https://github.com/optimizely/python-sdk/pull/369)):
198
+ - setForcedDecision
199
+ - getForcedDecision
200
+ - removeForcedDecision
201
+ - removeAllForcedDecisions
202
+
203
+ * For details, refer to our documentation pages: [OptimizelyUserContext](https://docs.developers.optimizely.com/full-stack/v4.0/docs/optimizelyusercontext-python) and [Forced Decision methods](https://docs.developers.optimizely.com/full-stack/v4.0/docs/forced-decision-methods-python).
204
+
205
+ ### Breaking Changes:
206
+
207
+ * Support for `Python v3.4` has been dropped as of this release due to a security vulnerability with `PyYAML <v5.4`. ([#366](https://github.com/optimizely/python-sdk/pull/366))
208
+ * We no longer support `Python v2.7, v3.5, and v3.6` including `PyPy` as of this release. ([#377](https://github.com/optimizely/python-sdk/pull/373))
209
+ * We now support `Python v3.7 and above` including `PyPy3`.
210
+
211
+ ## 3.10.0
212
+ September 16th, 2021
213
+
214
+ ### New Features
215
+ * Added new public properties to OptimizelyConfig.
216
+ - sdk_key and environment_key [#338] (https://github.com/optimizely/python-sdk/pull/338)
217
+ - attributes and events [#339] (https://github.com/optimizely/python-sdk/pull/339)
218
+ - experiment_rules, delivery_rules, audiences and audiences in OptimizelyExperiment
219
+ - [#342] (https://github.com/optimizely/python-sdk/pull/342)
220
+ - [#351] (https://github.com/optimizely/python-sdk/pull/351/files)
221
+ * For details please refer to our documentation page:
222
+ - Python-sdk: [https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-python]
223
+
224
+ * OptimizelyFeature.experiments_map of OptimizelyConfig is now deprecated. Please use OptimizelyFeature.experiment_rules and OptimizelyFeature.delivery_rules. [#360] (https://github.com/optimizely/python-sdk/pull/360)
225
+
226
+ ### Bug Fixes
227
+ * Fix event processor negative timeout interval when retrieving events from queue. [#356] (https://github.com/optimizely/python-sdk/pull/356)
228
+
229
+ ## 3.9.1
230
+ July 14th, 2021
231
+
232
+ ### Bug Fixes:
233
+ * Fixed issue with serving incorrect variation in projects containing multiple flags with duplicate keys. [#347] (https://github.com/optimizely/python-sdk/pull/347)
234
+ * Fixed issue with serving incorrect variation in create_impression_event in user_event_factory.py. [#350] (https://github.com/optimizely/python-sdk/pull/350)
235
+
236
+ ## 3.9.0
237
+ June 1st, 2021
238
+
239
+ ### New Features
240
+ * Added support for multiple concurrent prioritized experiments per flag. [#322](https://github.com/optimizely/python-sdk/pull/322)
241
+
242
+ ## 3.8.0
243
+ February 12th, 2021
244
+
245
+ ### New Features
246
+ * New Features
247
+ Introducing a new primary interface for retrieving feature flag status, configuration and associated experiment decisions for users ([#309](https://github.com/optimizely/python-sdk/pull/309)). The new `OptimizelyUserContext` class is instantiated with `create_user_context` and exposes the following APIs to get `OptimizelyDecision`:
248
+
249
+ - set_attribute
250
+ - decide
251
+ - decide_all
252
+ - decide_for_keys
253
+ - track_event
254
+
255
+ For details, refer to our documentation page: https://docs.developers.optimizely.com/full-stack/v4.0/docs/python-sdk.
256
+
257
+ ## 3.7.1
258
+ November 19th, 2020
259
+
260
+ ### Bug Fixes:
261
+ * Added "enabled" field to decision metadata structure. [#306](https://github.com/optimizely/python-sdk/pull/306)
262
+
263
+ ## 3.7.0
264
+ November 2nd, 2020
265
+
266
+ ### New Features
267
+ * Added support for upcoming application-controlled introduction of tracking for non-experiment Flag decisions. [#300](https://github.com/optimizely/python-sdk/pull/300)
268
+
269
+ ## 3.6.0
270
+ October 1st, 2020
271
+
272
+ ### New Features:
273
+ * Version targeting using semantic version syntax. [#293](https://github.com/optimizely/python-sdk/pull/293)
274
+ * Datafile accessor API added to access current config as a JSON string. [#283](https://github.com/optimizely/python-sdk/pull/283)
275
+
276
+ ### Bug Fixes:
277
+ * Fixed package installation for Python 3.4 and pypy. [#298](https://github.com/optimizely/python-sdk/pull/298)
278
+
279
+ ## 3.5.2
280
+ July 14th, 2020
281
+
282
+ ### Bug Fixes:
283
+ * Fixed handling of network and no status code errors when polling for datafile in `PollingConfigManager` and `AuthDatafilePollingConfigManager`. ([#287](https://github.com/optimizely/python-sdk/pull/287))
284
+
285
+ ## 3.5.1
286
+ July 10th, 2020
287
+
288
+ ### Bug Fixes:
289
+ * Fixed HTTP request exception handling in `PollingConfigManager`. ([#285](https://github.com/optimizely/python-sdk/pull/285))
290
+
291
+ ## 3.5.0
292
+ July 9th, 2020
293
+
294
+ ### New Features:
295
+ * Introduced 2 APIs to interact with feature variables:
296
+ * `get_feature_variable_json` allows you to get value for JSON variables related to a feature.
297
+ * `get_all_feature_variables` gets values for all variables under a feature.
298
+ * Added support for fetching authenticated datafiles. `AuthDatafilePollingConfigManager` is a new config manager that allows you to poll for a datafile belonging to a secure environment. You can create a client by setting the `datafile_access_token`.
299
+
300
+ ### Bug Fixes:
301
+ * Fixed log messages for targeted rollouts evaluation. ([#268](https://github.com/optimizely/python-sdk/pull/268))
302
+
303
+ ## 3.4.2
304
+ June 11th, 2020
305
+
306
+ ### Bug Fixes:
307
+ * Adjusted log level for audience evaluation logs. ([#267](https://github.com/optimizely/python-sdk/pull/267))
308
+
309
+ ## 3.4.1
310
+ March 19th, 2020
311
+
312
+ ### Bug Fixes:
313
+ * Updated `jsonschema` to address [installation issue](https://github.com/optimizely/python-sdk/issues/232).
314
+
315
+ ## 3.4.0
316
+ January 27th, 2020
317
+
318
+ ### New Features:
319
+ * Added a new API to get project configuration static data.
320
+ * Call `get_optimizely_config()` to get a snapshot of project configuration static data.
321
+ * It returns an `OptimizelyConfig` instance which includes a datafile revision number, all experiments, and feature flags mapped by their key values.
322
+ * Added caching for `get_optimizely_config()` - `OptimizelyConfig` object will be cached and reused for the lifetime of the datafile.
323
+ * For details, refer to our documentation page: [https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-python](https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-python).
324
+
325
+
326
+ ## 3.3.1
327
+ December 16th, 2019
328
+
329
+ ### Bug Fixes:
330
+ * Fixed [installation issue](https://github.com/optimizely/python-sdk/issues/220) on Windows. ([#224](https://github.com/optimizely/python-sdk/pull/224))
331
+ * Fixed batch event processor deadline reset issue. ([#227](https://github.com/optimizely/python-sdk/pull/227))
332
+ * Added more batch event processor debug messages. ([#227](https://github.com/optimizely/python-sdk/pull/227))
333
+
334
+ ## 3.3.0
335
+ October 28th, 2019
336
+
337
+ ### New Features:
338
+ * Added support for event batching via the event processor.
339
+ * Events generated by methods like `activate`, `track`, and `is_feature_enabled` will be held in a queue until the configured batch size is reached, or the configured flush interval has elapsed. Then, they will be batched into a single payload and sent to the event dispatcher.
340
+ * To configure event batching, set the `batch_size` and `flush_interval` properties when initializing instance of [BatchEventProcessor](https://github.com/optimizely/python-sdk/blob/3.3.x/optimizely/event/event_processor.py#L45).
341
+ * Event batching is disabled by default. You can pass in instance of `BatchEventProcessor` when creating `Optimizely` instance to enable event batching.
342
+ * Users can subscribe to `LogEvent` notification to be notified of whenever a payload consisting of a batch of user events is handed off to the event dispatcher to send to Optimizely's backend.
343
+ * Introduced blocking timeout in `PollingConfigManager`. By default, calls to `get_config` will block for maximum of 10 seconds until config is available.
344
+
345
+ ### Bug Fixes:
346
+ * Fixed incorrect log message when numeric metric is not used. ([#217](https://github.com/optimizely/python-sdk/pull/217))
347
+
348
+ ## 3.2.0
349
+ August 27th, 2019
350
+
351
+ ### New Features:
352
+ * Added support for automatic datafile management via [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151):
353
+ * The [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151) is an implementation of the [BaseConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L32).
354
+ * Users may provide one of datafile or SDK key (sdk_key) or both to `optimizely.Optimizely`. Based on that, the SDK will use the [StaticConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L73) or the [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151). Refer to the [README](README.md) for more instructions.
355
+ * An initial datafile can be provided to the `PollingConfigManager` to bootstrap before making HTTP requests for the hosted datafile.
356
+ * Requests for the datafile are made in a separate thread and are scheduled with fixed delay.
357
+ * Configuration updates can be subscribed to by adding the OPTIMIZELY_CONFIG_UPDATE notification listener.
358
+ * Introduced `Optimizely.get_feature_variable` API. ([#191](https://github.com/optimizely/python-sdk/pull/191))
359
+
360
+ ### Deprecated:
361
+
362
+ * `NotificationCenter.clear_notifications` is deprecated as of this release. Please use `NotificationCenter.clear_notification_listeners`. ([#182](https://github.com/optimizely/python-sdk/pull/182))
363
+ * `NotificationCenter.clear_all_notifications` is deprecated as of this release. Please use `NotificationCenter.clear_all_notification_listeners`. ([#182](https://github.com/optimizely/python-sdk/pull/182))
364
+
365
+ ## 3.2.0b1
366
+ July 26th, 2019
367
+
368
+ ### New Features:
369
+ * Added support for automatic datafile management via [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151):
370
+ * The [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151) is an implementation of the [BaseConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L32).
371
+ * Users may provide one of datafile or SDK key (sdk_key) or both to `optimizely.Optimizely`. Based on that, the SDK will use the [StaticConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L73) or the [PollingConfigManager](https://github.com/optimizely/python-sdk/blob/3.2.x/optimizely/config_manager.py#L151). Refer to the [README](README.md) for more instructions.
372
+ * An initial datafile can be provided to the `PollingConfigManager` to bootstrap before making HTTP requests for the hosted datafile.
373
+ * Requests for the datafile are made in a separate thread and are scheduled with fixed delay.
374
+ * Configuration updates can be subscribed to by adding the OPTIMIZELY_CONFIG_UPDATE notification listener.
375
+ * Introduced `Optimizely.get_feature_variable` API. ([#191](https://github.com/optimizely/python-sdk/pull/191))
376
+
377
+ ### Deprecated:
378
+
379
+ * `NotificationCenter.clear_notifications` is deprecated as of this release. Please use `NotificationCenter.clear_notification_listeners`. ([#182](https://github.com/optimizely/python-sdk/pull/182))
380
+ * `NotificationCenter.clear_all_notifications` is deprecated as of this release. Please use `NotificationCenter.clear_all_notification_listeners`. ([#182](https://github.com/optimizely/python-sdk/pull/182))
381
+
382
+ ## 3.1.0
383
+ May 3rd, 2019
384
+
385
+ ### New Features:
386
+ * Introduced Decision notification listener to be able to record:
387
+ * Variation assignments for users activated in an experiment.
388
+ * Feature access for users.
389
+ * Feature variable value for users.
390
+
391
+ ### Bug Fixes:
392
+ * Feature variable APIs now return default variable value when featureEnabled property is false. ([#171](https://github.com/optimizely/python-sdk/pull/171))
393
+
394
+ ### Deprecated:
395
+ * Activate notification listener is deprecated as of this release. Recommendation is to use the new Decision notification listener. Activate notification listener will be removed in the next major release.
396
+
397
+ ## 3.0.0
398
+ March 1st, 2019
399
+
400
+ The 3.0 release improves event tracking and supports additional audience
401
+ targeting functionality.
402
+
403
+ ### New Features:
404
+ * Event tracking:
405
+ * The `track` method now dispatches its conversion event *unconditionally*, without first determining whether the user is targeted by a known experiment that uses the event. This may increase outbound network traffic.
406
+ * In Optimizely results, conversion events sent by 3.0 SDKs don\'t explicitly name the experiments and variations that are currently targeted to the user. Instead, conversions are automatically attributed to variations that the user has previously seen, as long as those variations were served via 3.0 SDKs or by other clients capable of automatic attribution, and as long as our backend actually received the impression events for those variations.
407
+ * Altogether, this allows you to track conversion events and attribute them to variations even when you don't know all of a user's attribute values, and even if the user's attribute values or the experiment's configuration have changed such that the user is no longer affected by the experiment. As a result, **you may observe an increase in the conversion rate for previously-instrumented events.** If that is undesirable, you can reset the results of previously-running experiments after upgrading to the 3.0 SDK. - This will also allow you to attribute events to variations from other Optimizely projects in your account, even though those experiments don't appear in the same datafile.
408
+ * Note that for results segmentation in Optimizely results, the user attribute values from one event are automatically applied to all other events in the same session, as long as the events in question were actually received by our backend. This behavior was already in place and is not affected by the 3.0 release.
409
+ * Support for all types of attribute values, not just strings.
410
+ * All values are passed through to notification listeners.
411
+ * Strings, booleans, and valid numbers are passed to the event dispatcher and can be used for Optimizely results segmentation. A valid number is a finite float or numbers.Integral in the inclusive range \[-2 ^ 53, 2 ^ 53\].
412
+ * Strings, booleans, and valid numbers are relevant for audience conditions.
413
+ * Support for additional matchers in audience conditions:
414
+ * An `exists` matcher that passes if the user has a non-null value for the targeted user attribute and fails otherwise.
415
+ * A `substring` matcher that resolves if the user has a string value for the targeted attribute.
416
+ * `gt` (greater than) and `lt` (less than) matchers that resolve if the user has a valid number value for the targeted attribute. A valid number is a finite float or numbers.Integral in the inclusive range \[-2 ^ 53, 2 ^ 53\].
417
+ * The original (`exact`) matcher can now be used to target booleans and valid numbers, not just strings.
418
+ * Support for A/B tests, feature tests, and feature rollouts whose audiences are combined using `"and"` and `"not"` operators, not just the `"or"` operator.
419
+ * Datafile-version compatibility check: The SDK will remain uninitialized (i.e., will gracefully fail to activate experiments and features) if given a datafile version greater than 4.
420
+ * Updated Pull Request template and commit message guidelines.
421
+
422
+ ### Breaking Changes:
423
+ * Conversion events sent by 3.0 SDKs don\'t explicitly name the experiments and variations that are currently targeted to the user, so these events are unattributed in raw events data export. You must use the new *results* export to determine the variations to which events have been attributed.
424
+ * Previously, notification listeners were only given string-valued user attributes because only strings could be passed into various method calls. That is no longer the case. You may pass non-string attribute values, and if you do, you must update your notification listeners to be able to receive whatever values you pass in.
425
+
426
+ ### Bug Fixes:
427
+ * Experiments and features can no longer activate when a negatively targeted attribute has a missing, null, or malformed value.
428
+ * Audience conditions (except for the new `exists` matcher) no longer resolve to `false` when they fail to find an legitimate value for the targeted user attribute. The result remains `null` (unknown). Therefore, an audience that negates such a condition (using the `"not"` operator) can no longer resolve to `true` unless there is an unrelated branch in the condition tree that itself resolves to `true`.
429
+ * Updated the default event dispatcher to log an error if the request resolves to HTTP 4xx or 5xx. ([#140](https://github.com/optimizely/python-sdk/pull/140))
430
+ * All methods now validate that user IDs are strings and that experiment keys, feature keys, feature variable keys, and event keys are non-empty strings.
431
+
432
+ ## 2.1.1
433
+ August 21st, 2018
434
+
435
+ * Fix: record conversions for all experiments using an event when using track([#136](https://github.com/optimizely/python-sdk/pull/136)).
436
+
437
+ ## 2.1.0
438
+ July 2nd, 2018
439
+
440
+ * Introduced support for bot filtering ([#121](https://github.com/optimizely/python-sdk/pull/121)).
441
+ * Overhauled logging to use standard Python logging ([#123](https://github.com/optimizely/python-sdk/pull/123)).
442
+
443
+ ## 2.0.1
444
+ June 19th, 2018
445
+
446
+ * Fix: send impression event for Feature Test when Feature is disabled ([#128](https://github.com/optimizely/python-sdk/pull/128)).
447
+
448
+ ## 2.0.0
449
+ April 12th, 2018
450
+
451
+ This major release introduces APIs for Feature Management. It also
452
+ introduces some breaking changes listed below.
453
+
454
+ ### New Features
455
+ * Introduced the `is_feature_enabled` API to determine whether to show a feature to a user or not.
456
+
457
+ ```
458
+ is_enabled = optimizel_client.is_feature_enabled('my_feature_key', 'my_user', user_attributes)
459
+ ```
460
+
461
+ * All enabled features for the user can be retrieved by calling:
462
+
463
+ ```
464
+ enabled_features = optimizely_client.get_enabled_features('my_user', user_attributes)
465
+ ```
466
+ * Introduced Feature Variables to configure or parameterize a feature. There are four variable types: `String`, `Integer`, `Double`, `Boolean`.
467
+
468
+ ```
469
+ string_variable = optimizely_client.get_feature_variable_string('my_feature_key', 'string_variable_key', 'my_user')
470
+ integer_variable = optimizely_client.get_feature_variable_integer('my_feature_key', 'integer_variable_key', 'my_user')
471
+ double_variable = optimizely_client.get_feature_variable_double('my_feature_key', 'double_variable_key', 'my_user')
472
+ boolean_variable = optimizely_client.get_feature_variable_boolean('my_feature_key', 'boolean_variable_key', 'my_user')
473
+ ```
474
+
475
+ ### Breaking changes
476
+ * The `track` API with revenue value as a stand-alone parameter has been removed. The revenue value should be passed in as an entry in the event tags dict. The key for the revenue tag is `revenue` and the passed in value will be treated by Optimizely as the value for computing results.
477
+
478
+ ```
479
+ event_tags = {
480
+ 'revenue': 1200
481
+ }
482
+
483
+ optimizely_client.track('event_key', 'my_user', user_attributes, event_tags)
484
+ ```
485
+
486
+ ## 2.0.0b1
487
+ March 29th, 2018
488
+
489
+ This beta release introduces APIs for Feature Management. It also
490
+ introduces some breaking changes listed below.
491
+
492
+ ### New Features
493
+ * Introduced the `is_feature_enabled` API to determine whether to show a feature to a user or not.
494
+ ```
495
+ is_enabled = optimizel_client.is_feature_enabled('my_feature_key', 'my_user', user_attributes)
496
+ ```
497
+
498
+ * All enabled features for the user can be retrieved by calling:
499
+
500
+ ```
501
+ enabled_features = optimizely_client.get_enabled_features('my_user', user_attributes)
502
+ ```
503
+
504
+ * Introduced Feature Variables to configure or parameterize a feature. There are four variable types: `String`, `Integer`, `Double`, `Boolean`.
505
+
506
+ ```
507
+ string_variable = optimizely_client.get_feature_variable_string('my_feature_key', 'string_variable_key', 'my_user')
508
+ integer_variable = optimizely_client.get_feature_variable_integer('my_feature_key', 'integer_variable_key', 'my_user')
509
+ double_variable = optimizely_client.get_feature_variable_double('my_feature_key', 'double_variable_key', 'my_user')
510
+ boolean_variable = optimizely_client.get_feature_variable_boolean('my_feature_key', 'boolean_variable_key', 'my_user')
511
+ ```
512
+
513
+ ### Breaking changes
514
+ * The `track` API with revenue value as a stand-alone parameter has been removed. The revenue value should be passed in as an entry in the event tags dict. The key for the revenue tag is `revenue` and the passed in value will be treated by Optimizely as the value for computing results.
515
+
516
+ ```
517
+ event_tags = {
518
+ 'revenue': 1200
519
+ }
520
+
521
+ optimizely_client.track('event_key', 'my_user', user_attributes, event_tags)
522
+ ```
523
+
524
+ ## 1.4.0
525
+
526
+ * Added support for IP anonymization.
527
+ * Added support for notification listeners.
528
+ * Added support for bucketing ID.
529
+ * Updated mmh3 to handle installation failures on Windows 10.
530
+
531
+ ## 1.3.0
532
+
533
+ * Introduced support for forced bucketing.
534
+ * Introduced support for numeric metrics.
535
+ * Updated event builder to support new endpoint.
536
+
537
+ ## 1.2.1
538
+
539
+ * Removed older feature flag parsing.
540
+
541
+ ## 1.2.0
542
+
543
+ * Added user profile service.
544
+
545
+ ## 1.1.1
546
+
547
+ * Updated datafile parsing to be able to handle additional fields.
548
+ * Deprecated Classic project support.
549
+
550
+ ## 1.1.0
551
+
552
+ * Included datafile revision information in log events.
553
+ * Added event tags to track API to allow users to pass in event metadata.
554
+ * Deprecated the `event_value` parameter from the track method. Should use `event_tags` to pass in event value instead.
555
+ * Updated event logging endpoint to logx.optimizely.com.
556
+
557
+ ## 1.0.0
558
+
559
+ * Introduced support for Full Stack projects in Optimizely X. No breaking changes from previous version.
560
+ * Introduced more graceful exception handling in instantiation and core methods.
561
+ * Updated whitelisting to precede audience matching.
562
+
563
+ ## 0.1.3
564
+
565
+ * Added support for v2 endpoint and datafile.
566
+ * Updated dispatch_event to consume an Event object instead of url and params. The Event object comprises of four properties: url (string representing URL to dispatch event to), params (dict representing the params to be set for the event), http_verb (one of 'GET' or 'POST') and headers (header values to be sent along).
567
+ * Fixed issue with tracking events for experiments in groups.
568
+
569
+ ## 0.1.2
570
+
571
+ * Updated requirements file.
572
+
573
+ ## 0.1.1
574
+
575
+ * Introduced option to skip JSON schema validation.
576
+
577
+ ## 0.1.0
578
+
579
+ * Beta release of the Python SDK for server-side testing.