synapse-sdk 1.0.0a32__tar.gz → 1.0.0a33__tar.gz

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.

Potentially problematic release.


This version of synapse-sdk might be problematic. Click here for more details.

Files changed (153) hide show
  1. {synapse_sdk-1.0.0a32/synapse_sdk.egg-info → synapse_sdk-1.0.0a33}/PKG-INFO +1 -1
  2. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/backend/__init__.py +2 -0
  3. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/backend/annotation.py +4 -4
  4. synapse_sdk-1.0.0a33/synapse_sdk/clients/backend/hitl.py +17 -0
  5. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/backend/integration.py +3 -1
  6. synapse_sdk-1.0.0a33/synapse_sdk/clients/backend/models.py +44 -0
  7. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/base.py +56 -9
  8. synapse_sdk-1.0.0a33/synapse_sdk/plugins/categories/export/actions/export.py +222 -0
  9. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/export/templates/plugin/export.py +6 -6
  10. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/smart_tool/templates/config.yaml +2 -0
  11. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/storage/__init__.py +9 -1
  12. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33/synapse_sdk.egg-info}/PKG-INFO +1 -1
  13. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk.egg-info/SOURCES.txt +6 -1
  14. synapse_sdk-1.0.0a33/tests/clients/test_backend_models.py +74 -0
  15. synapse_sdk-1.0.0a33/tests/clients/test_base_client.py +46 -0
  16. synapse_sdk-1.0.0a33/tests/utils/__init__,py +0 -0
  17. synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/export/actions/export.py +0 -82
  18. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/.github/workflows/lint.yml +0 -0
  19. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/.github/workflows/pypi-publish.yml +0 -0
  20. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/.gitignore +0 -0
  21. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/.pre-commit-config.yaml +0 -0
  22. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/LICENSE +0 -0
  23. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/README.md +0 -0
  24. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/locale/en/LC_MESSAGES/messages.mo +0 -0
  25. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/locale/en/LC_MESSAGES/messages.po +0 -0
  26. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/locale/ko/LC_MESSAGES/messages.mo +0 -0
  27. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/locale/ko/LC_MESSAGES/messages.po +0 -0
  28. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/pyproject.toml +0 -0
  29. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/requirements.test.txt +0 -0
  30. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/requirements.txt +0 -0
  31. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/setup.cfg +0 -0
  32. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/__init__.py +0 -0
  33. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/__init__.py +0 -0
  34. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/alias/__init__.py +0 -0
  35. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/alias/create.py +0 -0
  36. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/alias/dataclass.py +0 -0
  37. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/alias/default.py +0 -0
  38. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/alias/delete.py +0 -0
  39. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/alias/list.py +0 -0
  40. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/alias/read.py +0 -0
  41. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/alias/update.py +0 -0
  42. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/alias/utils.py +0 -0
  43. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/plugin/__init__.py +0 -0
  44. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/plugin/create.py +0 -0
  45. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/plugin/publish.py +0 -0
  46. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/cli/plugin/run.py +0 -0
  47. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/__init__.py +0 -0
  48. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/agent/__init__.py +0 -0
  49. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/agent/core.py +0 -0
  50. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/agent/ray.py +0 -0
  51. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/agent/service.py +0 -0
  52. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/backend/core.py +0 -0
  53. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/backend/dataset.py +0 -0
  54. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/backend/ml.py +0 -0
  55. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/exceptions.py +0 -0
  56. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/ray/__init__.py +0 -0
  57. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/ray/core.py +0 -0
  58. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/ray/serve.py +0 -0
  59. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/clients/utils.py +0 -0
  60. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/i18n.py +0 -0
  61. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/loggers.py +0 -0
  62. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/__init__.py +0 -0
  63. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/__init__.py +0 -0
  64. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/base.py +0 -0
  65. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/data_validation/__init__.py +0 -0
  66. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/data_validation/actions/__init__.py +0 -0
  67. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/data_validation/actions/validation.py +0 -0
  68. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/data_validation/templates/config.yaml +0 -0
  69. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/data_validation/templates/plugin/__init__.py +0 -0
  70. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/data_validation/templates/plugin/validation.py +0 -0
  71. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/decorators.py +0 -0
  72. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/export/__init__.py +0 -0
  73. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/export/actions/__init__.py +0 -0
  74. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/export/templates/config.yaml +0 -0
  75. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/export/templates/plugin/__init__.py +0 -0
  76. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/__init__.py +0 -0
  77. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/actions/__init__.py +0 -0
  78. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/actions/deployment.py +0 -0
  79. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/actions/inference.py +0 -0
  80. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/actions/test.py +0 -0
  81. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/actions/train.py +0 -0
  82. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/base/__init__.py +0 -0
  83. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/base/inference.py +0 -0
  84. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/templates/config.yaml +0 -0
  85. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/templates/plugin/__init__.py +0 -0
  86. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/templates/plugin/inference.py +0 -0
  87. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/templates/plugin/test.py +0 -0
  88. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/neural_net/templates/plugin/train.py +0 -0
  89. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/post_annotation/__init__.py +0 -0
  90. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/post_annotation/actions/__init__.py +0 -0
  91. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/post_annotation/actions/post_annotation.py +0 -0
  92. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/post_annotation/templates/config.yaml +0 -0
  93. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/post_annotation/templates/plugin/__init__.py +0 -0
  94. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/post_annotation/templates/plugin/post_annotation.py +0 -0
  95. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/pre_annotation/__init__.py +0 -0
  96. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/pre_annotation/actions/__init__.py +0 -0
  97. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/pre_annotation/actions/pre_annotation.py +0 -0
  98. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/pre_annotation/templates/config.yaml +0 -0
  99. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/pre_annotation/templates/plugin/__init__.py +0 -0
  100. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/pre_annotation/templates/plugin/pre_annotation.py +0 -0
  101. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/registry.py +0 -0
  102. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/smart_tool/__init__.py +0 -0
  103. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/smart_tool/actions/__init__.py +0 -0
  104. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/smart_tool/actions/auto_label.py +0 -0
  105. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/smart_tool/templates/plugin/__init__.py +0 -0
  106. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/smart_tool/templates/plugin/auto_label.py +0 -0
  107. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/templates.py +0 -0
  108. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/upload/__init__.py +0 -0
  109. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/upload/actions/__init__.py +0 -0
  110. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/upload/actions/upload.py +0 -0
  111. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/upload/templates/config.yaml +0 -0
  112. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/upload/templates/plugin/__init__.py +0 -0
  113. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/categories/upload/templates/plugin/upload.py +0 -0
  114. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/enums.py +0 -0
  115. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/exceptions.py +0 -0
  116. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/models.py +0 -0
  117. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/templates/cookiecutter.json +0 -0
  118. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/templates/hooks/post_gen_project.py +0 -0
  119. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/templates/hooks/pre_prompt.py +0 -0
  120. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/.gitignore +0 -0
  121. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/.pre-commit-config.yaml +0 -0
  122. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/README.md +0 -0
  123. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/config.yaml +0 -0
  124. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/plugin/__init__.py +0 -0
  125. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/pyproject.toml +0 -0
  126. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/requirements.txt +0 -0
  127. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/upload.py +0 -0
  128. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/plugins/utils.py +0 -0
  129. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/shared/__init__.py +0 -0
  130. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/shared/enums.py +0 -0
  131. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/types.py +0 -0
  132. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/__init__.py +0 -0
  133. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/debug.py +0 -0
  134. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/file.py +0 -0
  135. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/module_loading.py +0 -0
  136. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/network.py +0 -0
  137. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/pydantic/__init__.py +0 -0
  138. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/pydantic/config.py +0 -0
  139. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/pydantic/errors.py +0 -0
  140. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/pydantic/validators.py +0 -0
  141. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/storage/providers/__init__.py +0 -0
  142. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/storage/providers/gcp.py +0 -0
  143. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/storage/providers/s3.py +0 -0
  144. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/storage/providers/sftp.py +0 -0
  145. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/storage/registry.py +0 -0
  146. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk/utils/string.py +0 -0
  147. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk.egg-info/dependency_links.txt +0 -0
  148. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk.egg-info/entry_points.txt +0 -0
  149. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk.egg-info/requires.txt +0 -0
  150. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/synapse_sdk.egg-info/top_level.txt +0 -0
  151. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/tests/__init__.py +0 -0
  152. {synapse_sdk-1.0.0a32/tests/utils → synapse_sdk-1.0.0a33/tests/clients}/__init__.py +0 -0
  153. {synapse_sdk-1.0.0a32 → synapse_sdk-1.0.0a33}/tests/utils/test_debug.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: synapse-sdk
