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.
@@ -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
- @property
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
- if self._v2_service is None:
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._v2_service
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
  """