benchling-sdk 1.13.0a2__py3-none-any.whl → 1.14.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/benchling.py +4 -6
- benchling_sdk/models/__init__.py +52 -44
- benchling_sdk/models/webhooks/v0/__init__.py +4 -0
- benchling_sdk/services/v2/base_service.py +7 -0
- benchling_sdk/services/v2/stable/aa_sequence_service.py +14 -0
- benchling_sdk/services/v2/stable/dna_sequence_service.py +14 -0
- benchling_sdk/services/v2/stable/entry_service.py +23 -0
- benchling_sdk/services/v2/v2_alpha_service.py +8 -28
- benchling_sdk/services/v2/v2_beta_service.py +27 -72
- benchling_sdk/services/v2/v2_stable_service.py +135 -335
- benchling_sdk/services/v2_service.py +17 -11
- {benchling_sdk-1.13.0a2.dist-info → benchling_sdk-1.14.0a1.dist-info}/METADATA +2 -2
- {benchling_sdk-1.13.0a2.dist-info → benchling_sdk-1.14.0a1.dist-info}/RECORD +15 -17
- benchling_sdk/services/v2/alpha/v2_alpha_dna_sequence_service.py +0 -32
- benchling_sdk/services/v2/beta/v2_beta_aa_sequence_service.py +0 -33
- {benchling_sdk-1.13.0a2.dist-info → benchling_sdk-1.14.0a1.dist-info}/LICENSE +0 -0
- {benchling_sdk-1.13.0a2.dist-info → benchling_sdk-1.14.0a1.dist-info}/WHEEL +0 -0
benchling_sdk/benchling.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
"""Provides the Benchling class, which is the main interface for accessing Benchling's API functionality."""
|
2
2
|
from __future__ import annotations
|
3
3
|
|
4
|
+
from functools import cached_property
|
4
5
|
import re
|
5
6
|
from typing import Optional, Protocol, TYPE_CHECKING
|
6
7
|
import urllib.parse
|
@@ -154,19 +155,16 @@ class Benchling(object):
|
|
154
155
|
"""
|
155
156
|
return self._client
|
156
157
|
|
157
|
-
@
|
158
|
+
@cached_property
|
158
159
|
def v2(self) -> V2Service:
|
159
160
|
"""
|
160
161
|
V2.
|
161
162
|
|
162
163
|
Namespace containing support for the V2 Benchling API.
|
163
164
|
"""
|
164
|
-
|
165
|
-
from benchling_sdk.services.v2_service import V2Service
|
166
|
-
|
167
|
-
self._v2_service = V2Service(self._client, retry_strategy=self._retry_strategy)
|
165
|
+
from benchling_sdk.services.v2_service import V2Service
|
168
166
|
|
169
|
-
return self.
|
167
|
+
return V2Service(self._client, retry_strategy=self._retry_strategy)
|
170
168
|
|
171
169
|
# ------------------------------------------------------------------------------------
|
172
170
|
# Kept for compatibility and ease of access. New services should be added in services.v2.stable and
|
benchling_sdk/models/__init__.py
CHANGED
@@ -218,18 +218,10 @@ __all__ = [
|
|
218
218
|
"BaseSearchInputUIBlock",
|
219
219
|
"BaseSelectorInputUIBlock",
|
220
220
|
"Batch",
|
221
|
-
"BatchCreate",
|
222
221
|
"BatchOrInaccessibleResource",
|
223
222
|
"BatchSchema",
|
224
223
|
"BatchSchemasList",
|
225
224
|
"BatchSchemasPaginatedList",
|
226
|
-
"BatchUpdate",
|
227
|
-
"BatchesArchivalChange",
|
228
|
-
"BatchesArchive",
|
229
|
-
"BatchesArchiveReason",
|
230
|
-
"BatchesBulkGet",
|
231
|
-
"BatchesPaginatedList",
|
232
|
-
"BatchesUnarchive",
|
233
225
|
"BenchlingApp",
|
234
226
|
"BenchlingAppCreate",
|
235
227
|
"BenchlingAppDefinitionSummary",
|
@@ -305,6 +297,9 @@ __all__ = [
|
|
305
297
|
"ButtonUiBlockCreate",
|
306
298
|
"ButtonUiBlockType",
|
307
299
|
"ButtonUiBlockUpdate",
|
300
|
+
"ChartNotePart",
|
301
|
+
"ChartNotePartChart",
|
302
|
+
"ChartNotePartType",
|
308
303
|
"CheckboxNotePart",
|
309
304
|
"CheckboxNotePartType",
|
310
305
|
"CheckoutRecord",
|
@@ -385,7 +380,6 @@ __all__ = [
|
|
385
380
|
"DateAppConfigItemType",
|
386
381
|
"DatetimeAppConfigItem",
|
387
382
|
"DatetimeAppConfigItemType",
|
388
|
-
"DefaultConcentrationSummary",
|
389
383
|
"DeprecatedAutomationOutputProcessorsPaginatedList",
|
390
384
|
"DeprecatedContainerVolumeForInput",
|
391
385
|
"DeprecatedContainerVolumeForInputUnits",
|
@@ -509,6 +503,7 @@ __all__ = [
|
|
509
503
|
"EntryTableRow",
|
510
504
|
"EntryTemplate",
|
511
505
|
"EntryTemplateDay",
|
506
|
+
"EntryTemplateUpdate",
|
512
507
|
"EntryTemplatesPaginatedList",
|
513
508
|
"EntryUpdate",
|
514
509
|
"EntryUpdatedFieldsEvent",
|
@@ -592,6 +587,12 @@ __all__ = [
|
|
592
587
|
"IntegerFieldDefinition",
|
593
588
|
"IntegerFieldDefinitionType",
|
594
589
|
"InteractiveUiBlock",
|
590
|
+
"InventoryContainerTableNotePart",
|
591
|
+
"InventoryContainerTableNotePartMode",
|
592
|
+
"InventoryContainerTableNotePartType",
|
593
|
+
"InventoryPlateTableNotePart",
|
594
|
+
"InventoryPlateTableNotePartMode",
|
595
|
+
"InventoryPlateTableNotePartType",
|
595
596
|
"JsonAppConfigItem",
|
596
597
|
"JsonAppConfigItemType",
|
597
598
|
"LabAutomationBenchlingAppError",
|
@@ -621,7 +622,6 @@ __all__ = [
|
|
621
622
|
"ListAppConfigurationItemsSort",
|
622
623
|
"ListAppSessionsSort",
|
623
624
|
"ListAssayResultsSort",
|
624
|
-
"ListBatchesSort",
|
625
625
|
"ListBenchlingAppsSort",
|
626
626
|
"ListBoxesSort",
|
627
627
|
"ListCodonUsageTablesSort",
|
@@ -1284,18 +1284,10 @@ if TYPE_CHECKING:
|
|
1284
1284
|
import benchling_api_client.v2.stable.models.base_search_input_ui_block
|
1285
1285
|
import benchling_api_client.v2.stable.models.base_selector_input_ui_block
|
1286
1286
|
import benchling_api_client.v2.stable.models.batch
|
1287
|
-
import benchling_api_client.v2.stable.models.batch_create
|
1288
1287
|
import benchling_api_client.v2.stable.models.batch_or_inaccessible_resource
|
1289
1288
|
import benchling_api_client.v2.stable.models.batch_schema
|
1290
1289
|
import benchling_api_client.v2.stable.models.batch_schemas_list
|
1291
1290
|
import benchling_api_client.v2.stable.models.batch_schemas_paginated_list
|
1292
|
-
import benchling_api_client.v2.stable.models.batch_update
|
1293
|
-
import benchling_api_client.v2.stable.models.batches_archival_change
|
1294
|
-
import benchling_api_client.v2.stable.models.batches_archive
|
1295
|
-
import benchling_api_client.v2.stable.models.batches_archive_reason
|
1296
|
-
import benchling_api_client.v2.stable.models.batches_bulk_get
|
1297
|
-
import benchling_api_client.v2.stable.models.batches_paginated_list
|
1298
|
-
import benchling_api_client.v2.stable.models.batches_unarchive
|
1299
1291
|
import benchling_api_client.v2.stable.models.benchling_app
|
1300
1292
|
import benchling_api_client.v2.stable.models.benchling_app_create
|
1301
1293
|
import benchling_api_client.v2.stable.models.benchling_app_definition_summary
|
@@ -1371,6 +1363,9 @@ if TYPE_CHECKING:
|
|
1371
1363
|
import benchling_api_client.v2.stable.models.button_ui_block_create
|
1372
1364
|
import benchling_api_client.v2.stable.models.button_ui_block_type
|
1373
1365
|
import benchling_api_client.v2.stable.models.button_ui_block_update
|
1366
|
+
import benchling_api_client.v2.stable.models.chart_note_part
|
1367
|
+
import benchling_api_client.v2.stable.models.chart_note_part_chart
|
1368
|
+
import benchling_api_client.v2.stable.models.chart_note_part_type
|
1374
1369
|
import benchling_api_client.v2.stable.models.checkbox_note_part
|
1375
1370
|
import benchling_api_client.v2.stable.models.checkbox_note_part_type
|
1376
1371
|
import benchling_api_client.v2.stable.models.checkout_record
|
@@ -1451,7 +1446,6 @@ if TYPE_CHECKING:
|
|
1451
1446
|
import benchling_api_client.v2.stable.models.date_app_config_item_type
|
1452
1447
|
import benchling_api_client.v2.stable.models.datetime_app_config_item
|
1453
1448
|
import benchling_api_client.v2.stable.models.datetime_app_config_item_type
|
1454
|
-
import benchling_api_client.v2.stable.models.default_concentration_summary
|
1455
1449
|
import benchling_api_client.v2.stable.models.deprecated_automation_output_processors_paginated_list
|
1456
1450
|
import benchling_api_client.v2.stable.models.deprecated_container_volume_for_input
|
1457
1451
|
import benchling_api_client.v2.stable.models.deprecated_container_volume_for_input_units
|
@@ -1575,6 +1569,7 @@ if TYPE_CHECKING:
|
|
1575
1569
|
import benchling_api_client.v2.stable.models.entry_table_row
|
1576
1570
|
import benchling_api_client.v2.stable.models.entry_template
|
1577
1571
|
import benchling_api_client.v2.stable.models.entry_template_day
|
1572
|
+
import benchling_api_client.v2.stable.models.entry_template_update
|
1578
1573
|
import benchling_api_client.v2.stable.models.entry_templates_paginated_list
|
1579
1574
|
import benchling_api_client.v2.stable.models.entry_update
|
1580
1575
|
import benchling_api_client.v2.stable.models.entry_updated_fields_event
|
@@ -1658,6 +1653,12 @@ if TYPE_CHECKING:
|
|
1658
1653
|
import benchling_api_client.v2.stable.models.integer_field_definition
|
1659
1654
|
import benchling_api_client.v2.stable.models.integer_field_definition_type
|
1660
1655
|
import benchling_api_client.v2.stable.models.interactive_ui_block
|
1656
|
+
import benchling_api_client.v2.stable.models.inventory_container_table_note_part
|
1657
|
+
import benchling_api_client.v2.stable.models.inventory_container_table_note_part_mode
|
1658
|
+
import benchling_api_client.v2.stable.models.inventory_container_table_note_part_type
|
1659
|
+
import benchling_api_client.v2.stable.models.inventory_plate_table_note_part
|
1660
|
+
import benchling_api_client.v2.stable.models.inventory_plate_table_note_part_mode
|
1661
|
+
import benchling_api_client.v2.stable.models.inventory_plate_table_note_part_type
|
1661
1662
|
import benchling_api_client.v2.stable.models.json_app_config_item
|
1662
1663
|
import benchling_api_client.v2.stable.models.json_app_config_item_type
|
1663
1664
|
import benchling_api_client.v2.stable.models.lab_automation_benchling_app_error
|
@@ -1687,7 +1688,6 @@ if TYPE_CHECKING:
|
|
1687
1688
|
import benchling_api_client.v2.stable.models.list_app_configuration_items_sort
|
1688
1689
|
import benchling_api_client.v2.stable.models.list_app_sessions_sort
|
1689
1690
|
import benchling_api_client.v2.stable.models.list_assay_results_sort
|
1690
|
-
import benchling_api_client.v2.stable.models.list_batches_sort
|
1691
1691
|
import benchling_api_client.v2.stable.models.list_benchling_apps_sort
|
1692
1692
|
import benchling_api_client.v2.stable.models.list_boxes_sort
|
1693
1693
|
import benchling_api_client.v2.stable.models.list_codon_usage_tables_sort
|
@@ -2622,7 +2622,6 @@ if TYPE_CHECKING:
|
|
2622
2622
|
benchling_api_client.v2.stable.models.base_selector_input_ui_block.BaseSelectorInputUIBlock
|
2623
2623
|
)
|
2624
2624
|
Batch = benchling_api_client.v2.stable.models.batch.Batch
|
2625
|
-
BatchCreate = benchling_api_client.v2.stable.models.batch_create.BatchCreate
|
2626
2625
|
BatchOrInaccessibleResource = (
|
2627
2626
|
benchling_api_client.v2.stable.models.batch_or_inaccessible_resource.BatchOrInaccessibleResource
|
2628
2627
|
)
|
@@ -2631,15 +2630,6 @@ if TYPE_CHECKING:
|
|
2631
2630
|
BatchSchemasPaginatedList = (
|
2632
2631
|
benchling_api_client.v2.stable.models.batch_schemas_paginated_list.BatchSchemasPaginatedList
|
2633
2632
|
)
|
2634
|
-
BatchUpdate = benchling_api_client.v2.stable.models.batch_update.BatchUpdate
|
2635
|
-
BatchesArchivalChange = (
|
2636
|
-
benchling_api_client.v2.stable.models.batches_archival_change.BatchesArchivalChange
|
2637
|
-
)
|
2638
|
-
BatchesArchive = benchling_api_client.v2.stable.models.batches_archive.BatchesArchive
|
2639
|
-
BatchesArchiveReason = benchling_api_client.v2.stable.models.batches_archive_reason.BatchesArchiveReason
|
2640
|
-
BatchesBulkGet = benchling_api_client.v2.stable.models.batches_bulk_get.BatchesBulkGet
|
2641
|
-
BatchesPaginatedList = benchling_api_client.v2.stable.models.batches_paginated_list.BatchesPaginatedList
|
2642
|
-
BatchesUnarchive = benchling_api_client.v2.stable.models.batches_unarchive.BatchesUnarchive
|
2643
2633
|
BenchlingApp = benchling_api_client.v2.stable.models.benchling_app.BenchlingApp
|
2644
2634
|
BenchlingAppCreate = benchling_api_client.v2.stable.models.benchling_app_create.BenchlingAppCreate
|
2645
2635
|
BenchlingAppDefinitionSummary = (
|
@@ -2801,6 +2791,9 @@ if TYPE_CHECKING:
|
|
2801
2791
|
ButtonUiBlockCreate = benchling_api_client.v2.stable.models.button_ui_block_create.ButtonUiBlockCreate
|
2802
2792
|
ButtonUiBlockType = benchling_api_client.v2.stable.models.button_ui_block_type.ButtonUiBlockType
|
2803
2793
|
ButtonUiBlockUpdate = benchling_api_client.v2.stable.models.button_ui_block_update.ButtonUiBlockUpdate
|
2794
|
+
ChartNotePart = benchling_api_client.v2.stable.models.chart_note_part.ChartNotePart
|
2795
|
+
ChartNotePartChart = benchling_api_client.v2.stable.models.chart_note_part_chart.ChartNotePartChart
|
2796
|
+
ChartNotePartType = benchling_api_client.v2.stable.models.chart_note_part_type.ChartNotePartType
|
2804
2797
|
CheckboxNotePart = benchling_api_client.v2.stable.models.checkbox_note_part.CheckboxNotePart
|
2805
2798
|
CheckboxNotePartType = benchling_api_client.v2.stable.models.checkbox_note_part_type.CheckboxNotePartType
|
2806
2799
|
CheckoutRecord = benchling_api_client.v2.stable.models.checkout_record.CheckoutRecord
|
@@ -2965,9 +2958,6 @@ if TYPE_CHECKING:
|
|
2965
2958
|
DatetimeAppConfigItemType = (
|
2966
2959
|
benchling_api_client.v2.stable.models.datetime_app_config_item_type.DatetimeAppConfigItemType
|
2967
2960
|
)
|
2968
|
-
DefaultConcentrationSummary = (
|
2969
|
-
benchling_api_client.v2.stable.models.default_concentration_summary.DefaultConcentrationSummary
|
2970
|
-
)
|
2971
2961
|
DeprecatedAutomationOutputProcessorsPaginatedList = (
|
2972
2962
|
benchling_api_client.v2.stable.models.deprecated_automation_output_processors_paginated_list.DeprecatedAutomationOutputProcessorsPaginatedList
|
2973
2963
|
)
|
@@ -3229,6 +3219,7 @@ if TYPE_CHECKING:
|
|
3229
3219
|
EntryTableRow = benchling_api_client.v2.stable.models.entry_table_row.EntryTableRow
|
3230
3220
|
EntryTemplate = benchling_api_client.v2.stable.models.entry_template.EntryTemplate
|
3231
3221
|
EntryTemplateDay = benchling_api_client.v2.stable.models.entry_template_day.EntryTemplateDay
|
3222
|
+
EntryTemplateUpdate = benchling_api_client.v2.stable.models.entry_template_update.EntryTemplateUpdate
|
3232
3223
|
EntryTemplatesPaginatedList = (
|
3233
3224
|
benchling_api_client.v2.stable.models.entry_templates_paginated_list.EntryTemplatesPaginatedList
|
3234
3225
|
)
|
@@ -3386,6 +3377,24 @@ if TYPE_CHECKING:
|
|
3386
3377
|
benchling_api_client.v2.stable.models.integer_field_definition_type.IntegerFieldDefinitionType
|
3387
3378
|
)
|
3388
3379
|
InteractiveUiBlock = benchling_api_client.v2.stable.models.interactive_ui_block.InteractiveUiBlock
|
3380
|
+
InventoryContainerTableNotePart = (
|
3381
|
+
benchling_api_client.v2.stable.models.inventory_container_table_note_part.InventoryContainerTableNotePart
|
3382
|
+
)
|
3383
|
+
InventoryContainerTableNotePartMode = (
|
3384
|
+
benchling_api_client.v2.stable.models.inventory_container_table_note_part_mode.InventoryContainerTableNotePartMode
|
3385
|
+
)
|
3386
|
+
InventoryContainerTableNotePartType = (
|
3387
|
+
benchling_api_client.v2.stable.models.inventory_container_table_note_part_type.InventoryContainerTableNotePartType
|
3388
|
+
)
|
3389
|
+
InventoryPlateTableNotePart = (
|
3390
|
+
benchling_api_client.v2.stable.models.inventory_plate_table_note_part.InventoryPlateTableNotePart
|
3391
|
+
)
|
3392
|
+
InventoryPlateTableNotePartMode = (
|
3393
|
+
benchling_api_client.v2.stable.models.inventory_plate_table_note_part_mode.InventoryPlateTableNotePartMode
|
3394
|
+
)
|
3395
|
+
InventoryPlateTableNotePartType = (
|
3396
|
+
benchling_api_client.v2.stable.models.inventory_plate_table_note_part_type.InventoryPlateTableNotePartType
|
3397
|
+
)
|
3389
3398
|
JsonAppConfigItem = benchling_api_client.v2.stable.models.json_app_config_item.JsonAppConfigItem
|
3390
3399
|
JsonAppConfigItemType = (
|
3391
3400
|
benchling_api_client.v2.stable.models.json_app_config_item_type.JsonAppConfigItemType
|
@@ -3449,7 +3458,6 @@ if TYPE_CHECKING:
|
|
3449
3458
|
)
|
3450
3459
|
ListAppSessionsSort = benchling_api_client.v2.stable.models.list_app_sessions_sort.ListAppSessionsSort
|
3451
3460
|
ListAssayResultsSort = benchling_api_client.v2.stable.models.list_assay_results_sort.ListAssayResultsSort
|
3452
|
-
ListBatchesSort = benchling_api_client.v2.stable.models.list_batches_sort.ListBatchesSort
|
3453
3461
|
ListBenchlingAppsSort = (
|
3454
3462
|
benchling_api_client.v2.stable.models.list_benchling_apps_sort.ListBenchlingAppsSort
|
3455
3463
|
)
|
@@ -4590,18 +4598,10 @@ else:
|
|
4590
4598
|
"BaseSearchInputUIBlock": "benchling_api_client.v2.stable.models.base_search_input_ui_block",
|
4591
4599
|
"BaseSelectorInputUIBlock": "benchling_api_client.v2.stable.models.base_selector_input_ui_block",
|
4592
4600
|
"Batch": "benchling_api_client.v2.stable.models.batch",
|
4593
|
-
"BatchCreate": "benchling_api_client.v2.stable.models.batch_create",
|
4594
4601
|
"BatchOrInaccessibleResource": "benchling_api_client.v2.stable.models.batch_or_inaccessible_resource",
|
4595
4602
|
"BatchSchema": "benchling_api_client.v2.stable.models.batch_schema",
|
4596
4603
|
"BatchSchemasList": "benchling_api_client.v2.stable.models.batch_schemas_list",
|
4597
4604
|
"BatchSchemasPaginatedList": "benchling_api_client.v2.stable.models.batch_schemas_paginated_list",
|
4598
|
-
"BatchUpdate": "benchling_api_client.v2.stable.models.batch_update",
|
4599
|
-
"BatchesArchivalChange": "benchling_api_client.v2.stable.models.batches_archival_change",
|
4600
|
-
"BatchesArchive": "benchling_api_client.v2.stable.models.batches_archive",
|
4601
|
-
"BatchesArchiveReason": "benchling_api_client.v2.stable.models.batches_archive_reason",
|
4602
|
-
"BatchesBulkGet": "benchling_api_client.v2.stable.models.batches_bulk_get",
|
4603
|
-
"BatchesPaginatedList": "benchling_api_client.v2.stable.models.batches_paginated_list",
|
4604
|
-
"BatchesUnarchive": "benchling_api_client.v2.stable.models.batches_unarchive",
|
4605
4605
|
"BenchlingApp": "benchling_api_client.v2.stable.models.benchling_app",
|
4606
4606
|
"BenchlingAppCreate": "benchling_api_client.v2.stable.models.benchling_app_create",
|
4607
4607
|
"BenchlingAppDefinitionSummary": "benchling_api_client.v2.stable.models.benchling_app_definition_summary",
|
@@ -4677,6 +4677,9 @@ else:
|
|
4677
4677
|
"ButtonUiBlockCreate": "benchling_api_client.v2.stable.models.button_ui_block_create",
|
4678
4678
|
"ButtonUiBlockType": "benchling_api_client.v2.stable.models.button_ui_block_type",
|
4679
4679
|
"ButtonUiBlockUpdate": "benchling_api_client.v2.stable.models.button_ui_block_update",
|
4680
|
+
"ChartNotePart": "benchling_api_client.v2.stable.models.chart_note_part",
|
4681
|
+
"ChartNotePartChart": "benchling_api_client.v2.stable.models.chart_note_part_chart",
|
4682
|
+
"ChartNotePartType": "benchling_api_client.v2.stable.models.chart_note_part_type",
|
4680
4683
|
"CheckboxNotePart": "benchling_api_client.v2.stable.models.checkbox_note_part",
|
4681
4684
|
"CheckboxNotePartType": "benchling_api_client.v2.stable.models.checkbox_note_part_type",
|
4682
4685
|
"CheckoutRecord": "benchling_api_client.v2.stable.models.checkout_record",
|
@@ -4757,7 +4760,6 @@ else:
|
|
4757
4760
|
"DateAppConfigItemType": "benchling_api_client.v2.stable.models.date_app_config_item_type",
|
4758
4761
|
"DatetimeAppConfigItem": "benchling_api_client.v2.stable.models.datetime_app_config_item",
|
4759
4762
|
"DatetimeAppConfigItemType": "benchling_api_client.v2.stable.models.datetime_app_config_item_type",
|
4760
|
-
"DefaultConcentrationSummary": "benchling_api_client.v2.stable.models.default_concentration_summary",
|
4761
4763
|
"DeprecatedAutomationOutputProcessorsPaginatedList": "benchling_api_client.v2.stable.models.deprecated_automation_output_processors_paginated_list",
|
4762
4764
|
"DeprecatedContainerVolumeForInput": "benchling_api_client.v2.stable.models.deprecated_container_volume_for_input",
|
4763
4765
|
"DeprecatedContainerVolumeForInputUnits": "benchling_api_client.v2.stable.models.deprecated_container_volume_for_input_units",
|
@@ -4881,6 +4883,7 @@ else:
|
|
4881
4883
|
"EntryTableRow": "benchling_api_client.v2.stable.models.entry_table_row",
|
4882
4884
|
"EntryTemplate": "benchling_api_client.v2.stable.models.entry_template",
|
4883
4885
|
"EntryTemplateDay": "benchling_api_client.v2.stable.models.entry_template_day",
|
4886
|
+
"EntryTemplateUpdate": "benchling_api_client.v2.stable.models.entry_template_update",
|
4884
4887
|
"EntryTemplatesPaginatedList": "benchling_api_client.v2.stable.models.entry_templates_paginated_list",
|
4885
4888
|
"EntryUpdate": "benchling_api_client.v2.stable.models.entry_update",
|
4886
4889
|
"EntryUpdatedFieldsEvent": "benchling_api_client.v2.stable.models.entry_updated_fields_event",
|
@@ -4964,6 +4967,12 @@ else:
|
|
4964
4967
|
"IntegerFieldDefinition": "benchling_api_client.v2.stable.models.integer_field_definition",
|
4965
4968
|
"IntegerFieldDefinitionType": "benchling_api_client.v2.stable.models.integer_field_definition_type",
|
4966
4969
|
"InteractiveUiBlock": "benchling_api_client.v2.stable.models.interactive_ui_block",
|
4970
|
+
"InventoryContainerTableNotePart": "benchling_api_client.v2.stable.models.inventory_container_table_note_part",
|
4971
|
+
"InventoryContainerTableNotePartMode": "benchling_api_client.v2.stable.models.inventory_container_table_note_part_mode",
|
4972
|
+
"InventoryContainerTableNotePartType": "benchling_api_client.v2.stable.models.inventory_container_table_note_part_type",
|
4973
|
+
"InventoryPlateTableNotePart": "benchling_api_client.v2.stable.models.inventory_plate_table_note_part",
|
4974
|
+
"InventoryPlateTableNotePartMode": "benchling_api_client.v2.stable.models.inventory_plate_table_note_part_mode",
|
4975
|
+
"InventoryPlateTableNotePartType": "benchling_api_client.v2.stable.models.inventory_plate_table_note_part_type",
|
4967
4976
|
"JsonAppConfigItem": "benchling_api_client.v2.stable.models.json_app_config_item",
|
4968
4977
|
"JsonAppConfigItemType": "benchling_api_client.v2.stable.models.json_app_config_item_type",
|
4969
4978
|
"LabAutomationBenchlingAppError": "benchling_api_client.v2.stable.models.lab_automation_benchling_app_error",
|
@@ -4993,7 +5002,6 @@ else:
|
|
4993
5002
|
"ListAppConfigurationItemsSort": "benchling_api_client.v2.stable.models.list_app_configuration_items_sort",
|
4994
5003
|
"ListAppSessionsSort": "benchling_api_client.v2.stable.models.list_app_sessions_sort",
|
4995
5004
|
"ListAssayResultsSort": "benchling_api_client.v2.stable.models.list_assay_results_sort",
|
4996
|
-
"ListBatchesSort": "benchling_api_client.v2.stable.models.list_batches_sort",
|
4997
5005
|
"ListBenchlingAppsSort": "benchling_api_client.v2.stable.models.list_benchling_apps_sort",
|
4998
5006
|
"ListBoxesSort": "benchling_api_client.v2.stable.models.list_boxes_sort",
|
4999
5007
|
"ListCodonUsageTablesSort": "benchling_api_client.v2.stable.models.list_codon_usage_tables_sort",
|
@@ -50,6 +50,7 @@ __all__ = [
|
|
50
50
|
"LifecycleDeactivateWebhookV0Beta",
|
51
51
|
"LifecycleDeactivateWebhookV0BetaType",
|
52
52
|
"LifecycleDeactivateWebhookV0Type",
|
53
|
+
"MessageBase",
|
53
54
|
"MessageBaseV0",
|
54
55
|
"RequestCreatedWebhookV2",
|
55
56
|
"RequestCreatedWebhookV2Type",
|
@@ -162,6 +163,7 @@ if TYPE_CHECKING:
|
|
162
163
|
import benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_beta
|
163
164
|
import benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_beta_type
|
164
165
|
import benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_type
|
166
|
+
import benchling_api_client.webhooks.v0.stable.models.message_base
|
165
167
|
import benchling_api_client.webhooks.v0.stable.models.message_base_v0
|
166
168
|
import benchling_api_client.webhooks.v0.stable.models.request_created_webhook_v2
|
167
169
|
import benchling_api_client.webhooks.v0.stable.models.request_created_webhook_v2_type
|
@@ -354,6 +356,7 @@ if TYPE_CHECKING:
|
|
354
356
|
LifecycleDeactivateWebhookV0Type = (
|
355
357
|
benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_type.LifecycleDeactivateWebhookV0Type
|
356
358
|
)
|
359
|
+
MessageBase = benchling_api_client.webhooks.v0.stable.models.message_base.MessageBase
|
357
360
|
MessageBaseV0 = benchling_api_client.webhooks.v0.stable.models.message_base_v0.MessageBaseV0
|
358
361
|
RequestCreatedWebhookV2 = (
|
359
362
|
benchling_api_client.webhooks.v0.stable.models.request_created_webhook_v2.RequestCreatedWebhookV2
|
@@ -596,6 +599,7 @@ else:
|
|
596
599
|
"LifecycleDeactivateWebhookV0Beta": "benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_beta",
|
597
600
|
"LifecycleDeactivateWebhookV0BetaType": "benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_beta_type",
|
598
601
|
"LifecycleDeactivateWebhookV0Type": "benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_type",
|
602
|
+
"MessageBase": "benchling_api_client.webhooks.v0.stable.models.message_base",
|
599
603
|
"MessageBaseV0": "benchling_api_client.webhooks.v0.stable.models.message_base_v0",
|
600
604
|
"RequestCreatedWebhookV2": "benchling_api_client.webhooks.v0.stable.models.request_created_webhook_v2",
|
601
605
|
"RequestCreatedWebhookV2Type": "benchling_api_client.webhooks.v0.stable.models.request_created_webhook_v2_type",
|
@@ -30,3 +30,10 @@ class BaseService(ABC):
|
|
30
30
|
def retry_strategy(self) -> RetryStrategy:
|
31
31
|
"""Provide access to the underlying user-specified RetryStrategy."""
|
32
32
|
return self._retry_strategy
|
33
|
+
|
34
|
+
def _create_service(self, cls):
|
35
|
+
"""Instantiate a service that derives from BaseService, with the same properties as this service.
|
36
|
+
|
37
|
+
Override this in alpha and beta services that use a client other than self._client.
|
38
|
+
"""
|
39
|
+
return cls(self._client, self._retry_strategy)
|
@@ -8,6 +8,7 @@ from benchling_api_client.v2.stable.api.aa_sequences import (
|
|
8
8
|
bulk_update_aa_sequences,
|
9
9
|
bulk_upsert_aa_sequences,
|
10
10
|
create_aa_sequence,
|
11
|
+
find_matching_regions_aa_sequences,
|
11
12
|
get_aa_sequence,
|
12
13
|
list_aa_sequences,
|
13
14
|
unarchive_aa_sequences,
|
@@ -37,6 +38,7 @@ from benchling_sdk.models import (
|
|
37
38
|
AaSequencesBulkCreateRequest,
|
38
39
|
AaSequencesBulkUpdateRequest,
|
39
40
|
AaSequencesBulkUpsertRequest,
|
41
|
+
AaSequencesFindMatchingRegion,
|
40
42
|
AaSequencesPaginatedList,
|
41
43
|
AaSequencesUnarchive,
|
42
44
|
AaSequenceUpdate,
|
@@ -312,3 +314,15 @@ class AaSequenceService(BaseService):
|
|
312
314
|
client=self.client, json_body=body, returning=none_as_unset(returning_string)
|
313
315
|
)
|
314
316
|
return model_from_detailed(response)
|
317
|
+
|
318
|
+
@api_method
|
319
|
+
def find_matching_regions(self, find_matching_region: AaSequencesFindMatchingRegion) -> AsyncTaskLink:
|
320
|
+
"""
|
321
|
+
Find matching regions for AA sequences.
|
322
|
+
|
323
|
+
See https://benchling.com/api/v2/reference#/AA%20Sequences/findMatchingRegionsAaSequences
|
324
|
+
"""
|
325
|
+
response = find_matching_regions_aa_sequences.sync_detailed(
|
326
|
+
client=self.client, json_body=find_matching_region
|
327
|
+
)
|
328
|
+
return model_from_detailed(response)
|
@@ -11,6 +11,7 @@ from benchling_api_client.v2.stable.api.dna_sequences import (
|
|
11
11
|
bulk_update_dna_sequences,
|
12
12
|
bulk_upsert_dna_sequences,
|
13
13
|
create_dna_sequence,
|
14
|
+
find_matching_regions_dna_sequences,
|
14
15
|
get_dna_sequence,
|
15
16
|
list_dna_sequences,
|
16
17
|
match_bases_dna_sequences,
|
@@ -45,6 +46,7 @@ from benchling_sdk.models import (
|
|
45
46
|
DnaSequencesBulkCreateRequest,
|
46
47
|
DnaSequencesBulkUpdateRequest,
|
47
48
|
DnaSequencesBulkUpsertRequest,
|
49
|
+
DnaSequencesFindMatchingRegion,
|
48
50
|
DnaSequencesPaginatedList,
|
49
51
|
DnaSequencesUnarchive,
|
50
52
|
DnaSequenceUpdate,
|
@@ -384,3 +386,15 @@ class DnaSequenceService(BaseService):
|
|
384
386
|
json_body=search_bases_request,
|
385
387
|
)
|
386
388
|
return model_from_detailed(response)
|
389
|
+
|
390
|
+
@api_method
|
391
|
+
def find_matching_regions(self, find_matching_region: DnaSequencesFindMatchingRegion) -> AsyncTaskLink:
|
392
|
+
"""
|
393
|
+
Find matching regions for DNA sequences.
|
394
|
+
|
395
|
+
See https://benchling.com/api/v2/reference#/DNA%20Sequences/findMatchingRegionsDnaSequences
|
396
|
+
"""
|
397
|
+
response = find_matching_regions_dna_sequences.sync_detailed(
|
398
|
+
client=self.client, json_body=find_matching_region
|
399
|
+
)
|
400
|
+
return model_from_detailed(response)
|
@@ -11,6 +11,7 @@ from benchling_api_client.v2.stable.api.entries import (
|
|
11
11
|
list_entry_templates,
|
12
12
|
unarchive_entries,
|
13
13
|
update_entry,
|
14
|
+
update_entry_template,
|
14
15
|
)
|
15
16
|
from benchling_api_client.v2.types import Response
|
16
17
|
|
@@ -31,6 +32,7 @@ from benchling_sdk.models import (
|
|
31
32
|
EntryExternalFile,
|
32
33
|
EntryTemplate,
|
33
34
|
EntryTemplatesPaginatedList,
|
35
|
+
EntryTemplateUpdate,
|
34
36
|
EntryUpdate,
|
35
37
|
ListEntriesReviewStatus,
|
36
38
|
ListEntriesSort,
|
@@ -332,3 +334,24 @@ class EntryService(BaseService):
|
|
332
334
|
client=self.client, entry_template_id=entry_template_id, returning=none_as_unset(returning_string)
|
333
335
|
)
|
334
336
|
return model_from_detailed(response)
|
337
|
+
|
338
|
+
@api_method
|
339
|
+
def update_entry_template(
|
340
|
+
self,
|
341
|
+
entry_template_id: str,
|
342
|
+
entry_template: EntryTemplateUpdate,
|
343
|
+
returning: Optional[Iterable[str]] = None,
|
344
|
+
) -> EntryTemplate:
|
345
|
+
"""
|
346
|
+
Update a notebook entry template's metadata.
|
347
|
+
|
348
|
+
See https://benchling.com/api/reference#/Entries/updateEntryTemplate
|
349
|
+
"""
|
350
|
+
returning_string = optional_array_query_param(returning)
|
351
|
+
response = update_entry_template.sync_detailed(
|
352
|
+
client=self.client,
|
353
|
+
entry_template_id=entry_template_id,
|
354
|
+
json_body=entry_template,
|
355
|
+
returning=none_as_unset(returning_string),
|
356
|
+
)
|
357
|
+
return model_from_detailed(response)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
-
from
|
3
|
+
from functools import cached_property
|
4
|
+
from typing import TYPE_CHECKING
|
4
5
|
|
5
6
|
from benchling_api_client.v2.stable.client import Client
|
6
7
|
|
@@ -9,7 +10,6 @@ from benchling_sdk.helpers.retry_helpers import RetryStrategy
|
|
9
10
|
|
10
11
|
if TYPE_CHECKING:
|
11
12
|
from benchling_sdk.services.v2.alpha.v2_alpha_app_service import V2AlphaAppService
|
12
|
-
from benchling_sdk.services.v2.alpha.v2_alpha_dna_sequence_service import V2AlphaDnaSequenceService
|
13
13
|
|
14
14
|
from benchling_sdk.services.v2.base_service import BaseService
|
15
15
|
|
@@ -23,8 +23,6 @@ class V2AlphaService(BaseService):
|
|
23
23
|
See https://benchling.com/api/v2-alpha/reference
|
24
24
|
"""
|
25
25
|
|
26
|
-
_app_service: Optional[V2AlphaAppService]
|
27
|
-
_dna_sequence_service: Optional[V2AlphaDnaSequenceService]
|
28
26
|
_alpha_client: Client
|
29
27
|
|
30
28
|
def __init__(self, client: Client, retry_strategy: RetryStrategy = RetryStrategy()):
|
@@ -36,10 +34,8 @@ class V2AlphaService(BaseService):
|
|
36
34
|
"""
|
37
35
|
super().__init__(client, retry_strategy)
|
38
36
|
self._alpha_client = v2_alpha_client(self.client)
|
39
|
-
self._app_service = None
|
40
|
-
self._dna_sequence_service = None
|
41
37
|
|
42
|
-
@
|
38
|
+
@cached_property
|
43
39
|
def apps(self) -> V2AlphaAppService:
|
44
40
|
"""
|
45
41
|
V2-Alpha Apps.
|
@@ -48,26 +44,10 @@ class V2AlphaService(BaseService):
|
|
48
44
|
|
49
45
|
https://benchling.com/api/v2-alpha/reference?stability=not-available#/Apps
|
50
46
|
"""
|
51
|
-
|
52
|
-
from benchling_sdk.services.v2.alpha.v2_alpha_app_service import V2AlphaAppService
|
47
|
+
from .alpha.v2_alpha_app_service import V2AlphaAppService
|
53
48
|
|
54
|
-
|
55
|
-
return self._app_service
|
49
|
+
return self._create_service(V2AlphaAppService)
|
56
50
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
V2-Alpha DNA Sequences.
|
61
|
-
|
62
|
-
DNA sequences are the bread and butter of the Benchling Molecular Biology suite. On Benchling, these are
|
63
|
-
comprised of a string of nucleotides and collections of other attributes, such as annotations and primers.
|
64
|
-
|
65
|
-
See https://benchling.com/api/v2-alpha/reference#/DNA%20Sequences
|
66
|
-
"""
|
67
|
-
if self._dna_sequence_service is None:
|
68
|
-
from benchling_sdk.services.v2.alpha.v2_alpha_dna_sequence_service import (
|
69
|
-
V2AlphaDnaSequenceService,
|
70
|
-
)
|
71
|
-
|
72
|
-
self._dna_sequence_service = V2AlphaDnaSequenceService(self._alpha_client, self._retry_strategy)
|
73
|
-
return self._dna_sequence_service
|
51
|
+
def _create_service(self, cls):
|
52
|
+
"""Instantiate a service using the alpha client."""
|
53
|
+
return cls(self._alpha_client, self._retry_strategy)
|