fusion-platform-python-sdk 2.2.2__py3-none-any.whl → 2.2.3__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.
@@ -11,8 +11,8 @@ API, and this is defined within the corresponding OpenAPI 3.0 specification, whi
11
11
  """
12
12
 
13
13
  # Do not modify the following two lines as they are maintained by the version.sh script.
14
- __version__ = '2.2.2'
15
- __version_date__ = '2026-04-28T07:42:59Z'
14
+ __version__ = '2.2.3'
15
+ __version_date__ = '2026-06-09T08:34:54Z'
16
16
 
17
17
  # Exclude certain sub-modules from documentation.
18
18
  # @formatter:off
@@ -588,7 +588,7 @@ class Process(Model):
588
588
  break
589
589
 
590
590
  if found_dispatcher is None:
591
- raise ModelError(i18n.t('models.process.cannot_find_dispatcher'))
591
+ raise ModelError(i18n.t('models.process.cannot_find_dispatcher', dispatcher=name if name is not None else number))
592
592
 
593
593
  # Add the dispatcher to the end of the existing list.
594
594
  dispatchers = list(self._model.get(self.__class__._FIELD_DISPATCHERS, [])) # Convert read-only tuple to list, so we can modify it.
@@ -850,7 +850,7 @@ class Process(Model):
850
850
  break
851
851
 
852
852
  if found_dispatcher is None:
853
- raise ModelError(i18n.t('models.process.cannot_find_dispatcher'))
853
+ raise ModelError(i18n.t('models.process.cannot_find_dispatcher', dispatcher=number))
854
854
 
855
855
  # Remove the dispatcher from the existing list.
856
856
  dispatchers = list(self._model.get(self.__class__._FIELD_DISPATCHERS, [])) # Convert read-only tuple to list, so we can modify it.
@@ -899,7 +899,7 @@ class Process(Model):
899
899
  break
900
900
 
901
901
  if found_dispatcher is None:
902
- raise ModelError(i18n.t('models.process.cannot_find_dispatcher'))
902
+ raise ModelError(i18n.t('models.process.cannot_find_dispatcher', dispatcher=number))
903
903
 
904
904
  # Get the dispatcher so that it can be modified.
905
905
  dispatchers = list(self._model.get(self.__class__._FIELD_DISPATCHERS, [])) # Convert read-only tuple to list, so we can access it.
@@ -921,7 +921,7 @@ class Process(Model):
921
921
  break
922
922
 
923
923
  if found_option is None:
924
- raise ModelError(i18n.t('models.process.cannot_find_option'))
924
+ raise ModelError(i18n.t('models.process.cannot_find_dispatcher_option', option=option_name))
925
925
 
926
926
  # We can now update the option. All options are expressed as strings with the correct format.
927
927
  option_value = Option.get_option_value(found_option, value, coerce_value)
@@ -981,7 +981,7 @@ class Process(Model):
981
981
  break
982
982
 
983
983
  if found_input is None:
984
- raise ModelError(i18n.t('models.process.cannot_find_input'))
984
+ raise ModelError(i18n.t('models.process.cannot_find_input', input=input.input if input is not None else number))
985
985
 
986
986
  # Check that all the files in the data object are ready to be used. Along the way, pick out the first file type.
987
987
  found_file_type = None
@@ -1041,7 +1041,7 @@ class Process(Model):
1041
1041
  break
1042
1042
 
1043
1043
  if found_option is None:
1044
- raise ModelError(i18n.t('models.process.cannot_find_option'))
1044
+ raise ModelError(i18n.t('models.process.cannot_find_option', option=option.name if option is not None else name))
1045
1045
 
1046
1046
  # We can now update the option. All options are expressed as strings with the correct format.
1047
1047
  option_value = Option.get_option_value(found_option, value, coerce_value)
@@ -306,9 +306,10 @@ i18n.add_translation('models.process.execution_stopped', 'Process execution has
306
306
  i18n.add_translation('models.process.wrong_file_type', 'File type of supplied data object (%{actual}) does not match the file type for the input (%{expected})', 'en')
307
307
  i18n.add_translation('models.process.data_not_ready', 'Data object is not ready to be used in a process', 'en')
308
308
  i18n.add_translation('models.process.option_wrong_type', 'Option value should be of type %{type}', 'en')
309
- i18n.add_translation('models.process.cannot_find_option', 'No such option', 'en')
310
- i18n.add_translation('models.process.cannot_find_input', 'No such input', 'en')
311
- i18n.add_translation('models.process.cannot_find_dispatcher', 'No such dispatcher', 'en')
309
+ i18n.add_translation('models.process.cannot_find_dispatcher_option', 'No such dispatcher option \'%{option}\'', 'en')
310
+ i18n.add_translation('models.process.cannot_find_option', 'No such option \'%{option}\'', 'en')
311
+ i18n.add_translation('models.process.cannot_find_input', 'No such input %{input}', 'en')
312
+ i18n.add_translation('models.process.cannot_find_dispatcher', 'No such dispatcher \'%{dispatcher}\'', 'en')
312
313
  i18n.add_translation('models.process.option_not_specified', 'Option name or object must be provided to set option', 'en')
313
314
  i18n.add_translation('models.process.data_not_specified', 'Data object must be provided to set input', 'en')
314
315
  i18n.add_translation('models.process.input_not_specified', 'Input number or object must be provided to set input', 'en')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fusion-platform-python-sdk
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: Python SDK used to interact with the Fusion Platform(r)
5
5
  Home-page: https://github.com/d-cat-support/fusion-platform-python-sdk
6
6
  Author: Digital Content Analysis Technology Ltd
@@ -1,4 +1,4 @@
1
- fusion_platform/__init__.py,sha256=FmWrrWcyGr0t9Ngs1gP7iAOznqxaOQA_oqamCc-AA08,7410
1
+ fusion_platform/__init__.py,sha256=tWZE-34xNrnsJE_SOWmvnq_6DlOa49UdX1PVa4E_Yl8,7410
2
2
  fusion_platform/__main__.py,sha256=R5HbEtVMEtyv4BqWpn1cob-wJ2-g9IFhwP1WGDLF79g,266
3
3
  fusion_platform/base.py,sha256=QsVxjk4sXrcFB6zcH6dmP4BL956bXVFE_ksO-LmlhSk,1456
4
4
  fusion_platform/command.py,sha256=onfCrT_jJ7YFL6MA7Xch7uAGTtrJ8bjMzSgZB5k8Udo,92328
@@ -11,7 +11,7 @@ fusion_platform/localisations.py,sha256=fq7kFJjEXT2S0HDhkjV5hiDoxOLJ_i-FIpq2LqrS
11
11
  fusion_platform/localise.py,sha256=TDG3b9OnqxmYu7jSFaxvy3KPwUD9Llg-qYHxDc5KiyY,1189
12
12
  fusion_platform/quick_example.py,sha256=KLb-dydYzVW_kDGf7pyFWugnVEeI69sBm3Ss0Et5HZ0,1891
13
13
  fusion_platform/session.py,sha256=dmArPmniTreSU-cOyw1OHqVhtbViqwdA9VR9P6GdWxk,12440
14
- fusion_platform/translations.py,sha256=8NIbw3VW7OglWXBoncKSVlzB3vQNkQw27-vqQiQnQN8,25740
14
+ fusion_platform/translations.py,sha256=ao4Xz_1XoVtW2QCkNscG31vf_vYBnXSSuy927gYlTec,25899
15
15
  fusion_platform/common/__init__.py,sha256=7hmOi1N27eeAQd8sA07nm4cs4lltqMrviO7giRFEGmc,133
16
16
  fusion_platform/common/raise_thread.py,sha256=I3jn39VLK6LM-Q8ou-OzLk37yjABTIeklTwakO4If9Y,1398
17
17
  fusion_platform/common/utilities.py,sha256=LCVIWF0CzNEhlug5e2PHuGfH0XSZ7V-GtlHWV1G8RyQ,6590
@@ -27,7 +27,7 @@ fusion_platform/models/model.py,sha256=jw1qs3CkGENwmdRMSgbCcYuEp8XGBhpDUxizf-lzB
27
27
  fusion_platform/models/organisation.md,sha256=sEqpImqM4H7T1D_0LuUVuMD_BaWSuPL5m-P0O13Qruw,1475
28
28
  fusion_platform/models/organisation.py,sha256=r8u7NNzh0jlcSC_QEfO8nA-ZRNz0D50AtYZTk-LoRNk,14968
29
29
  fusion_platform/models/process.md,sha256=ipC6yu3v1SC5yO5c58LO5CVclihp_osZCLNMvQvPUhE,2154
30
- fusion_platform/models/process.py,sha256=mNe4WmUYzTV7eDZGZRU7IBLLno6-Kp-GLLgY6Wj0A6A,52545
30
+ fusion_platform/models/process.py,sha256=9H4XQVlQEfTXc0KbgHO44gHzGTcREuhbDhVmARt0LE8,52767
31
31
  fusion_platform/models/process_execution.md,sha256=mM1yj4iJ4XCOo6i_dqq1ck8vJkkXxhK1R19odxOjLHo,2666
32
32
  fusion_platform/models/process_execution.py,sha256=jFWo9L980yWK1wRcSNIzHC7P-NoFgv2M9KKF1yXhL7Y,9329
33
33
  fusion_platform/models/process_service_execution.md,sha256=upWQZ7MJ6O79tXK8fI7NvAet0XsQfwC8O2u5SURsT-A,4062
@@ -38,9 +38,9 @@ fusion_platform/models/service.md,sha256=qgZp9lEclkLT3vUDvd5SybysbnfBs0IuW3YdTup
38
38
  fusion_platform/models/service.py,sha256=xTJY7EvlGgvnhGToWH4xH_Br4Xf1ur70UimkYd5qB_g,10099
39
39
  fusion_platform/models/user.md,sha256=yTJwkwZX6ub_rL7UoJdf_FwsV4AIlDgilR5jehy9nEg,1063
40
40
  fusion_platform/models/user.py,sha256=O9J6944eKXgIaJqiaAI8ctb4i_liqPFtc3FteFsMfg0,5630
41
- fusion_platform_python_sdk-2.2.2.dist-info/licenses/LICENSE.txt,sha256=rRNH3lp1zmb02PJQpWFHR49EXtRGPGEcb-T-RVR9Hf8,1096
42
- fusion_platform_python_sdk-2.2.2.dist-info/METADATA,sha256=WjnLCoW234ewtD8gSMe5iQ9jHbczJ2xLVgwgOz17-ow,5634
43
- fusion_platform_python_sdk-2.2.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
44
- fusion_platform_python_sdk-2.2.2.dist-info/entry_points.txt,sha256=YbiPXiDDcEXfVTUXFpyojkMdN17Xe_0k_W5ia2J4ENU,65
45
- fusion_platform_python_sdk-2.2.2.dist-info/top_level.txt,sha256=0fI4dcqLKd-KNt6Q20mOYdO2eVDM5r8YJmwzUT2ot2c,16
46
- fusion_platform_python_sdk-2.2.2.dist-info/RECORD,,
41
+ fusion_platform_python_sdk-2.2.3.dist-info/licenses/LICENSE.txt,sha256=rRNH3lp1zmb02PJQpWFHR49EXtRGPGEcb-T-RVR9Hf8,1096
42
+ fusion_platform_python_sdk-2.2.3.dist-info/METADATA,sha256=CJb7_gg0VlpBfxAPqe8roqdDbLOVxEzHFYR9JC9dOh8,5634
43
+ fusion_platform_python_sdk-2.2.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
44
+ fusion_platform_python_sdk-2.2.3.dist-info/entry_points.txt,sha256=YbiPXiDDcEXfVTUXFpyojkMdN17Xe_0k_W5ia2J4ENU,65
45
+ fusion_platform_python_sdk-2.2.3.dist-info/top_level.txt,sha256=0fI4dcqLKd-KNt6Q20mOYdO2eVDM5r8YJmwzUT2ot2c,16
46
+ fusion_platform_python_sdk-2.2.3.dist-info/RECORD,,