optimizely-sdk 5.1.0__tar.gz → 5.2.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.
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/CHANGELOG.md +501 -494
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/LICENSE +201 -201
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/MANIFEST.in +6 -6
- {optimizely_sdk-5.1.0/optimizely_sdk.egg-info → optimizely_sdk-5.2.0}/PKG-INFO +802 -786
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/README.md +256 -256
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/__init__.py +12 -12
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/bucketer.py +166 -166
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/config_manager.py +507 -485
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/decision/__init__.py +12 -12
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/decision/optimizely_decide_option.py +27 -27
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/decision/optimizely_decision.py +50 -50
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/decision/optimizely_decision_message.py +25 -25
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/decision_service.py +629 -629
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/entities.py +194 -194
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/error_handler.py +33 -33
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/event/__init__.py +12 -12
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/event/event_factory.py +200 -200
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/event/event_processor.py +397 -398
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/event/log_event.py +42 -42
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/event/payload.py +138 -138
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/event/user_event.py +106 -106
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/event/user_event_factory.py +128 -128
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/event_builder.py +292 -292
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/event_dispatcher.py +69 -57
- {optimizely_sdk-5.1.0/optimizely/lib → optimizely_sdk-5.2.0/optimizely/helpers}/__init__.py +12 -12
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/helpers/audience.py +98 -98
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/helpers/condition.py +817 -817
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/helpers/condition_tree_evaluator.py +125 -125
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/helpers/constants.py +172 -172
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/helpers/enums.py +231 -230
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/helpers/event_tag_utils.py +144 -144
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/helpers/experiment.py +34 -34
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/helpers/sdk_settings.py +65 -65
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/helpers/types.py +111 -111
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/helpers/validator.py +381 -380
- {optimizely_sdk-5.1.0/optimizely/helpers → optimizely_sdk-5.2.0/optimizely/lib}/__init__.py +12 -12
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/lib/pymmh3.py +456 -456
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/logger.py +142 -142
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/notification_center.py +142 -142
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/notification_center_registry.py +64 -64
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/odp/__init__.py +12 -12
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/odp/lru_cache.py +120 -120
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/odp/odp_config.py +96 -96
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/odp/odp_event.py +74 -74
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/odp/odp_event_api_manager.py +98 -98
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/odp/odp_event_manager.py +281 -281
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/odp/odp_manager.py +135 -135
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/odp/odp_segment_api_manager.py +194 -194
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/odp/odp_segment_manager.py +94 -94
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/odp/optimizely_odp_option.py +25 -25
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/optimizely.py +1489 -1489
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/optimizely_config.py +542 -542
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/optimizely_factory.py +180 -180
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/optimizely_user_context.py +343 -343
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/project_config.py +718 -718
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/py.typed +1 -1
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/user_profile.py +157 -157
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/version.py +15 -15
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0/optimizely_sdk.egg-info}/PKG-INFO +802 -786
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/requirements/core.txt +4 -4
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/requirements/docs.txt +3 -3
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/requirements/test.txt +5 -5
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/requirements/typing.txt +3 -3
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/setup.cfg +4 -4
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/setup.py +61 -61
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely/exceptions.py +0 -0
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely_sdk.egg-info/SOURCES.txt +0 -0
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely_sdk.egg-info/dependency_links.txt +0 -0
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely_sdk.egg-info/requires.txt +6 -6
- {optimizely_sdk-5.1.0 → optimizely_sdk-5.2.0}/optimizely_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,494 +1,501 @@
|
|
|
1
|
-
# Optimizely Python SDK Changelog
|
|
2
|
-
|
|
3
|
-
## 5.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
*
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
*
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
*
|
|
85
|
-
|
|
86
|
-
*
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
*
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
*
|
|
150
|
-
|
|
151
|
-
## 3.9.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
###
|
|
155
|
-
*
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
*
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
*
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
*
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
*
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
* `
|
|
278
|
-
*
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
*
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
* `
|
|
295
|
-
*
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
*
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
*
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
*
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
*
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
*
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
## 1.
|
|
447
|
-
|
|
448
|
-
*
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
*
|
|
470
|
-
*
|
|
471
|
-
|
|
472
|
-
## 1.
|
|
473
|
-
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
*
|
|
482
|
-
*
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
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.
|