3
- Version: 1.0.0a32
3
+ Version: 1.0.0a33
4
4
  Summary: synapse sdk
5
5
  Author-email: datamaker <developer@datamaker.io>
6
6
  License: MIT
@@ -1,6 +1,7 @@
1
1
  from synapse_sdk.clients.backend.annotation import AnnotationClientMixin
2
2
  from synapse_sdk.clients.backend.core import CoreClientMixin
3
3
  from synapse_sdk.clients.backend.dataset import DatasetClientMixin
4
+ from synapse_sdk.clients.backend.hitl import HITLClientMixin
4
5
  from synapse_sdk.clients.backend.integration import IntegrationClientMixin
5
6
  from synapse_sdk.clients.backend.ml import MLClientMixin
6
7
 
@@ -11,6 +12,7 @@ class BackendClient(
11
12
  DatasetClientMixin,
12
13
  IntegrationClientMixin,
13
14
  MLClientMixin,
15
+ HITLClientMixin,
14
16
  ):
15
17
  name = 'Backend'
16
18
  token = None
@@ -11,14 +11,14 @@ class AnnotationClientMixin(BaseClient):
11
11
  path = f'task_tags/{pk}/'
12
12
  return self._get(path)
13
13
 
14
- def list_task_tags(self, data):
14
+ def list_task_tags(self, params):
15
15
  path = 'task_tags/'
