benchling-sdk 1.7.0a2__py3-none-any.whl → 1.7.0a4__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/apps/helpers/canvas_helpers.py +6 -3
- {benchling_sdk-1.7.0a2.dist-info → benchling_sdk-1.7.0a4.dist-info}/METADATA +3 -3
- {benchling_sdk-1.7.0a2.dist-info → benchling_sdk-1.7.0a4.dist-info}/RECORD +5 -5
- {benchling_sdk-1.7.0a2.dist-info → benchling_sdk-1.7.0a4.dist-info}/LICENSE +0 -0
- {benchling_sdk-1.7.0a2.dist-info → benchling_sdk-1.7.0a4.dist-info}/WHEEL +0 -0
@@ -357,7 +357,7 @@ class CanvasBuilder:
|
|
357
357
|
resource_id: str,
|
358
358
|
enabled: bool = True,
|
359
359
|
session_id: Optional[str] = None,
|
360
|
-
blocks: List[_UiBlock] =
|
360
|
+
blocks: Optional[List[_UiBlock]] = None,
|
361
361
|
):
|
362
362
|
"""
|
363
363
|
Init Canvas.
|
@@ -369,7 +369,7 @@ class CanvasBuilder:
|
|
369
369
|
resource_id=resource_id,
|
370
370
|
enabled=enabled,
|
371
371
|
session_id=session_id,
|
372
|
-
blocks=blocks,
|
372
|
+
blocks=blocks if blocks else [],
|
373
373
|
)
|
374
374
|
|
375
375
|
@classmethod
|
@@ -415,7 +415,10 @@ class CanvasBuilder:
|
|
415
415
|
"""
|
416
416
|
return self._values_from_blocks(self._source_canvas.blocks)
|
417
417
|
|
418
|
-
def _values_from_blocks(
|
418
|
+
def _values_from_blocks(
|
419
|
+
self, blocks: List[_UiBlock], existing_keys: Optional[List[str]] = None
|
420
|
+
) -> Dict[str, str]:
|
421
|
+
existing_keys = existing_keys if existing_keys else []
|
419
422
|
values: Dict[str, str] = dict()
|
420
423
|
for block in blocks:
|
421
424
|
if not isinstance(block, UnknownType):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: benchling-sdk
|
3
|
-
Version: 1.7.
|
3
|
+
Version: 1.7.0a4
|
4
4
|
Summary: SDK for interacting with the Benchling Platform.
|
5
5
|
License: Apache-2.0
|
6
6
|
Author: Benchling Support
|
@@ -18,9 +18,9 @@ Provides-Extra: python-jose
|
|
18
18
|
Requires-Dist: PyYAML (>=6.0,<7.0)
|
19
19
|
Requires-Dist: attrs (>=20.1.0,<23)
|
20
20
|
Requires-Dist: backoff (>=1.10.0,<2.0.0)
|
21
|
-
Requires-Dist: benchling-api-client (==2.0.
|
21
|
+
Requires-Dist: benchling-api-client (==2.0.117)
|
22
22
|
Requires-Dist: certifi (>=2022.12.7)
|
23
|
-
Requires-Dist: cryptography (>=
|
23
|
+
Requires-Dist: cryptography (>=39.0.2,<40.0.0); extra == "cryptography"
|
24
24
|
Requires-Dist: dataclasses-json (>=0.5.2,<0.6.0)
|
25
25
|
Requires-Dist: httpx (>=0.23.0)
|
26
26
|
Requires-Dist: jwcrypto (>=1.4.2,<2.0.0)
|
@@ -8,7 +8,7 @@ benchling_sdk/apps/config/mock_dependencies.py,sha256=W1YL5GfEGhvrJuYAJojUEtuVe-
|
|
8
8
|
benchling_sdk/apps/config/scalars.py,sha256=NfnKc0C2llzFfCV-KIlLX8SNaztNXIQuFZm3Ue5ombo,6872
|
9
9
|
benchling_sdk/apps/framework.py,sha256=PU-H8g-CsQsdEAkWCs6jrFQAwiNpF244jPUtWMReuqg,13205
|
10
10
|
benchling_sdk/apps/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
benchling_sdk/apps/helpers/canvas_helpers.py,sha256=
|
11
|
+
benchling_sdk/apps/helpers/canvas_helpers.py,sha256=pAlNs1hiufYFeuz52UZp-Qpa62hy_227Wz5x6Stf5HQ,17317
|
12
12
|
benchling_sdk/apps/helpers/config_helpers.py,sha256=7iet1MC8Q2adrj3ORNP_lGpJLgpldBBC4CLNGlM88jk,15358
|
13
13
|
benchling_sdk/apps/helpers/cryptography_helpers.py,sha256=1WdspCjdpBRuandb7dHkH0iwkCClM-So4qUcIacUp9g,1789
|
14
14
|
benchling_sdk/apps/helpers/manifest_helpers.py,sha256=yidiKA5mwWdAFR1ZSUu40QoG0Us-bc6V8tYHYqheEtM,945
|
@@ -98,7 +98,7 @@ benchling_sdk/services/v2/v2_alpha_service.py,sha256=IVjONY9kCbUP6IC4nci7vh8ivjE
|
|
98
98
|
benchling_sdk/services/v2/v2_beta_service.py,sha256=znmjF4k5eJiMfcu-7X_a9JmV8DdToBDNoO5M4A7Qw2w,6483
|
99
99
|
benchling_sdk/services/v2/v2_stable_service.py,sha256=Xb4C2SJ1Qwxg1UOqvGRbw5gU5THRMyHDDAFqEaNavIU,25286
|
100
100
|
benchling_sdk/services/v2_service.py,sha256=RB0jzyOVXogQTDdKl5IR2IYzz4onBKFtoXzYeVAKTIM,2179
|
101
|
-
benchling_sdk-1.7.
|
102
|
-
benchling_sdk-1.7.
|
103
|
-
benchling_sdk-1.7.
|
104
|
-
benchling_sdk-1.7.
|
101
|
+
benchling_sdk-1.7.0a4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
102
|
+
benchling_sdk-1.7.0a4.dist-info/WHEEL,sha256=vxFmldFsRN_Hx10GDvsdv1wroKq8r5Lzvjp6GZ4OO8c,88
|
103
|
+
benchling_sdk-1.7.0a4.dist-info/METADATA,sha256=qIaBdKVTfC8azyN2OuxPFwkc89jazNno2VEivgs8AyM,2220
|
104
|
+
benchling_sdk-1.7.0a4.dist-info/RECORD,,
|
File without changes
|
File without changes
|