iqm-station-control-client 3.9__py3-none-any.whl → 3.11__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.
@@ -148,10 +148,16 @@ class StationControlClient:
148
148
  self.root_url = root_url
149
149
  self._enable_opentelemetry = os.environ.get("JAEGER_OPENTELEMETRY_COLLECTOR_ENDPOINT", None) is not None
150
150
  self._get_token_callback = get_token_callback
151
+ # TODO SW-1387: Remove this when using v1 API, not needed
151
152
  self._check_api_versions()
152
153
  qcm_url = os.environ.get("CHIP_DESIGN_RECORD_FALLBACK_URL", None)
153
154
  self._qcm_data_client = QCMDataClient(qcm_url) if qcm_url else None
154
155
 
156
+ @property
157
+ def version(self):
158
+ """Return the version of the station control API this client is using."""
159
+ return "v1"
160
+
155
161
  @cache
156
162
  def get_about(self) -> dict:
157
163
  """Return information about the station control."""
@@ -679,6 +685,8 @@ class StationControlClient:
679
685
  # Remove None and {} values
680
686
  http_request_options = {key: value for key, value in http_request_options.items() if value not in [None, {}]}
681
687
  url = f"{self.root_url}/{url_path}"
688
+ # TODO SW-1387: Use v1 API
689
+ # url = f"{self.root_url}/{self.version}/{url_path}"
682
690
  response = http_method(url, **http_request_options)
683
691
  if not response.ok:
684
692
  try:
@@ -691,6 +699,7 @@ class StationControlClient:
691
699
  raise error_class(error_message)
692
700
  return response
693
701
 
702
+ # TODO SW-1387: Remove this when using v1 API, not needed
694
703
  def _check_api_versions(self):
695
704
  client_api_version = self._get_client_api_version()
696
705
  # Parse versions using standard packaging.version implementation.
@@ -720,6 +729,7 @@ class StationControlClient:
720
729
  server_api_version,
721
730
  )
722
731
 
732
+ # TODO SW-1387: Remove this when using v1 API, not needed
723
733
  @staticmethod
724
734
  def _get_client_api_version() -> Version:
725
735
  return parse(version("iqm-station-control-client"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-station-control-client
3
- Version: 3.9
3
+ Version: 3.11
4
4
  Summary: Python client for communicating with Station Control Service
5
5
  Author-email: IQM Finland Oy <info@meetiqm.com>
6
6
  License: Apache License
@@ -1,6 +1,6 @@
1
1
  iqm/station_control/client/__init__.py,sha256=BmBIBdZa10r-IWCFzZ1-0DG6GQKPIXqGXltfXop4ZeQ,942
2
2
  iqm/station_control/client/list_models.py,sha256=SjD0DbCrM9z1SSuGoQS83lyJmDLuMOatpJUoW8itW9s,2335
3
- iqm/station_control/client/station_control.py,sha256=HN7zI20F3KHqKYiQQ9_oBrzAmgD93-heXjkjrENx3CQ,33872
3
+ iqm/station_control/client/station_control.py,sha256=vMnreheUnxP_EGn0qfOfN0-gnSKgU_bNvsUyWwCEBKw,34298
4
4
  iqm/station_control/client/utils.py,sha256=3VVLCXt6rcKNQc4HerlMxpxkRfTFMYCwOQHF2DS1OG8,1143
5
5
  iqm/station_control/client/serializers/__init__.py,sha256=8os3EGOtNTRFaviZdGwDyMt9GUpM3ZP7icPKAxOg1qg,1438
6
6
  iqm/station_control/client/serializers/channel_property_serializer.py,sha256=ChlX8B-blM5hjv3pUExHOd-vE3O_myPwILu36KZYYNU,7121
@@ -22,8 +22,8 @@ iqm/station_control/interface/models/run.py,sha256=m-iE3QMPQUOF7bsw8JCAM1Bd6bDVh
22
22
  iqm/station_control/interface/models/sequence.py,sha256=uOqMwF1x-vW6UHs2WnPD3PsuSgV3a8OTAsgn_4UENLw,2723
23
23
  iqm/station_control/interface/models/sweep.py,sha256=6SQ4Ty4_Rm1KTeR7YfrLmwyD-AnNE495LMxYu8dM4Ko,2947
24
24
  iqm/station_control/interface/models/type_aliases.py,sha256=3LB9viZVi8osavY5kKF8TH1crayG7-MLjgBqXDCqL2s,1018
25
- iqm_station_control_client-3.9.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
26
- iqm_station_control_client-3.9.dist-info/METADATA,sha256=nBBcY4jPgNnB_MlXpBAGL30nCDQPpSp5fbxk95yB2CI,13971
27
- iqm_station_control_client-3.9.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
28
- iqm_station_control_client-3.9.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
29
- iqm_station_control_client-3.9.dist-info/RECORD,,
25
+ iqm_station_control_client-3.11.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
26
+ iqm_station_control_client-3.11.dist-info/METADATA,sha256=nxvBOAcawccoBYwoGBw54gB3M2GWmfQe-miB7bgtwPw,13972
27
+ iqm_station_control_client-3.11.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
28
+ iqm_station_control_client-3.11.dist-info/top_level.txt,sha256=NB4XRfyDS6_wG9gMsyX-9LTU7kWnTQxNvkbzIxGv3-c,4
29
+ iqm_station_control_client-3.11.dist-info/RECORD,,