16
- return self._list(path, data=data)
16
+ return self._list(path, params=params)
17
17
 
18
- def list_tasks(self, data, url_conversion=None, list_all=False):
18
+ def list_tasks(self, params=None, url_conversion=None, list_all=False):
19
19
  path = 'tasks/'
20
20
  url_conversion = get_default_url_conversion(url_conversion, files_fields=['files'])
21
- return self._list(path, data=data, url_conversion=url_conversion, list_all=list_all)
21
+ return self._list(path, params=params, url_conversion=url_conversion, list_all=list_all)
22
22
 
23
23
  def create_tasks(self, data):
24
24
  path = 'tasks/'
@@ -0,0 +1,17 @@
1
+ from synapse_sdk.clients.base import BaseClient
2
+ from synapse_sdk.clients.utils import get_default_url_conversion
3
+
4
+
5
+ class HITLClientMixin(BaseClient):
6
+ def get_assignment(self, pk):
7
+ path = f'assignments/{pk}/'
8
+ return self._get(path)
9
+
10
+ def list_assignments(self, params=None, url_conversion=None, list_all=False):
11
+ path = 'assignments/'
12
+ url_conversion = get_default_url_conversion(url_conversion, files_fields=['files'])
13
+ return self._list(path, params=params, url_conversion=url_conversion, list_all=list_all)
14
+
15
+ def set_tags_assignments(self, data, params=None):
16
+ path = 'assignments/set_tags/'
17
+ return self._post(path, payload=data, params=params)
@@ -1,3 +1,4 @@
1
+ from synapse_sdk.clients.backend.models import Storage
1
2
  from synapse_sdk.clients.base import BaseClient
2
3
  from synapse_sdk.utils.file import convert_file_to_base64
3
4
 
@@ -79,5 +80,6 @@ class IntegrationClientMixin(BaseClient):
79
80
  return self._list(path, params=params, list_all=list_all)
80
81
 
81
82
  def get_storage(self, pk):
83
+ """Get specific storage data from synapse backend."""
82
84
  path = f'storages/{pk}/'
83
- return self._get(path)
85
+ return self._get(path, pydantic_model=Storage)
@@ -0,0 +1,44 @@
1
+ from enum import Enum
2
+ from typing import Dict
3
+
4
+ from pydantic import BaseModel
5
+
6
+
7
+ class StorageCategory(str, Enum):
8
+ """Synapse Backend Storage Category Enum."""
9
+
10
+ INTERNAL = 'internal'
11
+ EXTERNAL = 'external'
12
+
13
+
14
+ class StorageProvider(str, Enum):
15
+ """Synapse Backend Storage Provider Enum."""
16
+
17
+ AMAZON_S3 = 'amazon_s3'
18
+ AZURE = 'azure'
19
+ DIGITAL_OCEAN = 'digital_ocean'
20
+ FILE_SYSTEM = 'file_system'
21
+ FTP = 'ftp'
22
+ SFTP = 'sftp'
23
+ MINIO = 'minio'
24
+ GCP = 'gcp'
25
+
26
+
27
+ class Storage(BaseModel):
28
+ """Synapse Backend Storage Model.
29
+
30
+ Attrs:
31
+ id (int): The storage pk.
32
+ name (str): The storage name.
33
+ category (str): The storage category. (ex: internal, external)
34
+ provider (str): The storage provider. (ex: s3, gcp)
35
+ configuration (Dict): The storage configuration.
36
+ is_default (bool): The storage is default for Synapse backend workspace.
37
+ """
38
+
39
+ id: int
40
+ name: str
41
+ category: StorageCategory
42
+ provider: StorageProvider
43
+ configuration: Dict
44
+ is_default: bool
@@ -85,26 +85,59 @@ class BaseClient:
85
85
  except ValueError:
