devcycle-python-server-sdk 3.13.11__py3-none-any.whl → 3.13.12__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.
@@ -1 +1 @@
1
- 3.13.11
1
+ 3.13.12
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devcycle-python-server-sdk
3
- Version: 3.13.11
3
+ Version: 3.13.12
4
4
  Summary: DevCycle Python SDK
5
5
  Home-page: https://github.com/devcycleHQ/python-server-sdk
6
6
  Author-email:
@@ -11,7 +11,7 @@ Requires-Dist: urllib3>=1.15.1
11
11
  Requires-Dist: requests>=2.33.0
12
12
  Requires-Dist: wasmtime~=30.0.0
13
13
  Requires-Dist: protobuf>=4.23.3
14
- Requires-Dist: openfeature-sdk~=0.8
14
+ Requires-Dist: openfeature-sdk~=0.10.0
15
15
  Requires-Dist: launchdarkly-eventsource>=1.2.1
16
16
  Dynamic: description
17
17
  Dynamic: home-page
@@ -1,4 +1,4 @@
1
- devcycle_python_sdk/VERSION.txt,sha256=n6M9kyu_bleE8VtGepoQ5M5DmTwjQe50LyPOAZb9c-k,8
1
+ devcycle_python_sdk/VERSION.txt,sha256=QEEdwsJya0xwJNODGN2N9FxSi0lJHvtFk53UqCmEfZQ,8
2
2
  devcycle_python_sdk/__init__.py,sha256=30TcYb9PbvVi97gwk16omCGG1UoUI9lmmU7xpvxNMvc,336
3
3
  devcycle_python_sdk/bucketing-lib.release.wasm,sha256=6iooyHRR-GBfrBH0_mleWyaNHr9uM_nVPS-IXGROGCY,224670
4
4
  devcycle_python_sdk/cloud_client.py,sha256=dR2ye29Up699hO1cdrAWeoXIOBPVoSvQ4aKe2gSBRno,9414
@@ -42,11 +42,11 @@ devcycle_python_sdk/protobuf/variableForUserParams_pb2.pyi,sha256=OU4ORhjnbXy0Aq
42
42
  devcycle_python_sdk/util/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
43
43
  devcycle_python_sdk/util/strings.py,sha256=gH0Xm3gIXNqn6hczKPk10Jn5_9knuD7OB5MrB7bqztw,252
44
44
  devcycle_python_sdk/util/version.py,sha256=Cz7Us_EuXP-T8GI47g2WHYdBJj_zKo-5y545IDHJAjI,253
45
- devcycle_python_server_sdk-3.13.11.dist-info/licenses/LICENSE,sha256=RlvZsEX5o__wLAA-VE7mG5hzTPjnFzPJKNdXXKvZ854,1071
45
+ devcycle_python_server_sdk-3.13.12.dist-info/licenses/LICENSE,sha256=RlvZsEX5o__wLAA-VE7mG5hzTPjnFzPJKNdXXKvZ854,1071
46
46
  example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
47
  example/cloud_client_example.py,sha256=tkWVxMCfuenUoKnFIGou7axfp9-8FZRDk5HuVYjiXuU,2463
48
48
  example/local_bucketing_client_example.py,sha256=TaIfy3VnW9fXii9NPYs5UOuP4fLKruXMjnZApveqzl4,2796
49
- example/openfeature_example.py,sha256=8rdEtG_RiEbCwbQQWcCXtfZURz2Z393WoczyperkNug,8105
49
+ example/openfeature_example.py,sha256=7Xxj2pQaTT9arLfV7NHcvAxJng_CuycZESAxqMib4uQ,8550
50
50
  test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
51
  test/test_cloud_client.py,sha256=CoK4xfHPMGyJ4hXrdI98e5f4zEL51vx31u_xmC3FEtc,15957
52
52
  test/test_local_client.py,sha256=yg19ddGmg9t1TfjT-4EgHp0cjfxHjfJZOGIFM8mSNX8,18078
@@ -70,7 +70,7 @@ test/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
70
  test/util/test_strings.py,sha256=T5H5U0af7_ld1yJC8IdDmay_Mx-iJQ5Fi5fbvKcAc7A,862
71
71
  test/util/test_utils.py,sha256=tVBJm_qnqg-4PssLpXIxqlk0JehuiAIPs4zpi2oNVnY,6671
72
72
  test/util/test_version.py,sha256=3Xg0_84m0bdHXz6pxd2Z85Oz9DoUC1T0Ol_WqEH_jac,335
73
- devcycle_python_server_sdk-3.13.11.dist-info/METADATA,sha256=ar3A9TcDoPCXH_bjbLrMqygork5CZ3EQT29NAbl_p80,658
74
- devcycle_python_server_sdk-3.13.11.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
75
- devcycle_python_server_sdk-3.13.11.dist-info/top_level.txt,sha256=34f8zDzihAHoH7siAFlmscyO_QLNWWq9HApFlwtYL4k,33
76
- devcycle_python_server_sdk-3.13.11.dist-info/RECORD,,
73
+ devcycle_python_server_sdk-3.13.12.dist-info/METADATA,sha256=Bat6dJ0cDN7_ugEe4vwLONA5e1mGwV1aOiU9MylhN1U,661
74
+ devcycle_python_server_sdk-3.13.12.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
75
+ devcycle_python_server_sdk-3.13.12.dist-info/top_level.txt,sha256=34f8zDzihAHoH7siAFlmscyO_QLNWWq9HApFlwtYL4k,33
76
+ devcycle_python_server_sdk-3.13.12.dist-info/RECORD,,
@@ -6,6 +6,7 @@ from devcycle_python_sdk import DevCycleLocalClient, DevCycleLocalOptions
6
6
 
7
7
  from openfeature import api
8
8
  from openfeature.evaluation_context import EvaluationContext
9
+ from openfeature.exception import GeneralError
9
10
 
10
11
  logger = logging.getLogger(__name__)
11
12
 
@@ -48,7 +49,14 @@ def main():
48
49
  logger.info("DevCycle initialized successfully!\n")
49
50
 
50
51
  # set the provider for OpenFeature
51
- api.set_provider(devcycle_client.get_openfeature_provider())
52
+ # set_provider_and_wait blocks until the provider is ready and raises if it fails to
53
+ # initialize. set_provider would return immediately and evaluations would silently
54
+ # fall back to their default values until the provider became ready.
55
+ try:
56
+ api.set_provider_and_wait(devcycle_client.get_openfeature_provider())
57
+ except GeneralError as e:
58
+ logger.error(f"DevCycle OpenFeature provider failed to initialize: {e}")
59
+ exit(1)
52
60
 
53
61
  # get the OpenFeature client
54
62
  open_feature_client = api.get_client()