devcycle-python-server-sdk 3.13.11__py3-none-any.whl → 3.14.0__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.
- devcycle_python_sdk/VERSION.txt +1 -1
- devcycle_python_sdk/bucketing-lib.release.wasm +0 -0
- {devcycle_python_server_sdk-3.13.11.dist-info → devcycle_python_server_sdk-3.14.0.dist-info}/METADATA +2 -2
- {devcycle_python_server_sdk-3.13.11.dist-info → devcycle_python_server_sdk-3.14.0.dist-info}/RECORD +8 -8
- {devcycle_python_server_sdk-3.13.11.dist-info → devcycle_python_server_sdk-3.14.0.dist-info}/WHEEL +1 -1
- example/openfeature_example.py +9 -1
- {devcycle_python_server_sdk-3.13.11.dist-info → devcycle_python_server_sdk-3.14.0.dist-info}/licenses/LICENSE +0 -0
- {devcycle_python_server_sdk-3.13.11.dist-info → devcycle_python_server_sdk-3.14.0.dist-info}/top_level.txt +0 -0
devcycle_python_sdk/VERSION.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.14.0
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devcycle-python-server-sdk
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.14.0
|
|
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.
|
|
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
|
{devcycle_python_server_sdk-3.13.11.dist-info → devcycle_python_server_sdk-3.14.0.dist-info}/RECORD
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
devcycle_python_sdk/VERSION.txt,sha256=
|
|
1
|
+
devcycle_python_sdk/VERSION.txt,sha256=o8EDFjHom93WXvIjEfgmjiOb7hk5odmgM-g01FQLStk,7
|
|
2
2
|
devcycle_python_sdk/__init__.py,sha256=30TcYb9PbvVi97gwk16omCGG1UoUI9lmmU7xpvxNMvc,336
|
|
3
|
-
devcycle_python_sdk/bucketing-lib.release.wasm,sha256=
|
|
3
|
+
devcycle_python_sdk/bucketing-lib.release.wasm,sha256=83sklQK3EFpVeFgFcEqZ7qV_aexfk4_4AA7ioEW9kow,225177
|
|
4
4
|
devcycle_python_sdk/cloud_client.py,sha256=dR2ye29Up699hO1cdrAWeoXIOBPVoSvQ4aKe2gSBRno,9414
|
|
5
5
|
devcycle_python_sdk/devcycle_client.py,sha256=OqNza7OXOSRmMQq2kmyivljmH1GyN4dTiz0EhvDvt8w,1069
|
|
6
6
|
devcycle_python_sdk/exceptions.py,sha256=Et7fS8pEFbHkFY86T2pJoEUstwjh4_rzhJxVH8fzAns,1053
|
|
@@ -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.
|
|
45
|
+
devcycle_python_server_sdk-3.14.0.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=
|
|
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.
|
|
74
|
-
devcycle_python_server_sdk-3.
|
|
75
|
-
devcycle_python_server_sdk-3.
|
|
76
|
-
devcycle_python_server_sdk-3.
|
|
73
|
+
devcycle_python_server_sdk-3.14.0.dist-info/METADATA,sha256=N8zLIaQVbtyZSeyWM7I9GrVsKgHMosT7B16ZZAmIzWM,660
|
|
74
|
+
devcycle_python_server_sdk-3.14.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
75
|
+
devcycle_python_server_sdk-3.14.0.dist-info/top_level.txt,sha256=34f8zDzihAHoH7siAFlmscyO_QLNWWq9HApFlwtYL4k,33
|
|
76
|
+
devcycle_python_server_sdk-3.14.0.dist-info/RECORD,,
|
example/openfeature_example.py
CHANGED
|
@@ -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
|
-
|
|
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()
|
|
File without changes
|
|
File without changes
|