86
86
  return response.text
87
87
 
88
- def _get(self, path, url_conversion=None, **kwargs):
88
+ def _get(self, path, url_conversion=None, pydantic_model=None, **kwargs):
89
+ """
90
+ Perform a GET request and optionally convert response to a pydantic model.
91
+
92
+ Args:
93
+ path (str): URL path to request.
94
+ url_conversion (dict, optional): Configuration for URL to path conversion.
95
+ pydantic_model (Type, optional): Pydantic model to convert the response to.
96
+ **kwargs: Additional keyword arguments to pass to the request.
97
+
98
+ Returns:
99
+ The response data, optionally converted to a pydantic model.
100
+ """
89
101
  response = self._request('get', path, **kwargs)
102
+
90
103
  if url_conversion:
91
104
  if url_conversion['is_list']:
92
105
  files_url_to_path_from_objs(response['results'], **url_conversion, is_async=True)
93
106
  else:
94
107
  files_url_to_path_from_objs(response, **url_conversion)
108
+
109
+ if pydantic_model:
110
+ return self._validate_response_with_pydantic_model(response, pydantic_model)
111
+
95
112
  return response
96
113
 
97
- def _post(self, path, **kwargs):
98
- return self._request('post', path, **kwargs)
114
+ def _post(self, path, pydantic_model=None, **kwargs):
115
+ response = self._request('post', path, **kwargs)
116
+ if pydantic_model:
117
+ return self._validate_response_with_pydantic_model(response, pydantic_model)
118
+ else:
119
+ return response
99
120
 
100
- def _put(self, path, **kwargs):
101
- return self._request('put', path, **kwargs)
121
+ def _put(self, path, pydantic_model=None, **kwargs):
122
+ response = self._request('put', path, **kwargs)
123
+ if pydantic_model:
124
+ return self._validate_response_with_pydantic_model(response, pydantic_model)
125
+ else:
126
+ return response
102
127
 
103
- def _patch(self, path, **kwargs):
104
- return self._request('patch', path, **kwargs)
128
+ def _patch(self, path, pydantic_model=None, **kwargs):
129
+ response = self._request('patch', path, **kwargs)
130
+ if pydantic_model:
131
+ return self._validate_response_with_pydantic_model(response, pydantic_model)
132
+ else:
133
+ return response
105
134
 
106
- def _delete(self, path, **kwargs):
107
- return self._request('delete', path, **kwargs)
135
+ def _delete(self, path, pydantic_model=None, **kwargs):
136
+ response = self._request('delete', path, **kwargs)
137
+ if pydantic_model:
138
+ return self._validate_response_with_pydantic_model(response, pydantic_model)
139
+ else:
140
+ return response
108
141
 
109
142
  def _list(self, path, url_conversion=None, list_all=False, **kwargs):
110
143
  response = self._get(path, **kwargs)
@@ -121,3 +154,17 @@ class BaseClient:
121
154
 
122
155
  def exists(self, api, *args, **kwargs):
123
156
  return getattr(self, api)(*args, **kwargs)['count'] > 0
