benchling-sdk 1.13.0a1__py3-none-any.whl → 1.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.
- benchling_sdk/benchling.py +30 -6
- benchling_sdk/models/__init__.py +176 -44
- benchling_sdk/models/webhooks/v0/__init__.py +526 -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 +26 -0
- benchling_sdk/services/v2/stable/entry_service.py +23 -0
- benchling_sdk/services/v2/stable/workflow_flowchart_config_version_service.py +32 -0
- benchling_sdk/services/v2/stable/workflow_flowchart_service.py +85 -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 +165 -335
- benchling_sdk/services/v2_service.py +17 -11
- {benchling_sdk-1.13.0a1.dist-info → benchling_sdk-1.14.0.dist-info}/METADATA +2 -2
- {benchling_sdk-1.13.0a1.dist-info → benchling_sdk-1.14.0.dist-info}/RECORD +17 -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.0a1.dist-info → benchling_sdk-1.14.0.dist-info}/LICENSE +0 -0
- {benchling_sdk-1.13.0a1.dist-info → benchling_sdk-1.14.0.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
|
@@ -53,6 +54,10 @@ if TYPE_CHECKING:
|
|
53
54
|
from benchling_sdk.services.v2.stable.team_service import TeamService
|
54
55
|
from benchling_sdk.services.v2.stable.user_service import UserService
|
55
56
|
from benchling_sdk.services.v2.stable.warehouse_service import WarehouseService
|
57
|
+
from benchling_sdk.services.v2.stable.workflow_flowchart_config_version_service import (
|
58
|
+
WorkflowFlowchartConfigVersionService,
|
59
|
+
)
|
60
|
+
from benchling_sdk.services.v2.stable.workflow_flowchart_service import WorkflowFlowchartService
|
56
61
|
from benchling_sdk.services.v2.stable.workflow_output_service import WorkflowOutputService
|
57
62
|
from benchling_sdk.services.v2.stable.workflow_task_group_service import WorkflowTaskGroupService
|
58
63
|
from benchling_sdk.services.v2.stable.workflow_task_service import WorkflowTaskService
|
@@ -154,19 +159,16 @@ class Benchling(object):
|
|
154
159
|
"""
|
155
160
|
return self._client
|
156
161
|
|
157
|
-
@
|
162
|
+
@cached_property
|
158
163
|
def v2(self) -> V2Service:
|
159
164
|
"""
|
160
165
|
V2.
|
161
166
|
|
162
167
|
Namespace containing support for the V2 Benchling API.
|
163
168
|
"""
|
164
|
-
|
165
|
-
from benchling_sdk.services.v2_service import V2Service
|
166
|
-
|
167
|
-
self._v2_service = V2Service(self._client, retry_strategy=self._retry_strategy)
|
169
|
+
from benchling_sdk.services.v2_service import V2Service
|
168
170
|
|
169
|
-
return self.
|
171
|
+
return V2Service(self._client, retry_strategy=self._retry_strategy)
|
170
172
|
|
171
173
|
# ------------------------------------------------------------------------------------
|
172
174
|
# Kept for compatibility and ease of access. New services should be added in services.v2.stable and
|
@@ -674,6 +676,28 @@ class Benchling(object):
|
|
674
676
|
"""
|
675
677
|
return self.v2.stable.warehouse
|
676
678
|
|
679
|
+
@property
|
680
|
+
def workflow_flowcharts(self) -> WorkflowFlowchartService:
|
681
|
+
"""
|
682
|
+
Workflow Flowcharts.
|
683
|
+
|
684
|
+
Workflow flowcharts represent the nodes and edges that a flowchart is comprised of.
|
685
|
+
|
686
|
+
See https://benchling.com/api/reference#/Workflow%20Flowcharts
|
687
|
+
"""
|
688
|
+
return self.v2.stable.workflow_flowcharts
|
689
|
+
|
690
|
+
@property
|
691
|
+
def workflow_flowchart_config_versions(self) -> WorkflowFlowchartConfigVersionService:
|
692
|
+
"""
|
693
|
+
Workflow Flowchart Config Versions.
|
694
|
+
|
695
|
+
Workflow flowchart config versions are versioned graphs of flowchart configurations.
|
696
|
+
|
697
|
+
See https://benchling.com/api/reference#/Workflow%20Flowchart%20Config%20Versions
|
698
|
+
"""
|
699
|
+
return self.v2.stable.workflow_flowchart_config_versions
|
700
|
+
|
677
701
|
@property
|
678
702
|
def workflow_outputs(self) -> WorkflowOutputService:
|
679
703
|
"""
|