growthbook 1.3.0__py2.py3-none-any.whl → 1.3.1__py2.py3-none-any.whl
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.
- growthbook/__init__.py +1 -1
- growthbook/core.py +3 -2
- growthbook/growthbook.py +2 -1
- {growthbook-1.3.0.dist-info → growthbook-1.3.1.dist-info}/METADATA +1 -1
- {growthbook-1.3.0.dist-info → growthbook-1.3.1.dist-info}/RECORD +8 -8
- {growthbook-1.3.0.dist-info → growthbook-1.3.1.dist-info}/WHEEL +0 -0
- {growthbook-1.3.0.dist-info → growthbook-1.3.1.dist-info}/licenses/LICENSE +0 -0
- {growthbook-1.3.0.dist-info → growthbook-1.3.1.dist-info}/top_level.txt +0 -0
growthbook/__init__.py
CHANGED
growthbook/core.py
CHANGED
|
@@ -413,7 +413,8 @@ def getBucketRanges(
|
|
|
413
413
|
def eval_feature(
|
|
414
414
|
key: str,
|
|
415
415
|
evalContext: EvaluationContext = None,
|
|
416
|
-
callback_subscription: Callable[[Experiment, Result], None] = None
|
|
416
|
+
callback_subscription: Callable[[Experiment, Result], None] = None,
|
|
417
|
+
tracking_cb: Callable[[Experiment, Result], None] = None
|
|
417
418
|
) -> FeatureResult:
|
|
418
419
|
"""Core feature evaluation logic as a standalone function"""
|
|
419
420
|
|
|
@@ -506,7 +507,7 @@ def eval_feature(
|
|
|
506
507
|
minBucketVersion=rule.minBucketVersion,
|
|
507
508
|
)
|
|
508
509
|
|
|
509
|
-
result = run_experiment(experiment=exp, featureId=key, evalContext=evalContext)
|
|
510
|
+
result = run_experiment(experiment=exp, featureId=key, evalContext=evalContext, tracking_cb=tracking_cb)
|
|
510
511
|
|
|
511
512
|
if callback_subscription:
|
|
512
513
|
callback_subscription(exp, result)
|
growthbook/growthbook.py
CHANGED
|
@@ -708,7 +708,8 @@ class GrowthBook(object):
|
|
|
708
708
|
def eval_feature(self, key: str) -> FeatureResult:
|
|
709
709
|
return core_eval_feature(key=key,
|
|
710
710
|
evalContext=self._get_eval_context(),
|
|
711
|
-
callback_subscription=self._fireSubscriptions
|
|
711
|
+
callback_subscription=self._fireSubscriptions,
|
|
712
|
+
tracking_cb=self._track
|
|
712
713
|
)
|
|
713
714
|
|
|
714
715
|
# @deprecated, use get_all_results
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
growthbook/__init__.py,sha256=
|
|
1
|
+
growthbook/__init__.py,sha256=2pw6uyYKI4IQ59LZbCUsNroy4LLFZ_5XyPmscPUyAwI,444
|
|
2
2
|
growthbook/common_types.py,sha256=1jDWwS_9L0z_AZb5AJq1arEqi6QU66N3S4vYzkcDFDY,14728
|
|
3
|
-
growthbook/core.py,sha256=
|
|
4
|
-
growthbook/growthbook.py,sha256=
|
|
3
|
+
growthbook/core.py,sha256=LCz5f5rchUL056kgJxgH566NoZWr2nr4hhL7MRlyNiM,35184
|
|
4
|
+
growthbook/growthbook.py,sha256=IJmFKTx87zAwQ6nO_Gepm5-S_Mtwf-lnt2RFBviB6Lk,30672
|
|
5
5
|
growthbook/growthbook_client.py,sha256=zLgoBSBCSfCb8OE0b-XQiDAEB4djTiMSrbNpqBui-M0,21454
|
|
6
6
|
growthbook/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
growthbook/plugins/__init__.py,sha256=y2eAV1sA041XWcftBVTDH0t-ggy9r2C5oKRYRF6XR6s,602
|
|
8
8
|
growthbook/plugins/base.py,sha256=PWBXUBj62hi25Y5Eif9WmEWagWdkwGXHi2dMtn44bo8,3637
|
|
9
9
|
growthbook/plugins/growthbook_tracking.py,sha256=aL_dgsPt51IZNxRVZVA5U3QEiGW-e-l5tC7Owl6CZO0,10032
|
|
10
10
|
growthbook/plugins/request_context.py,sha256=7_9LOfS5nXbxXE7KJ-zNT4Ug4-_698A4c3t0hjr6l4c,11895
|
|
11
|
-
growthbook-1.3.
|
|
12
|
-
growthbook-1.3.
|
|
13
|
-
growthbook-1.3.
|
|
14
|
-
growthbook-1.3.
|
|
15
|
-
growthbook-1.3.
|
|
11
|
+
growthbook-1.3.1.dist-info/licenses/LICENSE,sha256=D-TcBckB0dTPUlNJ8jBiTIJIj1ekHLB1CY7HJtJKhMY,1069
|
|
12
|
+
growthbook-1.3.1.dist-info/METADATA,sha256=FwTzARVgHtfSH2ZnCWVq0G9k5ISiPyQDIeYjabR3vCQ,22073
|
|
13
|
+
growthbook-1.3.1.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
14
|
+
growthbook-1.3.1.dist-info/top_level.txt,sha256=dzfRQFGYejCIUstRSrrRVTMlxf7pBqASTI5S8gGRlXw,11
|
|
15
|
+
growthbook-1.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|