157
+
158
+ def _validate_response_with_pydantic_model(self, response, pydantic_model):
159
+ """Validate a response with a pydantic model."""
160
+ # Check if model is a pydantic model (has the __pydantic_model__ attribute)
161
+ if (
162
+ hasattr(pydantic_model, '__pydantic_model__')
163
+ or hasattr(pydantic_model, 'model_validate')
164
+ or hasattr(pydantic_model, 'parse_obj')
165
+ ):
166
+ pydantic_model.model_validate(response)
167
+ return response
168
+ else:
169
+ # Not a pydantic model
170
+ raise TypeError('The provided model is not a pydantic model')
@@ -0,0 +1,222 @@
1
+ from abc import ABC, abstractmethod
2
+ from typing import Any, Literal
3
+
4
+ from pydantic import BaseModel, field_validator
5
+ from pydantic_core import PydanticCustomError
6
+
7
+ from synapse_sdk.clients.exceptions import ClientError
8
+ from synapse_sdk.i18n import gettext as _
9
+ from synapse_sdk.plugins.categories.base import Action
10
+ from synapse_sdk.plugins.categories.decorators import register_action
11
+ from synapse_sdk.plugins.enums import PluginCategory, RunMethod
12
+ from synapse_sdk.utils.storage import get_pathlib
13
+
14
+
15
+ class ExportTargetHandler(ABC):
16
+ """
17
+ Abstract base class for handling export targets.
18
+
19
+ This class defines the blueprint for export target handlers, requiring the implementation
20
+ of methods to validate filters, retrieve results, and process collections of results.
21
+ """
22
+
23
+ @abstractmethod
24
+ def validate_filter(self, value: dict, client: Any):
25
+ """
26
+ Validate filter query params to request original data from api.
27
+
28
+ Args:
29
+ value (dict): The filter criteria to validate.
30
+ client (Any): The client used to validate the filter.
31
+
32
+ Raises:
33
+ PydanticCustomError: If the filter criteria are invalid.
34
+
35
+ Returns:
36
+ dict: The validated filter criteria.
37
+ """
38
+ pass
39
+
40
+ @abstractmethod
41
+ def get_results(self, client: Any, filters: dict):
42
+ """
43
+ Retrieve original data from target sources.
44
+
45
+ Args:
46
+ client (Any): The client used to retrieve the results.
47
+ filters (dict): The filter criteria to apply.
48
+
49
+ Returns:
50
+ tuple: A tuple containing the results and the total count of results.
51
+ """
52
+ pass
53
+
54
+ @abstractmethod
55
+ def get_export_item(self, results):
56
+ """
57
+ Providing elements to build export data.
58
+
59
+ Args:
60
+ results (list): The results to process.
61
+
62
+ Yields:
63
+ generator: A generator that yields processed data items.
64
+ """
65
+ pass
66
+
67
+
68
+ class AssignmentExportTargetHandler(ExportTargetHandler):
69
+ def validate_filter(self, value: dict, client: Any):
70
+ if 'project' not in value:
71
+ raise PydanticCustomError('missing_field', _('Project is required for Assignment.'))
72
+ try:
73
+ client.list_assignments(params=value)
74
+ except ClientError:
75
+ raise PydanticCustomError('client_error', _('Unable to get Assignment.'))
76
+ return value
77
+
78
+ def get_results(self, client: Any, filters: dict):
79
+ return client.list_assignments(params=filters, list_all=True)
80
+
81
+ def get_export_item(self, results):
82
+ for result in results:
83
+ yield {
84
+ 'data': result['data'],
85
+ 'files': result['file'],
86
+ 'id': result['id'],
87
+ }
88
+
89
+
90
+ class GroundTruthExportTargetHandler(ExportTargetHandler):
91
+ def validate_filter(self, value: dict, client: Any):
92
+ if 'ground_truth_dataset_version' not in value:
93
+ raise PydanticCustomError('missing_field', _('Ground Truth dataset version is required.'))
94
+ try:
95
+ client.get_ground_truth_version(value['ground_truth_dataset_version'])
96
+ except ClientError:
97
+ raise PydanticCustomError('client_error', _('Unable to get Ground Truth dataset version.'))
98
+ return value
99
+
100
+ def get_results(self, client: Any, filters: dict):
101
+ filters['ground_truth_dataset_versions'] = filters.pop('ground_truth_dataset_version')
102
+ return client.list_ground_truth_events(params=filters, list_all=True)
103
+
104
+ def get_export_item(self, results):
105
+ for result in results:
106
+ files_key = next(iter(result['data_unit']['files']))
107
+ yield {
108
+ 'data': result['data'],
109
+ 'files': result['data_unit']['files'][files_key],
110
+ 'id': result['ground_truth'],
111
+ }
112
+
113
+
114
+ class TaskExportTargetHandler(ExportTargetHandler):
115
+ def validate_filter(self, value: dict, client: Any):
116
+ if 'project' not in value:
117
+ raise PydanticCustomError('missing_field', _('Project is required for Task.'))
118
+ try:
119
+ client.list_tasks(params=value)
120
+ except ClientError:
121
+ raise PydanticCustomError('client_error', _('Unable to get Task.'))
122
+ return value
123
+
124
+ def get_results(self, client: Any, filters: dict):
125
+ filters['expand'] = 'data_unit'
126
+ return client.list_tasks(params=filters, list_all=True)
127
+
128
+ def get_export_item(self, results):
129
+ for result in results:
130
+ files_key = next(iter(result['data_unit']['files']))
131
+ yield {
132
+ 'data': result['data'],
133
+ 'files': result['data_unit']['files'][files_key],
134
+ 'id': result['id'],
135
+ }
136
+
137
+
138
+ class TargetHandlerFactory:
139
+ @staticmethod
140
+ def get_handler(target: str) -> ExportTargetHandler:
141
+ if target == 'assignment':
142
+ return AssignmentExportTargetHandler()
143
+ elif target == 'ground_truth':
144
+ return GroundTruthExportTargetHandler()
145
+ elif target == 'task':
146
+ return TaskExportTargetHandler()
147
+ else:
148
+ raise ValueError(f'Unknown target: {target}')
149
+
150
+
151
+ class ExportParams(BaseModel):
152
+ """
153
+ Parameters for the export action.
154
+
155
+ Attributes:
156
+ storage (int): The storage ID to save the exported data.
157
+ save_original_file (bool): Whether to save the original file.
158
+ path (str): The path to save the exported data.
159
+ target (str): The target source to export data from. (ex. ground_truth, assignment, task)
160
+ filter (dict): The filter criteria to apply.
161
+ """
162
+
163
+ storage: int
164
+ save_original_file: bool = True
165
+ path: str
166
+ target: Literal['assignment', 'ground_truth', 'task']
167
+ filter: dict
168
+
169
+ @field_validator('storage')
170
+ @staticmethod
171
+ def check_storage_exists(value, info):
172
+ action = info.context['action']
173
+ client = action.client
174
+ try:
175
+ client.get_storage(value)
176
+ except ClientError:
177
+ raise PydanticCustomError('client_error', _('Unable to get storage from Synapse backend.'))
178
+ return value
179
+
180
+ @field_validator('filter')
181
+ @staticmethod
182
+ def check_filter_by_target(value, info):
183
+ action = info.context['action']
184
+ client = action.client
185
+ target = action.params['target']
186
+ handler = TargetHandlerFactory.get_handler(target)
187
+ return handler.validate_filter(value, client)
188
+
189
+
190
+ @register_action
191
+ class ExportAction(Action):
192
+ name = 'export'
193
+ category = PluginCategory.EXPORT
194
+ method = RunMethod.JOB
195
+ params_model = ExportParams
196
+ progress_categories = {
197
+ 'dataset_conversion': {
198
+ 'proportion': 100,
199
+ }
200
+ }
201
+
202
+ def get_filtered_results(self, filters, handler):
203
+ """Get filtered target results."""
204
+ try:
205
+ result_list = handler.get_results(self.client, filters)
206
+ results = result_list[0]
207
+ count = result_list[1]
208
+ except ClientError:
209
+ raise PydanticCustomError('client_error', _('Unable to get Ground Truth dataset.'))
210
+ return results, count
211
+
212
+ def start(self):
213
+ filters = {'expand': 'data', **self.params['filter']}
214
+ target = self.params['target']
215
+ handler = TargetHandlerFactory.get_handler(target)
216
+
217
+ self.params['results'], self.params['count'] = self.get_filtered_results(filters, handler)
218
+ export_items = handler.get_export_item(self.params['results'])
219
+
220
+ storage = self.client.get_storage(self.params['storage'])
221
+ pathlib_cwd = get_pathlib(storage, self.params['path'])
222
+ return self.entrypoint(self.run, export_items, pathlib_cwd, **self.params)
@@ -4,12 +4,12 @@ from pathlib import Path
4
4
  import requests
