growthbook 2.0.0__py2.py3-none-any.whl → 2.1.0__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 CHANGED
@@ -18,5 +18,5 @@ from .plugins import (
18
18
  )
19
19
 
20
20
  # x-release-please-start-version
21
- __version__ = "2.0.0"
21
+ __version__ = "2.1.0"
22
22
  # x-release-please-end
growthbook/core.py CHANGED
@@ -178,6 +178,24 @@ def evalOperatorCondition(operator, attributeValue, conditionValue, savedGroups)
178
178
  return bool(r.search(attributeValue))
179
179
  except Exception:
180
180
  return False
181
+ elif operator == "$regexi":
182
+ try:
183
+ r = re.compile(conditionValue, re.IGNORECASE)
184
+ return bool(r.search(attributeValue))
185
+ except Exception:
186
+ return False
187
+ elif operator == "$notRegex":
188
+ try:
189
+ r = re.compile(conditionValue)
190
+ return not bool(r.search(attributeValue))
191
+ except Exception:
192
+ return False
193
+ elif operator == "$notRegexi":
194
+ try:
195
+ r = re.compile(conditionValue, re.IGNORECASE)
196
+ return not bool(r.search(attributeValue))
197
+ except Exception:
198
+ return False
181
199
  elif operator == "$in":
182
200
  if not type(conditionValue) is list:
183
201
  return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: growthbook
3
- Version: 2.0.0
3
+ Version: 2.1.0
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
@@ -1,6 +1,6 @@
1
- growthbook/__init__.py,sha256=tksQ8wdB4p_iIIPCa1e5NsUie_NM-b1173zp5wkCGLQ,444
1
+ growthbook/__init__.py,sha256=y6OvqQtSIyIvIXB3h_WZaFPo_QWl_Ssl41Tta2NRa8k,444
2
2
  growthbook/common_types.py,sha256=YKUmmYfzgrzLQ7kp2IPLc8QBA-B0QbnbF5viekNiTpw,15703
3
- growthbook/core.py,sha256=C1Nes_AiEuu6ypPghKuIeM2F22XUsLK1KrLW0xDwLYU,35963
3
+ growthbook/core.py,sha256=eBH5ItXhnbfJI5p08cri9yw4C73W4aXX8WgRWyIndXc,36573
4
4
  growthbook/growthbook.py,sha256=Ee6-jWPtvlgRvxRbsX-ZhrMV-8_F2T78Q7P30DVMsQM,47833
5
5
  growthbook/growthbook_client.py,sha256=YnbKGbO2taWZXtlutuTf_ZSkL_WmhYLhr39fB6BFIcw,27578
6
6
  growthbook/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -8,8 +8,8 @@ growthbook/plugins/__init__.py,sha256=y2eAV1sA041XWcftBVTDH0t-ggy9r2C5oKRYRF6XR6
8
8
  growthbook/plugins/base.py,sha256=PWBXUBj62hi25Y5Eif9WmEWagWdkwGXHi2dMtn44bo8,3637
9
9
  growthbook/plugins/growthbook_tracking.py,sha256=yN2xOHtRNsJuxkm16wY0YBQFxjEXDKnKcup7C9bQwe4,11351
10
10
  growthbook/plugins/request_context.py,sha256=WzoGxalxPfrsN3RzfkvVYaUGat1A3N4AErnaS9IZ48Y,13005
11
- growthbook-2.0.0.dist-info/licenses/LICENSE,sha256=D-TcBckB0dTPUlNJ8jBiTIJIj1ekHLB1CY7HJtJKhMY,1069
12
- growthbook-2.0.0.dist-info/METADATA,sha256=yCwwaIc8N5XnwmAMNVcTtqN0ZPaFsbCtcgmgG-dD3wg,22726
13
- growthbook-2.0.0.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
14
- growthbook-2.0.0.dist-info/top_level.txt,sha256=dzfRQFGYejCIUstRSrrRVTMlxf7pBqASTI5S8gGRlXw,11
15
- growthbook-2.0.0.dist-info/RECORD,,
11
+ growthbook-2.1.0.dist-info/licenses/LICENSE,sha256=D-TcBckB0dTPUlNJ8jBiTIJIj1ekHLB1CY7HJtJKhMY,1069
12
+ growthbook-2.1.0.dist-info/METADATA,sha256=8Nm5oaBRrsidsXKDXAxL8rUFIVFmfRUklDGJr7kDO2c,22726
13
+ growthbook-2.1.0.dist-info/WHEEL,sha256=Q6xS052dXadQWXcEVKSI037R6NoyqhUlJ5BcYz2iMP4,110
14
+ growthbook-2.1.0.dist-info/top_level.txt,sha256=dzfRQFGYejCIUstRSrrRVTMlxf7pBqASTI5S8gGRlXw,11
15
+ growthbook-2.1.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any