benchling-sdk 1.10.0a11__py3-none-any.whl → 1.11.0a0__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/status/helpers.py +23 -4
- benchling_sdk/models/__init__.py +44 -0
- {benchling_sdk-1.10.0a11.dist-info → benchling_sdk-1.11.0a0.dist-info}/METADATA +4 -4
- {benchling_sdk-1.10.0a11.dist-info → benchling_sdk-1.11.0a0.dist-info}/RECORD +6 -6
- {benchling_sdk-1.10.0a11.dist-info → benchling_sdk-1.11.0a0.dist-info}/LICENSE +0 -0
- {benchling_sdk-1.10.0a11.dist-info → benchling_sdk-1.11.0a0.dist-info}/WHEEL +0 -0
@@ -12,9 +12,28 @@ def ref(reference: ReferencedSessionLinkType) -> str:
|
|
12
12
|
|
13
13
|
Example:
|
14
14
|
dna_sequence = benchling.dna_sequences.get_by_id("seq_1234")
|
15
|
-
AppSessionMessageCreate(f"This is my DNA sequence {ref(dna_sequence)} for analysis"
|
15
|
+
AppSessionMessageCreate(f"This is my DNA sequence {ref(dna_sequence)} for analysis")
|
16
16
|
"""
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
return ref_by_id(reference.id)
|
18
|
+
|
19
|
+
|
20
|
+
def ref_by_id(reference_id: str) -> str:
|
21
|
+
"""
|
22
|
+
Ref by ID.
|
23
|
+
|
24
|
+
Helper method for serializing a reference to an object into a string embeddable in
|
25
|
+
AppSessionMessageCreate content via the reference object's id. This is helpful when clients
|
26
|
+
don't already have access to the referenced object.
|
27
|
+
|
28
|
+
Example:
|
29
|
+
dna_sequence_id: str = "seq_asQya4lk"
|
30
|
+
AppSessionMessageCreate(f"This is my DNA sequence {ref_by_id(dna_sequence_id)} for analysis")
|
31
|
+
"""
|
32
|
+
assert reference_id, "reference_id cannot be empty or None"
|
33
|
+
return _encode_id(reference_id)
|
34
|
+
|
35
|
+
|
36
|
+
def _encode_id(id: str) -> str:
|
37
|
+
"""Not sure {} are possible in Benchling IDs, but the spec says we're escaping."""
|
38
|
+
escaped_id = id.replace("{", "\\{").replace("}", "\\}")
|
20
39
|
return f"{{id:{escaped_id}}}"
|
benchling_sdk/models/__init__.py
CHANGED
@@ -632,6 +632,9 @@ __all__ = [
|
|
632
632
|
"MarkdownUiBlockCreate",
|
633
633
|
"MarkdownUiBlockType",
|
634
634
|
"MarkdownUiBlockUpdate",
|
635
|
+
"MatchBasesRequest",
|
636
|
+
"MatchBasesRequestArchiveReason",
|
637
|
+
"MatchBasesRequestSort",
|
635
638
|
"Measurement",
|
636
639
|
"Mixture",
|
637
640
|
"MixtureBulkUpdate",
|
@@ -845,6 +848,9 @@ __all__ = [
|
|
845
848
|
"SchemaLinkFieldDefinition",
|
846
849
|
"SchemaLinkFieldDefinitionType",
|
847
850
|
"SchemaSummary",
|
851
|
+
"SearchBasesRequest",
|
852
|
+
"SearchBasesRequestArchiveReason",
|
853
|
+
"SearchBasesRequestSort",
|
848
854
|
"SearchInputMultiValueUiBlock",
|
849
855
|
"SearchInputMultiValueUiBlockCreate",
|
850
856
|
"SearchInputMultiValueUiBlockType",
|
@@ -888,6 +894,8 @@ __all__ = [
|
|
888
894
|
"TableNotePartType",
|
889
895
|
"TableUiBlock",
|
890
896
|
"TableUiBlockCreate",
|
897
|
+
"TableUiBlockDataFrameSource",
|
898
|
+
"TableUiBlockDataFrameSourceType",
|
891
899
|
"TableUiBlockDatasetSource",
|
892
900
|
"TableUiBlockDatasetSourceType",
|
893
901
|
"TableUiBlockSource",
|
@@ -1641,6 +1649,9 @@ if TYPE_CHECKING:
|
|
1641
1649
|
import benchling_api_client.v2.stable.models.markdown_ui_block_create
|
1642
1650
|
import benchling_api_client.v2.stable.models.markdown_ui_block_type
|
1643
1651
|
import benchling_api_client.v2.stable.models.markdown_ui_block_update
|
1652
|
+
import benchling_api_client.v2.stable.models.match_bases_request
|
1653
|
+
import benchling_api_client.v2.stable.models.match_bases_request_archive_reason
|
1654
|
+
import benchling_api_client.v2.stable.models.match_bases_request_sort
|
1644
1655
|
import benchling_api_client.v2.stable.models.measurement
|
1645
1656
|
import benchling_api_client.v2.stable.models.mixture
|
1646
1657
|
import benchling_api_client.v2.stable.models.mixture_bulk_update
|
@@ -1854,6 +1865,9 @@ if TYPE_CHECKING:
|
|
1854
1865
|
import benchling_api_client.v2.stable.models.schema_link_field_definition
|
1855
1866
|
import benchling_api_client.v2.stable.models.schema_link_field_definition_type
|
1856
1867
|
import benchling_api_client.v2.stable.models.schema_summary
|
1868
|
+
import benchling_api_client.v2.stable.models.search_bases_request
|
1869
|
+
import benchling_api_client.v2.stable.models.search_bases_request_archive_reason
|
1870
|
+
import benchling_api_client.v2.stable.models.search_bases_request_sort
|
1857
1871
|
import benchling_api_client.v2.stable.models.search_input_multi_value_ui_block
|
1858
1872
|
import benchling_api_client.v2.stable.models.search_input_multi_value_ui_block_create
|
1859
1873
|
import benchling_api_client.v2.stable.models.search_input_multi_value_ui_block_type
|
@@ -1897,6 +1911,8 @@ if TYPE_CHECKING:
|
|
1897
1911
|
import benchling_api_client.v2.stable.models.table_note_part_type
|
1898
1912
|
import benchling_api_client.v2.stable.models.table_ui_block
|
1899
1913
|
import benchling_api_client.v2.stable.models.table_ui_block_create
|
1914
|
+
import benchling_api_client.v2.stable.models.table_ui_block_data_frame_source
|
1915
|
+
import benchling_api_client.v2.stable.models.table_ui_block_data_frame_source_type
|
1900
1916
|
import benchling_api_client.v2.stable.models.table_ui_block_dataset_source
|
1901
1917
|
import benchling_api_client.v2.stable.models.table_ui_block_dataset_source_type
|
1902
1918
|
import benchling_api_client.v2.stable.models.table_ui_block_source
|
@@ -3324,6 +3340,13 @@ if TYPE_CHECKING:
|
|
3324
3340
|
MarkdownUiBlockUpdate = (
|
3325
3341
|
benchling_api_client.v2.stable.models.markdown_ui_block_update.MarkdownUiBlockUpdate
|
3326
3342
|
)
|
3343
|
+
MatchBasesRequest = benchling_api_client.v2.stable.models.match_bases_request.MatchBasesRequest
|
3344
|
+
MatchBasesRequestArchiveReason = (
|
3345
|
+
benchling_api_client.v2.stable.models.match_bases_request_archive_reason.MatchBasesRequestArchiveReason
|
3346
|
+
)
|
3347
|
+
MatchBasesRequestSort = (
|
3348
|
+
benchling_api_client.v2.stable.models.match_bases_request_sort.MatchBasesRequestSort
|
3349
|
+
)
|
3327
3350
|
Measurement = benchling_api_client.v2.stable.models.measurement.Measurement
|
3328
3351
|
Mixture = benchling_api_client.v2.stable.models.mixture.Mixture
|
3329
3352
|
MixtureBulkUpdate = benchling_api_client.v2.stable.models.mixture_bulk_update.MixtureBulkUpdate
|
@@ -3743,6 +3766,13 @@ if TYPE_CHECKING:
|
|
3743
3766
|
benchling_api_client.v2.stable.models.schema_link_field_definition_type.SchemaLinkFieldDefinitionType
|
3744
3767
|
)
|
3745
3768
|
SchemaSummary = benchling_api_client.v2.stable.models.schema_summary.SchemaSummary
|
3769
|
+
SearchBasesRequest = benchling_api_client.v2.stable.models.search_bases_request.SearchBasesRequest
|
3770
|
+
SearchBasesRequestArchiveReason = (
|
3771
|
+
benchling_api_client.v2.stable.models.search_bases_request_archive_reason.SearchBasesRequestArchiveReason
|
3772
|
+
)
|
3773
|
+
SearchBasesRequestSort = (
|
3774
|
+
benchling_api_client.v2.stable.models.search_bases_request_sort.SearchBasesRequestSort
|
3775
|
+
)
|
3746
3776
|
SearchInputMultiValueUiBlock = (
|
3747
3777
|
benchling_api_client.v2.stable.models.search_input_multi_value_ui_block.SearchInputMultiValueUiBlock
|
3748
3778
|
)
|
@@ -3844,6 +3874,12 @@ if TYPE_CHECKING:
|
|
3844
3874
|
TableNotePartType = benchling_api_client.v2.stable.models.table_note_part_type.TableNotePartType
|
3845
3875
|
TableUiBlock = benchling_api_client.v2.stable.models.table_ui_block.TableUiBlock
|
3846
3876
|
TableUiBlockCreate = benchling_api_client.v2.stable.models.table_ui_block_create.TableUiBlockCreate
|
3877
|
+
TableUiBlockDataFrameSource = (
|
3878
|
+
benchling_api_client.v2.stable.models.table_ui_block_data_frame_source.TableUiBlockDataFrameSource
|
3879
|
+
)
|
3880
|
+
TableUiBlockDataFrameSourceType = (
|
3881
|
+
benchling_api_client.v2.stable.models.table_ui_block_data_frame_source_type.TableUiBlockDataFrameSourceType
|
3882
|
+
)
|
3847
3883
|
TableUiBlockDatasetSource = (
|
3848
3884
|
benchling_api_client.v2.stable.models.table_ui_block_dataset_source.TableUiBlockDatasetSource
|
3849
3885
|
)
|
@@ -4749,6 +4785,9 @@ else:
|
|
4749
4785
|
"MarkdownUiBlockCreate": "benchling_api_client.v2.stable.models.markdown_ui_block_create",
|
4750
4786
|
"MarkdownUiBlockType": "benchling_api_client.v2.stable.models.markdown_ui_block_type",
|
4751
4787
|
"MarkdownUiBlockUpdate": "benchling_api_client.v2.stable.models.markdown_ui_block_update",
|
4788
|
+
"MatchBasesRequest": "benchling_api_client.v2.stable.models.match_bases_request",
|
4789
|
+
"MatchBasesRequestArchiveReason": "benchling_api_client.v2.stable.models.match_bases_request_archive_reason",
|
4790
|
+
"MatchBasesRequestSort": "benchling_api_client.v2.stable.models.match_bases_request_sort",
|
4752
4791
|
"Measurement": "benchling_api_client.v2.stable.models.measurement",
|
4753
4792
|
"Mixture": "benchling_api_client.v2.stable.models.mixture",
|
4754
4793
|
"MixtureBulkUpdate": "benchling_api_client.v2.stable.models.mixture_bulk_update",
|
@@ -4962,6 +5001,9 @@ else:
|
|
4962
5001
|
"SchemaLinkFieldDefinition": "benchling_api_client.v2.stable.models.schema_link_field_definition",
|
4963
5002
|
"SchemaLinkFieldDefinitionType": "benchling_api_client.v2.stable.models.schema_link_field_definition_type",
|
4964
5003
|
"SchemaSummary": "benchling_api_client.v2.stable.models.schema_summary",
|
5004
|
+
"SearchBasesRequest": "benchling_api_client.v2.stable.models.search_bases_request",
|
5005
|
+
"SearchBasesRequestArchiveReason": "benchling_api_client.v2.stable.models.search_bases_request_archive_reason",
|
5006
|
+
"SearchBasesRequestSort": "benchling_api_client.v2.stable.models.search_bases_request_sort",
|
4965
5007
|
"SearchInputMultiValueUiBlock": "benchling_api_client.v2.stable.models.search_input_multi_value_ui_block",
|
4966
5008
|
"SearchInputMultiValueUiBlockCreate": "benchling_api_client.v2.stable.models.search_input_multi_value_ui_block_create",
|
4967
5009
|
"SearchInputMultiValueUiBlockType": "benchling_api_client.v2.stable.models.search_input_multi_value_ui_block_type",
|
@@ -5005,6 +5047,8 @@ else:
|
|
5005
5047
|
"TableNotePartType": "benchling_api_client.v2.stable.models.table_note_part_type",
|
5006
5048
|
"TableUiBlock": "benchling_api_client.v2.stable.models.table_ui_block",
|
5007
5049
|
"TableUiBlockCreate": "benchling_api_client.v2.stable.models.table_ui_block_create",
|
5050
|
+
"TableUiBlockDataFrameSource": "benchling_api_client.v2.stable.models.table_ui_block_data_frame_source",
|
5051
|
+
"TableUiBlockDataFrameSourceType": "benchling_api_client.v2.stable.models.table_ui_block_data_frame_source_type",
|
5008
5052
|
"TableUiBlockDatasetSource": "benchling_api_client.v2.stable.models.table_ui_block_dataset_source",
|
5009
5053
|
"TableUiBlockDatasetSourceType": "benchling_api_client.v2.stable.models.table_ui_block_dataset_source_type",
|
5010
5054
|
"TableUiBlockSource": "benchling_api_client.v2.stable.models.table_ui_block_source",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: benchling-sdk
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.11.0a0
|
4
4
|
Summary: SDK for interacting with the Benchling Platform.
|
5
5
|
License: Apache-2.0
|
6
6
|
Author: Benchling Support
|
@@ -17,12 +17,12 @@ Provides-Extra: python-jose
|
|
17
17
|
Requires-Dist: PyYAML (>=6.0,<7.0)
|
18
18
|
Requires-Dist: attrs (>=20.1.0,<23)
|
19
19
|
Requires-Dist: backoff (>=1.10.0,<2.0.0)
|
20
|
-
Requires-Dist: benchling-api-client (==2.0.
|
20
|
+
Requires-Dist: benchling-api-client (==2.0.254)
|
21
21
|
Requires-Dist: certifi (>=2022.12.7)
|
22
|
-
Requires-Dist: cryptography (>=41.0.
|
22
|
+
Requires-Dist: cryptography (>=41.0.7,<42.0.0) ; extra == "cryptography"
|
23
23
|
Requires-Dist: dataclasses-json (>=0.5.2,<0.6.0)
|
24
24
|
Requires-Dist: httpx (>=0.23.0)
|
25
|
-
Requires-Dist: jwcrypto (>=1.
|
25
|
+
Requires-Dist: jwcrypto (>=1.5.1,<2.0.0)
|
26
26
|
Requires-Dist: ordered-set (>=4.1.0,<5.0.0)
|
27
27
|
Requires-Dist: psutil (>=5.9.4,<6.0.0) ; python_version >= "3.11" and python_version < "4.0"
|
28
28
|
Requires-Dist: python-dateutil (>=2.8.0,<3.0.0)
|
@@ -20,7 +20,7 @@ benchling_sdk/apps/helpers/webhook_helpers.py,sha256=R5bk480BbvomQ0kK9RXsnsrMBn-
|
|
20
20
|
benchling_sdk/apps/status/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
21
|
benchling_sdk/apps/status/errors.py,sha256=BezqnaHkCG1QBscD4301NjSYBHu7BzdYEUKF90psuz0,2377
|
22
22
|
benchling_sdk/apps/status/framework.py,sha256=go0pyU5qgMCvsrTDXWk3V9FZwbaRHgfhEWtjIZ-JLEE,27418
|
23
|
-
benchling_sdk/apps/status/helpers.py,sha256=
|
23
|
+
benchling_sdk/apps/status/helpers.py,sha256=MSa2soRIK7TiA9TWAEg-EoqZ7ZYyjTmtJ28JIe6LUds,1316
|
24
24
|
benchling_sdk/apps/status/types.py,sha256=vE7-_7ns3mvPRJoVv-GQxc3389dIIH4mcG0VDNWpVhQ,746
|
25
25
|
benchling_sdk/apps/types.py,sha256=TBTfAB3IOoZjZqzTOK25kN3b6RTU9Z7tOMdBbq6u8lA,110
|
26
26
|
benchling_sdk/auth/__init__.py,sha256=N4pJYVUnTLzg5HO9ZldHaI-Am97i6AOCdQS0M5QcVpA,120
|
@@ -43,7 +43,7 @@ benchling_sdk/helpers/response_helpers.py,sha256=vtmb9lEEKy3dRFre3Q0R4XaLBEaS_rr
|
|
43
43
|
benchling_sdk/helpers/retry_helpers.py,sha256=SeKOPjnJIes6UsD7kVqlYKBYmwH_DCHdllnG3jys3N8,2740
|
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
|
-
benchling_sdk/models/__init__.py,sha256=
|
46
|
+
benchling_sdk/models/__init__.py,sha256=8gcaBsR_w-2-0jfpj75sl4UPgXrghiO5e1zNAywQkWY,335509
|
47
47
|
benchling_sdk/models/webhooks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
48
48
|
benchling_sdk/models/webhooks/v0/__init__.py,sha256=4n1NDjsKwvdQTGTpNjvzCBq4ZMwv4wtImkETMCX-TdM,6836
|
49
49
|
benchling_sdk/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
@@ -115,7 +115,7 @@ benchling_sdk/services/v2/v2_alpha_service.py,sha256=vNfYK0Dheml9ozR_0tzTlA3blPD
|
|
115
115
|
benchling_sdk/services/v2/v2_beta_service.py,sha256=0vbjFFfPQNUGUhckR_cnzGjypRMBpBP6c5c49zrA3mk,11564
|
116
116
|
benchling_sdk/services/v2/v2_stable_service.py,sha256=YIc-_0p6x1NQqj7awnWgCTHxbxYO7ZOolePZyW90whc,35246
|
117
117
|
benchling_sdk/services/v2_service.py,sha256=3eoIjYEmGLPdWCpBN0pl7q7_HNWCsUvfvTn3Hcz0wSM,2860
|
118
|
-
benchling_sdk-1.
|
119
|
-
benchling_sdk-1.
|
120
|
-
benchling_sdk-1.
|
121
|
-
benchling_sdk-1.
|
118
|
+
benchling_sdk-1.11.0a0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
119
|
+
benchling_sdk-1.11.0a0.dist-info/METADATA,sha256=kIJQoX4idjcIolmANOqV6HXFfbk9DpZ-ZG9TJ5hJXHk,2126
|
120
|
+
benchling_sdk-1.11.0a0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
121
|
+
benchling_sdk-1.11.0a0.dist-info/RECORD,,
|
File without changes
|
File without changes
|