5
5
 
6
6
 
7
- def export(run, input_dataset, path_root, **params):
7
+ def export(run, export_items, path_root, **params):
8
8
  """Executes the export task.
9
9
 
10
10
  Args:
11
11
  run : Execution object
12
- input_dataset (generator):
12
+ export_items (generator):
13
13
  - data (dict): dm_schema_data information.
14
14
  - files (dict): File information. Includes file URL, original file path, metadata, etc.
15
15
  - id (int): ground_truth ID
@@ -42,11 +42,11 @@ def export(run, input_dataset, path_root, **params):
42
42
  total = params['count']
43
43
  # progress init
44
44
  run.set_progress(0, total, category='dataset_conversion')
45
- for no, input_data in enumerate(input_dataset, start=1):
45
+ for no, export_item in enumerate(export_items, start=1):
46
46
  run.set_progress(no, total, category='dataset_conversion')
47
47
  if no == 1:
48
48
  run.log_message('Converting dataset.')
49
- preprocessed_data = before_convert(input_data)
49
+ preprocessed_data = before_convert(export_item)
50
50
  converted_data = convert_data(preprocessed_data)
51
51
  final_data = after_convert(converted_data)
52
52
 
@@ -97,7 +97,7 @@ def get_original_file_pathlib(files):
97
97
  Returns:
98
98
  pathlib.Path: The original file path extracted from the metadata.
99
99
  """
