benchling-sdk 1.15.0a0__py3-none-any.whl → 1.15.0a1__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.
- benchling_sdk/helpers/retry_helpers.py +3 -1
- benchling_sdk/models/webhooks/v0/__init__.py +12 -0
- {benchling_sdk-1.15.0a0.dist-info → benchling_sdk-1.15.0a1.dist-info}/METADATA +4 -4
- {benchling_sdk-1.15.0a0.dist-info → benchling_sdk-1.15.0a1.dist-info}/RECORD +6 -6
- {benchling_sdk-1.15.0a0.dist-info → benchling_sdk-1.15.0a1.dist-info}/LICENSE +0 -0
- {benchling_sdk-1.15.0a0.dist-info → benchling_sdk-1.15.0a1.dist-info}/WHEEL +0 -0
@@ -60,7 +60,9 @@ def retry_method(f):
|
|
60
60
|
if retry_strategy is _sentinel:
|
61
61
|
retry_strategy = self.retry_strategy
|
62
62
|
|
63
|
-
def should_retry(e:
|
63
|
+
def should_retry(e: Exception) -> bool:
|
64
|
+
if not isinstance(e, BenchlingError):
|
65
|
+
return False
|
64
66
|
if retry_strategy.status_codes_to_retry is None:
|
65
67
|
return True
|
66
68
|
return e.status_code in retry_strategy.status_codes_to_retry
|
@@ -13,6 +13,8 @@ __all__ = [
|
|
13
13
|
"AppActivateRequestedWebhookV2Type",
|
14
14
|
"AppDeactivatedWebhookV2",
|
15
15
|
"AppDeactivatedWebhookV2Type",
|
16
|
+
"AppInstalledWebhookV2",
|
17
|
+
"AppInstalledWebhookV2Type",
|
16
18
|
"AssayRunCreatedWebhookV2",
|
17
19
|
"AssayRunCreatedWebhookV2Type",
|
18
20
|
"AssayRunUpdatedFieldsWebhookV2",
|
@@ -126,6 +128,8 @@ if TYPE_CHECKING:
|
|
126
128
|
import benchling_api_client.webhooks.v0.stable.models.app_activate_requested_webhook_v2_type
|
127
129
|
import benchling_api_client.webhooks.v0.stable.models.app_deactivated_webhook_v2
|
128
130
|
import benchling_api_client.webhooks.v0.stable.models.app_deactivated_webhook_v2_type
|
131
|
+
import benchling_api_client.webhooks.v0.stable.models.app_installed_webhook_v2
|
132
|
+
import benchling_api_client.webhooks.v0.stable.models.app_installed_webhook_v2_type
|
129
133
|
import benchling_api_client.webhooks.v0.stable.models.assay_run_created_webhook_v2
|
130
134
|
import benchling_api_client.webhooks.v0.stable.models.assay_run_created_webhook_v2_type
|
131
135
|
import benchling_api_client.webhooks.v0.stable.models.assay_run_updated_fields_webhook_v2
|
@@ -245,6 +249,12 @@ if TYPE_CHECKING:
|
|
245
249
|
AppDeactivatedWebhookV2Type = (
|
246
250
|
benchling_api_client.webhooks.v0.stable.models.app_deactivated_webhook_v2_type.AppDeactivatedWebhookV2Type
|
247
251
|
)
|
252
|
+
AppInstalledWebhookV2 = (
|
253
|
+
benchling_api_client.webhooks.v0.stable.models.app_installed_webhook_v2.AppInstalledWebhookV2
|
254
|
+
)
|
255
|
+
AppInstalledWebhookV2Type = (
|
256
|
+
benchling_api_client.webhooks.v0.stable.models.app_installed_webhook_v2_type.AppInstalledWebhookV2Type
|
257
|
+
)
|
248
258
|
AssayRunCreatedWebhookV2 = (
|
249
259
|
benchling_api_client.webhooks.v0.stable.models.assay_run_created_webhook_v2.AssayRunCreatedWebhookV2
|
250
260
|
)
|
@@ -562,6 +572,8 @@ else:
|
|
562
572
|
"AppActivateRequestedWebhookV2Type": "benchling_api_client.webhooks.v0.stable.models.app_activate_requested_webhook_v2_type",
|
563
573
|
"AppDeactivatedWebhookV2": "benchling_api_client.webhooks.v0.stable.models.app_deactivated_webhook_v2",
|
564
574
|
"AppDeactivatedWebhookV2Type": "benchling_api_client.webhooks.v0.stable.models.app_deactivated_webhook_v2_type",
|
575
|
+
"AppInstalledWebhookV2": "benchling_api_client.webhooks.v0.stable.models.app_installed_webhook_v2",
|
576
|
+
"AppInstalledWebhookV2Type": "benchling_api_client.webhooks.v0.stable.models.app_installed_webhook_v2_type",
|
565
577
|
"AssayRunCreatedWebhookV2": "benchling_api_client.webhooks.v0.stable.models.assay_run_created_webhook_v2",
|
566
578
|
"AssayRunCreatedWebhookV2Type": "benchling_api_client.webhooks.v0.stable.models.assay_run_created_webhook_v2_type",
|
567
579
|
"AssayRunUpdatedFieldsWebhookV2": "benchling_api_client.webhooks.v0.stable.models.assay_run_updated_fields_webhook_v2",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: benchling-sdk
|
3
|
-
Version: 1.15.
|
3
|
+
Version: 1.15.0a1
|
4
4
|
Summary: SDK for interacting with the Benchling Platform.
|
5
5
|
License: Apache-2.0
|
6
6
|
Author: Benchling Support
|
@@ -15,9 +15,9 @@ Classifier: Programming Language :: Python :: 3.11
|
|
15
15
|
Provides-Extra: cryptography
|
16
16
|
Provides-Extra: python-jose
|
17
17
|
Requires-Dist: PyYAML (>=6.0,<7.0)
|
18
|
-
Requires-Dist: attrs (>=20.1.0,<
|
19
|
-
Requires-Dist: backoff (>=1.10.0,<
|
20
|
-
Requires-Dist: benchling-api-client (==2.0.
|
18
|
+
Requires-Dist: attrs (>=20.1.0,<24)
|
19
|
+
Requires-Dist: backoff (>=1.10.0,<3)
|
20
|
+
Requires-Dist: benchling-api-client (==2.0.309)
|
21
21
|
Requires-Dist: certifi (>=2022.12.7)
|
22
22
|
Requires-Dist: cryptography (>=42.0.0) ; extra == "cryptography"
|
23
23
|
Requires-Dist: dataclasses-json (>=0.5.2,<0.6.0)
|
@@ -40,12 +40,12 @@ benchling_sdk/helpers/logging_helpers.py,sha256=rfjjhR0fxTpHWnups-3jKZA6-5IjK4LX
|
|
40
40
|
benchling_sdk/helpers/package_helpers.py,sha256=JLDDdlOwz6_BgP5j157u0qX-Mtb7ZkzXSg2rrz2BPPU,1998
|
41
41
|
benchling_sdk/helpers/pagination_helpers.py,sha256=Dewy1OxAO0ZdJOGuEPyJGkjU8Hu8iFNWob-z0riMNOs,7745
|
42
42
|
benchling_sdk/helpers/response_helpers.py,sha256=vtmb9lEEKy3dRFre3Q0R4XaLBEaS_rruxtwPvpepPUw,613
|
43
|
-
benchling_sdk/helpers/retry_helpers.py,sha256=
|
43
|
+
benchling_sdk/helpers/retry_helpers.py,sha256=Sd7F8HMGPs31svYW-1z-SujbWUBn3qlZUk52hZ5G7xw,2814
|
44
44
|
benchling_sdk/helpers/serialization_helpers.py,sha256=IUS0uGU_EiZvb8O-bTViUaROmxKcvdX3JeR9iKsWAG8,3662
|
45
45
|
benchling_sdk/helpers/transaction_manager.py,sha256=HcSDsgGK7Rb93bgv6fpb4HvQUT-tqP0lXgVa_bWCDh4,3663
|
46
46
|
benchling_sdk/models/__init__.py,sha256=g_tZPB5NyW5EOcNPLlYLfkR24a5dFtVcrX6piEabKDE,360467
|
47
47
|
benchling_sdk/models/webhooks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
48
|
-
benchling_sdk/models/webhooks/v0/__init__.py,sha256=
|
48
|
+
benchling_sdk/models/webhooks/v0/__init__.py,sha256=tZOza_-DC-yG-MzePP-k88ksz-PpbOcsZW5chNpCYQs,49581
|
49
49
|
benchling_sdk/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
50
50
|
benchling_sdk/services/__init__.py,sha256=K7N-sxMKhIsFroLe_tJIRcKJJuoShTCxiD_bfUz9958,85
|
51
51
|
benchling_sdk/services/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -111,7 +111,7 @@ benchling_sdk/services/v2/v2_alpha_service.py,sha256=sGj6cG7IkoolrKSBI1AVNIL5te_
|
|
111
111
|
benchling_sdk/services/v2/v2_beta_service.py,sha256=extNpmdBP9yGQsE4k_CEPkwlqlTT9HGw7F3qiR11cJs,4651
|
112
112
|
benchling_sdk/services/v2/v2_stable_service.py,sha256=ASx8MtvZqfKNBMUnuzGwPKdH1gV4e3VnJYy6XSxxyNo,26129
|
113
113
|
benchling_sdk/services/v2_service.py,sha256=cGX-Ps0hu7Oh1M7a0tu2zDN8-QG63dNDoK7w4eYo_OQ,3093
|
114
|
-
benchling_sdk-1.15.
|
115
|
-
benchling_sdk-1.15.
|
116
|
-
benchling_sdk-1.15.
|
117
|
-
benchling_sdk-1.15.
|
114
|
+
benchling_sdk-1.15.0a1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
115
|
+
benchling_sdk-1.15.0a1.dist-info/METADATA,sha256=2tmTo3zdvwW7dZQNcg2A0tO6sZiK74PByEEUAvJ4BhA,2114
|
116
|
+
benchling_sdk-1.15.0a1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
117
|
+
benchling_sdk-1.15.0a1.dist-info/RECORD,,
|
File without changes
|
File without changes
|