growthbook 1.4.1__py2.py3-none-any.whl → 1.4.2__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/growthbook.py +5 -5
- {growthbook-1.4.1.dist-info → growthbook-1.4.2.dist-info}/METADATA +3 -3
- {growthbook-1.4.1.dist-info → growthbook-1.4.2.dist-info}/RECORD +7 -7
- {growthbook-1.4.1.dist-info → growthbook-1.4.2.dist-info}/WHEEL +0 -0
- {growthbook-1.4.1.dist-info → growthbook-1.4.2.dist-info}/licenses/LICENSE +0 -0
- {growthbook-1.4.1.dist-info → growthbook-1.4.2.dist-info}/top_level.txt +0 -0
growthbook/__init__.py
CHANGED
growthbook/growthbook.py
CHANGED
|
@@ -120,7 +120,7 @@ class InMemoryStickyBucketService(AbstractStickyBucketService):
|
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
class SSEClient:
|
|
123
|
-
def __init__(self, api_host, client_key, on_event, reconnect_delay=5, headers=None, timeout
|
|
123
|
+
def __init__(self, api_host, client_key, on_event, reconnect_delay=5, headers=None, timeout=30):
|
|
124
124
|
self.api_host = api_host
|
|
125
125
|
self.client_key = client_key
|
|
126
126
|
|
|
@@ -175,7 +175,7 @@ class SSEClient:
|
|
|
175
175
|
while self.is_running:
|
|
176
176
|
try:
|
|
177
177
|
async with aiohttp.ClientSession(headers=self.headers,
|
|
178
|
-
timeout=aiohttp.ClientTimeout(
|
|
178
|
+
timeout=aiohttp.ClientTimeout(connect=self.timeout)) as session:
|
|
179
179
|
self._sse_session = session
|
|
180
180
|
|
|
181
181
|
async with session.get(url) as response:
|
|
@@ -216,7 +216,7 @@ class SSEClient:
|
|
|
216
216
|
self.on_event(event_data)
|
|
217
217
|
|
|
218
218
|
async def _wait_for_reconnect(self):
|
|
219
|
-
logger.
|
|
219
|
+
logger.info(f"Attempting to reconnect streaming in {self.reconnect_delay} seconds")
|
|
220
220
|
await asyncio.sleep(self.reconnect_delay)
|
|
221
221
|
|
|
222
222
|
async def _close_session(self):
|
|
@@ -445,7 +445,7 @@ class GrowthBook(object):
|
|
|
445
445
|
sticky_bucket_identifier_attributes: List[str] = None,
|
|
446
446
|
savedGroups: dict = {},
|
|
447
447
|
streaming: bool = False,
|
|
448
|
-
|
|
448
|
+
streaming_connection_timeout: int = 30,
|
|
449
449
|
plugins: List = None,
|
|
450
450
|
# Deprecated args
|
|
451
451
|
trackingCallback=None,
|
|
@@ -474,7 +474,7 @@ class GrowthBook(object):
|
|
|
474
474
|
self._trackingCallback = on_experiment_viewed or trackingCallback
|
|
475
475
|
|
|
476
476
|
self._streaming = streaming
|
|
477
|
-
self._streaming_timeout =
|
|
477
|
+
self._streaming_timeout = streaming_connection_timeout
|
|
478
478
|
|
|
479
479
|
# Deprecated args
|
|
480
480
|
self._user = user
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: growthbook
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: Powerful Feature flagging and A/B testing for Python apps
|
|
5
5
|
Home-page: https://github.com/growthbook/growthbook-python
|
|
6
6
|
Author: GrowthBook
|
|
@@ -49,7 +49,7 @@ Powerful Feature flagging and A/B testing for Python apps.
|
|
|
49
49
|
- **Use your existing event tracking** (GA, Segment, Mixpanel, custom)
|
|
50
50
|
- **Remote configuration** to change feature flags without deploying new code
|
|
51
51
|
- **Async support** with real-time feature updates
|
|
52
|
-
- Python 3.
|
|
52
|
+
- Python 3.9+
|
|
53
53
|
- 100% test coverage
|
|
54
54
|
|
|
55
55
|
## Installation
|
|
@@ -660,7 +660,7 @@ gb.run(Experiment(
|
|
|
660
660
|
key = "by-company-id",
|
|
661
661
|
variations = ["A", "B"],
|
|
662
662
|
hashAttribute = "company"
|
|
663
|
-
))
|
|
663
|
+
))
|
|
664
664
|
```
|
|
665
665
|
|
|
666
666
|
## Logging
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
growthbook/__init__.py,sha256=
|
|
1
|
+
growthbook/__init__.py,sha256=tE3KJ9aiAe9z7A-92-Nb-erYY1xJcz00538EN1emij8,444
|
|
2
2
|
growthbook/common_types.py,sha256=OUGkqoUuYetWz1cyA1eWz5DM3awYw_ExcNAjFqJuGAc,14881
|
|
3
3
|
growthbook/core.py,sha256=n9nwna26iZTY48LIvQqu5N_RrE35X0wlRBhq0-Qdb-s,35241
|
|
4
|
-
growthbook/growthbook.py,sha256=
|
|
4
|
+
growthbook/growthbook.py,sha256=a-pNWWhM2ltnBXDe_zx_ndP0d7fCNNBJg0eQMsTNgzk,31066
|
|
5
5
|
growthbook/growthbook_client.py,sha256=1bDIuJoxlKUR_bKe_gD6V7JlUPt53uGgix9DhgSkPPc,23360
|
|
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=FvPFOuKF_xKjmTX8x_hzMlHrrL-68Y2ZPw1Hfl2_ilQ,11333
|
|
10
10
|
growthbook/plugins/request_context.py,sha256=O5FJDrjJR5u0rx3ENGO9cOsKMHd9e0l0Nvdb1PHfmm8,12951
|
|
11
|
-
growthbook-1.4.
|
|
12
|
-
growthbook-1.4.
|
|
13
|
-
growthbook-1.4.
|
|
14
|
-
growthbook-1.4.
|
|
15
|
-
growthbook-1.4.
|
|
11
|
+
growthbook-1.4.2.dist-info/licenses/LICENSE,sha256=D-TcBckB0dTPUlNJ8jBiTIJIj1ekHLB1CY7HJtJKhMY,1069
|
|
12
|
+
growthbook-1.4.2.dist-info/METADATA,sha256=roiQyzaLhN8dVTc-GELUeICw2UVK-JiDvYKDdS-J9fc,22074
|
|
13
|
+
growthbook-1.4.2.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
14
|
+
growthbook-1.4.2.dist-info/top_level.txt,sha256=dzfRQFGYejCIUstRSrrRVTMlxf7pBqASTI5S8gGRlXw,11
|
|
15
|
+
growthbook-1.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|