100
- return Path(next(iter(files.values()))['meta']['path_original'])
100
+ return Path(files['meta']['path_original'])
101
101
 
102
102
 
103
103
  def save_original_file(result, base_path, error_file_list):
@@ -108,7 +108,7 @@ def save_original_file(result, base_path, error_file_list):
108
108
  base_path (Path): The directory where the file will be saved.
109
109
  error_file_list (list): A list to store error files.
110
110
  """
111
- file_url = next(iter(result['files'].values()))['url']
111
+ file_url = result['files']['url']
112
112
  file_name = get_original_file_pathlib(result['files']).name
113
113
  response = requests.get(file_url)
114
114
  try:
@@ -6,3 +6,5 @@ actions:
6
6
  entrypoint: plugin.auto_label.MyAutoLabel
7
7
  model:
8
8
  neural_net__plugin__code: sam2
9
+ ui_schema: |
10
+ Dumped FormKit Schema for auto_label action
@@ -6,13 +6,21 @@ from synapse_sdk.utils.storage.registry import STORAGE_PROVIDERS
6
6
 
7
7
 
8
8
  def get_storage(connection_param: str | dict):
9
+ """Get storage class with connection param.
10
+
11
+ Args:
12
+ connection_param (str | dict): The connection param for the Storage provider.
13
+
14
+ Returns:
15
+ BaseStorage: The storage class object with connection param.
16
+ """
9
17
  storage_scheme = None
10
18
  if isinstance(connection_param, dict):
11
19
  storage_scheme = connection_param['provider']
12
20
  else:
13
21
  storage_scheme = urlparse(connection_param).scheme
14
22
 
15
- assert storage_scheme in STORAGE_PROVIDERS.keys(), _('지원하지 않는 저장소입니다.')
23
+ assert storage_scheme in STORAGE_PROVIDERS.keys(), _('Storage provider not supported.')
16
24
  return STORAGE_PROVIDERS[storage_scheme](connection_param)
17
25
 
18
26
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: synapse-sdk
3
- Version: 1.0.0a32
3
+ Version: 1.0.0a33
4
4
  Summary: synapse sdk
5
5
  Author-email: datamaker <developer@datamaker.io>
6
6
  License: MIT
@@ -49,8 +49,10 @@ synapse_sdk/clients/backend/__init__.py
49
49
  synapse_sdk/clients/backend/annotation.py
50
50
  synapse_sdk/clients/backend/core.py
51
51
  synapse_sdk/clients/backend/dataset.py
52
+ synapse_sdk/clients/backend/hitl.py
52
53
  synapse_sdk/clients/backend/integration.py
53
54
  synapse_sdk/clients/backend/ml.py
55
+ synapse_sdk/clients/backend/models.py
54
56
  synapse_sdk/clients/ray/__init__.py
55
57
  synapse_sdk/clients/ray/core.py
56
58
  synapse_sdk/clients/ray/serve.py
@@ -143,5 +145,8 @@ synapse_sdk/utils/storage/providers/gcp.py
143
145
  synapse_sdk/utils/storage/providers/s3.py
144
146
  synapse_sdk/utils/storage/providers/sftp.py
145
147
  tests/__init__.py
146
- tests/utils/__init__.py
148
+ tests/clients/__init__.py
149
+ tests/clients/test_backend_models.py
150
+ tests/clients/test_base_client.py
151
+ tests/utils/__init__,py
147
152
  tests/utils/test_debug.py
@@ -0,0 +1,74 @@
1
+ import pytest
2
+ from pydantic import ValidationError
3
+
4
+ from synapse_sdk.clients.backend.models import Storage, StorageCategory, StorageProvider
5
+
6
+
7
+ def test_storage_model_validation_success():
8
+ storage_response = {
9
+ 'id': 1,
10
+ 'name': 'test_storage',
11
+ 'category': 'internal',
12
+ 'provider': 'file_system',
13
+ 'configuration': {},
14
+ 'is_default': True,
15
+ }
16
+ storage = Storage(**storage_response)
17
+ assert storage.id == 1
18
+
19
+
20
+ def test_storage_model_validation_failed_with_invalid_category():
21
+ storage_response = {
22
+ 'id': 1,
23
+ 'name': 'test_storage',
24
+ 'category': 'invalid_data',
25
+ 'provider': 'file_system',
26
+ 'configuration': {},
27
+ 'is_default': True,
28
+ }
29
+ with pytest.raises(ValidationError) as exc_info:
30
+ Storage(**storage_response)
31
+ assert 'category' in str(exc_info.value)
32
+
33
+
34
+ def test_storage_model_validation_failed_with_invalid_provider():
35
+ storage_response = {
36
+ 'id': 1,
37
+ 'name': 'test_storage',
38
+ 'category': 'internal',
39
+ 'provider': 'invalid_provider',
40
+ 'configuration': {},
41
+ 'is_default': True,
42
+ }
43
+ with pytest.raises(ValidationError) as exc_info:
44
+ Storage(**storage_response)
45
+ assert 'provider' in str(exc_info.value)
46
+
47
+
48
+ def test_storage_model_validation_failed_with_missing_field():
49
+ storage_response = {
50
+ 'id': 1,
51
+ 'name': 'test_storage',
52
+ 'category': 'internal',
53
+ 'provider': 'file_system',
54
+ 'is_default': True,
55
+ # Missing configuration field
56
+ }
57
+ with pytest.raises(ValidationError):
58
+ Storage(**storage_response)
59
+
60
+
61
+ def test_storage_model_enum_values():
62
+ # Test that valid enum values work correctly
63
+ for category in StorageCategory:
64
+ for provider in StorageProvider:
65
+ storage = Storage(
66
+ id=1,
67
+ name='test_storage',
68
+ category=category,
69
+ provider=provider,
70
+ configuration={},
71
+ is_default=True,
72
+ )
73
+ assert storage.category == category
74
+ assert storage.provider == provider
@@ -0,0 +1,46 @@
1
+ import pytest
2
+ from pydantic import ValidationError
3
+
4
+ from synapse_sdk.clients.backend.models import Storage
5
+ from synapse_sdk.clients.base import BaseClient
6
+
7
+
8
+ @pytest.fixture
9
+ def base_client():
10
+ return BaseClient('http://fake_url')
11
+
12
+
13
+ @pytest.fixture
14
+ def valid_storage_response():
15
+ return {
16
+ 'id': 1,
17
+ 'name': 'test_storage',
18
+ 'category': 'internal',
19
+ 'provider': 'file_system',
20
+ 'configuration': {},
21
+ 'is_default': True,
22
+ }
23
+
24
+
25
+ @pytest.fixture
26
+ def invalid_storage_response(valid_storage_response):
27
+ response = valid_storage_response.copy()
28
+ response['provider'] = 'invalid_provider'
29
+ return response
30
+
31
+
32
+ def test_validate_response_with_pydantic_model_success(base_client, valid_storage_response):
33
+ validated_response = base_client._validate_response_with_pydantic_model(valid_storage_response, Storage)
34
+ assert validated_response['id'] == valid_storage_response['id']
35
+
36
+
37
+ def test_validate_response_with_pydantic_model_invalid_data(base_client, invalid_storage_response):
38
+ with pytest.raises(ValidationError) as exc_info:
39
+ base_client._validate_response_with_pydantic_model(invalid_storage_response, Storage)
40
+ assert '1 validation error' in str(exc_info.value)
41
+
42
+
43
+ def test_validate_response_with_pydantic_model_not_pydantic_model(base_client, valid_storage_response):
44
+ with pytest.raises(TypeError) as exc_info:
45
+ base_client._validate_response_with_pydantic_model(valid_storage_response, {})
46
+ assert 'The provided model is not a pydantic model' in str(exc_info.value)
File without changes