synapse-sdk 1.0.0a31__tar.gz → 1.0.0a32__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 (150) hide show
  1. {synapse_sdk-1.0.0a31/synapse_sdk.egg-info → synapse_sdk-1.0.0a32}/PKG-INFO +3 -2
  2. synapse_sdk-1.0.0a32/synapse_sdk/clients/backend/dataset.py +102 -0
  3. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/base.py +5 -7
  4. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/base.py +40 -0
  5. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/export/templates/plugin/export.py +39 -29
  6. synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/upload/actions/upload.py +292 -0
  7. synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/upload/templates/config.yaml +6 -0
  8. synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/upload/templates/plugin/upload.py +44 -0
  9. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/enums.py +3 -1
  10. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/models.py +16 -0
  11. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/storage/__init__.py +11 -1
  12. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32/synapse_sdk.egg-info}/PKG-INFO +3 -2
  13. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk.egg-info/SOURCES.txt +6 -4
  14. synapse_sdk-1.0.0a32/tests/utils/__init__.py +0 -0
  15. synapse_sdk-1.0.0a31/synapse_sdk/clients/backend/dataset.py +0 -50
  16. synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/export/actions/utils.py +0 -5
  17. synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/import/actions/import.py +0 -10
  18. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/.github/workflows/lint.yml +0 -0
  19. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/.github/workflows/pypi-publish.yml +0 -0
  20. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/.gitignore +0 -0
  21. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/.pre-commit-config.yaml +0 -0
  22. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/LICENSE +0 -0
  23. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/README.md +0 -0
  24. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/locale/en/LC_MESSAGES/messages.mo +0 -0
  25. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/locale/en/LC_MESSAGES/messages.po +0 -0
  26. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/locale/ko/LC_MESSAGES/messages.mo +0 -0
  27. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/locale/ko/LC_MESSAGES/messages.po +0 -0
  28. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/pyproject.toml +0 -0
  29. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/requirements.test.txt +0 -0
  30. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/requirements.txt +0 -0
  31. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/setup.cfg +0 -0
  32. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/__init__.py +0 -0
  33. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/__init__.py +0 -0
  34. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/alias/__init__.py +0 -0
  35. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/alias/create.py +0 -0
  36. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/alias/dataclass.py +0 -0
  37. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/alias/default.py +0 -0
  38. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/alias/delete.py +0 -0
  39. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/alias/list.py +0 -0
  40. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/alias/read.py +0 -0
  41. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/alias/update.py +0 -0
  42. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/alias/utils.py +0 -0
  43. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/plugin/__init__.py +0 -0
  44. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/plugin/create.py +0 -0
  45. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/plugin/publish.py +0 -0
  46. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/cli/plugin/run.py +0 -0
  47. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/__init__.py +0 -0
  48. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/agent/__init__.py +0 -0
  49. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/agent/core.py +0 -0
  50. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/agent/ray.py +0 -0
  51. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/agent/service.py +0 -0
  52. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/backend/__init__.py +0 -0
  53. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/backend/annotation.py +0 -0
  54. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/backend/core.py +0 -0
  55. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/backend/integration.py +0 -0
  56. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/backend/ml.py +0 -0
  57. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/exceptions.py +0 -0
  58. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/ray/__init__.py +0 -0
  59. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/ray/core.py +0 -0
  60. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/ray/serve.py +0 -0
  61. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/clients/utils.py +0 -0
  62. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/i18n.py +0 -0
  63. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/loggers.py +0 -0
  64. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/__init__.py +0 -0
  65. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/__init__.py +0 -0
  66. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/data_validation/__init__.py +0 -0
  67. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/data_validation/actions/__init__.py +0 -0
  68. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/data_validation/actions/validation.py +0 -0
  69. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/data_validation/templates/config.yaml +0 -0
  70. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/data_validation/templates/plugin/__init__.py +0 -0
  71. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/data_validation/templates/plugin/validation.py +0 -0
  72. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/decorators.py +0 -0
  73. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/export/__init__.py +0 -0
  74. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/export/actions/__init__.py +0 -0
  75. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/export/actions/export.py +0 -0
  76. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/export/templates/config.yaml +0 -0
  77. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/export/templates/plugin/__init__.py +0 -0
  78. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/import → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/neural_net}/__init__.py +0 -0
  79. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/import → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/neural_net}/actions/__init__.py +0 -0
  80. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/neural_net/actions/deployment.py +0 -0
  81. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/neural_net/actions/inference.py +0 -0
  82. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/neural_net/actions/test.py +0 -0
  83. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/neural_net/actions/train.py +0 -0
  84. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/neural_net → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/neural_net/base}/__init__.py +0 -0
  85. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/neural_net/base/inference.py +0 -0
  86. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/neural_net/templates/config.yaml +0 -0
  87. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/neural_net/actions → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/neural_net/templates/plugin}/__init__.py +0 -0
  88. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/neural_net/templates/plugin/inference.py +0 -0
  89. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/neural_net/templates/plugin/test.py +0 -0
  90. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/neural_net/templates/plugin/train.py +0 -0
  91. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/neural_net/base → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/post_annotation}/__init__.py +0 -0
  92. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/neural_net/templates/plugin → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/post_annotation/actions}/__init__.py +0 -0
  93. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/post_annotation/actions/post_annotation.py +0 -0
  94. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/post_annotation/templates/config.yaml +0 -0
  95. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/post_annotation → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/post_annotation/templates/plugin}/__init__.py +0 -0
  96. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/post_annotation/templates/plugin/post_annotation.py +0 -0
  97. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/post_annotation/actions → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/pre_annotation}/__init__.py +0 -0
  98. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/post_annotation/templates/plugin → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/pre_annotation/actions}/__init__.py +0 -0
  99. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/pre_annotation/actions/pre_annotation.py +0 -0
  100. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/pre_annotation/templates/config.yaml +0 -0
  101. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/pre_annotation → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/pre_annotation/templates/plugin}/__init__.py +0 -0
  102. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/pre_annotation/templates/plugin/pre_annotation.py +0 -0
  103. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/registry.py +0 -0
  104. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/pre_annotation/actions → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/smart_tool}/__init__.py +0 -0
  105. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/pre_annotation/templates/plugin → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/smart_tool/actions}/__init__.py +0 -0
  106. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/smart_tool/actions/auto_label.py +0 -0
  107. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/smart_tool/templates/config.yaml +0 -0
  108. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/smart_tool → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/smart_tool/templates/plugin}/__init__.py +0 -0
  109. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/smart_tool/templates/plugin/auto_label.py +0 -0
  110. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/categories/templates.py +0 -0
  111. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/smart_tool/actions → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/upload}/__init__.py +0 -0
  112. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/categories/smart_tool/templates/plugin → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/upload/actions}/__init__.py +0 -0
  113. {synapse_sdk-1.0.0a31/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin → synapse_sdk-1.0.0a32/synapse_sdk/plugins/categories/upload/templates}/plugin/__init__.py +0 -0
  114. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/exceptions.py +0 -0
  115. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/templates/cookiecutter.json +0 -0
  116. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/templates/hooks/post_gen_project.py +0 -0
  117. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/templates/hooks/pre_prompt.py +0 -0
  118. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/.gitignore +0 -0
  119. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/.pre-commit-config.yaml +0 -0
  120. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/README.md +0 -0
  121. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/config.yaml +0 -0
  122. {synapse_sdk-1.0.0a31/synapse_sdk/shared → synapse_sdk-1.0.0a32/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/plugin}/__init__.py +0 -0
  123. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/pyproject.toml +0 -0
  124. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/templates/synapse-{{cookiecutter.plugin_code}}-plugin/requirements.txt +0 -0
  125. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/upload.py +0 -0
  126. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/plugins/utils.py +0 -0
  127. {synapse_sdk-1.0.0a31/synapse_sdk/utils → synapse_sdk-1.0.0a32/synapse_sdk/shared}/__init__.py +0 -0
  128. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/shared/enums.py +0 -0
  129. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/types.py +0 -0
  130. {synapse_sdk-1.0.0a31/synapse_sdk/utils/pydantic → synapse_sdk-1.0.0a32/synapse_sdk/utils}/__init__.py +0 -0
  131. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/debug.py +0 -0
  132. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/file.py +0 -0
  133. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/module_loading.py +0 -0
  134. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/network.py +0 -0
  135. {synapse_sdk-1.0.0a31/tests → synapse_sdk-1.0.0a32/synapse_sdk/utils/pydantic}/__init__.py +0 -0
  136. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/pydantic/config.py +0 -0
  137. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/pydantic/errors.py +0 -0
  138. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/pydantic/validators.py +0 -0
  139. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/storage/providers/__init__.py +0 -0
  140. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/storage/providers/gcp.py +0 -0
  141. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/storage/providers/s3.py +0 -0
  142. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/storage/providers/sftp.py +0 -0
  143. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/storage/registry.py +0 -0
  144. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk/utils/string.py +0 -0
  145. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk.egg-info/dependency_links.txt +0 -0
  146. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk.egg-info/entry_points.txt +0 -0
  147. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk.egg-info/requires.txt +0 -0
  148. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/synapse_sdk.egg-info/top_level.txt +0 -0
  149. {synapse_sdk-1.0.0a31/tests/utils → synapse_sdk-1.0.0a32/tests}/__init__.py +0 -0
  150. {synapse_sdk-1.0.0a31 → synapse_sdk-1.0.0a32}/tests/utils/test_debug.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: synapse-sdk
3
- Version: 1.0.0a31
3
+ Version: 1.0.0a32
4
4
  Summary: synapse sdk
5
5
  Author-email: datamaker <developer@datamaker.io>
6
6
  License: MIT
@@ -21,6 +21,7 @@ Requires-Dist: universal-pathlib
21
21
  Requires-Dist: fsspec[gcs,s3,sftp]
22
22
  Provides-Extra: all
23
23
  Requires-Dist: ray[all]; extra == "all"
24
+ Dynamic: license-file
24
25
 
25
26
  This is the SDK to develop synapse plugins
26
27
 
@@ -0,0 +1,102 @@
1
+ from multiprocessing import Pool
2
+ from pathlib import Path
3
+ from typing import Dict, Optional
4
+
5
+ from tqdm import tqdm
6
+
7
+ from synapse_sdk.clients.base import BaseClient
8
+ from synapse_sdk.clients.utils import get_batched_list
9
+
10
+
11
+ class DatasetClientMixin(BaseClient):
12
+ def list_dataset(self):
13
+ path = 'datasets/'
14
+ return self._list(path)
15
+
16
+ def get_dataset(self, dataset_id):
17
+ """Get dataset from synapse-backend.
18
+
19
+ Args:
20
+ dataset_id: The dataset id to get.
21
+ """
22
+ path = f'datasets/{dataset_id}/?expand=file_specifications'
23
+ return self._get(path)
24
+
25
+ def create_data_file(self, file_path: Path):
26
+ """Create data file to synapse-backend.
27
+
28
+ Args:
29
+ file_path: The file pathlib object to upload.
30
+ """
31
+ path = 'data_files/'
32
+ return self._post(path, files={'file': file_path})
33
+
34
+ def create_data_units(self, data):
35
+ """Create data units to synapse-backend.
36
+
37
+ Args:
38
+ data: The data bindings to upload from create_data_file interface.
39
+ """
40
+ path = 'data_units/'
41
+ return self._post(path, data=data)
42
+
43
+ def upload_dataset(
44
+ self,
45
+ dataset_id: int,
46
+ dataset: Dict,
47
+ project_id: Optional[int] = None,
48
+ batch_size: int = 1000,
49
+ process_pool: int = 10,
50
+ ):
51
+ """Upload dataset to synapse-backend.
52
+
53
+ Args:
54
+ dataset_id: The dataset id to upload the data to.
55
+ dataset: The dataset to upload.
56
+ * structure:
57
+ - files: The files to upload. (key: file name, value: file pathlib object)
58
+ - meta: The meta data to upload.
59
+ project_id: The project id to upload the data to.
60
+ batch_size: The batch size to upload the data.
61
+ process_pool: The process pool to upload the data.
62
+ """
63
+ # TODO validate dataset with schema
64
+
65
+ params = [(data, dataset_id) for data in dataset]
66
+
67
+ with Pool(processes=process_pool) as pool:
68
+ dataset = pool.starmap(self.upload_data_file, tqdm(params))
69
+
70
+ batches = get_batched_list(dataset, batch_size)
71
+
72
+ for batch in tqdm(batches):
73
+ data_units = self.create_data_units(batch)
74
+
75
+ if project_id:
76
+ tasks_data = []
77
+ for data, data_unit in zip(batch, data_units):
78
+ task_data = {'project': project_id, 'data_unit': data_unit['id']}
79
+ # TODO: Additional logic needed here if task data storage is required during import.
80
+
81
+ tasks_data.append(task_data)
82
+
83
+ self.create_tasks(tasks_data)
84
+
85
+ def upload_data_file(self, data: Dict, dataset_id: int) -> Dict:
86
+ """Upload files to synapse-backend.
87
+
88
+ Args:
89
+ data: The data to upload.
90
+ * structure:
91
+ - files: The files to upload. (key: file name, value: file pathlib object)
92
+ - meta: The meta data to upload.
93
+ dataset_id: The dataset id to upload the data to.
94
+
95
+ Returns:
96
+ Dict: The result of the upload.
97
+ """
98
+ for name, path in data['files'].items():
99
+ data_file = self.create_data_file(path)
100
+ data['dataset'] = dataset_id
101
+ data['files'][name] = {'checksum': data_file['checksum'], 'path': str(path)}
102
+ return data
@@ -47,15 +47,12 @@ class BaseClient:
47
47
  # If files are included in the request, open them as binary files
48
48
  if kwargs.get('files') is not None:
49
49
  for name, file in kwargs['files'].items():
50
- # If file is a path string, bind it as a Path object and open
50
+ # Handle both string and Path object cases
51
51
  if isinstance(file, str):
52
- opened_file = Path(file).open(mode='rb')
53
- kwargs['files'][name] = opened_file
54
- opened_files.append(opened_file)
55
- # If file is a Path object, open it directly
56
- elif isinstance(file, Path):
52
+ file = Path(file)
53
+ if isinstance(file, Path):
57
54
  opened_file = file.open(mode='rb')
58
- kwargs['files'][name] = opened_file
55
+ kwargs['files'][name] = (file.name, opened_file)
59
56
  opened_files.append(opened_file)
60
57
  if 'data' in kwargs:
61
58
  for name, value in kwargs['data'].items():
@@ -67,6 +64,7 @@ class BaseClient:
67
64
  kwargs['data'] = json.dumps(kwargs['data'])
68
65
 
69
66
  try:
67
+ # Send request
70
68
  response = getattr(self.requests_session, method)(url, headers=headers, **kwargs)
71
69
  if not response.ok:
72
70
  raise ClientError(
@@ -17,6 +17,30 @@ from synapse_sdk.utils.pydantic.errors import pydantic_to_drf_error
17
17
 
18
18
 
19
19
  class Action:
20
+ """Base class for all plugin actions.
21
+
22
+ Attrs:
23
+ name (str): The name of the action.
24
+ category (PluginCategory): The category of the action.
25
+ method (RunMethod): The method to run of the action.
26
+ run_class (Run): The class to run the action.
27
+ params_model (BaseModel): The model to validate the params.
28
+ progress_categories (List[str]): The categories to update the progress.
29
+ params (Dict): The params to run the action.
30
+ plugin_config (Dict): The plugin config.
31
+ plugin_release (PluginRelease): The plugin release.
32
+ config (Dict): The action config.
33
+ requirements (List[str]): The requirements to install.
34
+ job_id (str): The job id.
35
+ direct (bool): The flag to run the action directly.
36
+ debug (bool): The flag to run the action in debug mode.
37
+ envs (Dict): The runtime envs.
38
+ run (Run): The run instance.
39
+
40
+ Raises:
41
+ ActionError: If the action fails.
42
+ """
43
+
20
44
  # class 변수
21
45
  name = None
22
46
  category = None
@@ -159,11 +183,19 @@ class Action:
159
183
  return getattr(self, f'start_by_{self.method.value}')()
160
184
 
161
185
  def start(self):
186
+ """Start the action.
187
+
188
+ TODO: Specify the return type of start method for overrided methods.
189
+ """
162
190
  if self.method == RunMethod.JOB:
163
191
  return self.entrypoint(self.run, **self.params)
164
192
  return self.entrypoint(**self.params)
165
193
 
166
194
  def start_by_task(self):
195
+ """Ray Task based execution.
196
+
197
+ * A task method that simply executes the entrypoint without job management functionality.
198
+ """
167
199
  import ray
168
200
  from ray.exceptions import RayTaskError
169
201
 
@@ -195,6 +227,10 @@ class Action:
195
227
  raise ActionError(e.cause)
196
228
 
197
229
  def start_by_job(self):
230
+ """Ray Job based execution.
231
+
232
+ * Executes the entrypoint with Ray job. Ray job manages the entrypoint execution and stores the results.
233
+ """
198
234
  main_options = []
199
235
  options = ['run', '--direct']
200
236
  arguments = [self.name, f'{json.dumps(json.dumps(self.params))}']
@@ -215,6 +251,10 @@ class Action:
215
251
  )
216
252
 
217
253
  def start_by_restapi(self):
254
+ """Ray Serve based execution.
255
+
256
+ * This method executes a Fastapi endpoint defined within the Plugin.
257
+ """
218
258
  path = self.params.pop('path', '')
219
259
  method = self.params.pop('method')
220
260
 
@@ -1,9 +1,8 @@
1
1
  import json
2
+ from pathlib import Path
2
3
 
3
4
  import requests
4
5
 
5
- from synapse_sdk.plugins.categories.export.actions.utils import get_original_file_path
6
-
7
6
 
8
7
  def export(run, input_dataset, path_root, **params):
9
8
  """Executes the export task.
@@ -14,7 +13,7 @@ def export(run, input_dataset, path_root, **params):
14
13
  - data (dict): dm_schema_data information.
15
14
  - files (dict): File information. Includes file URL, original file path, metadata, etc.
16
15
  - id (int): ground_truth ID
17
- path_root : Save path
16
+ path_root : pathlib object, the path to export
18
17
  **params: Additional parameters
19
18
 
20
19
  Returns:
@@ -24,10 +23,11 @@ def export(run, input_dataset, path_root, **params):
24
23
  path_root.mkdir(parents=True, exist_ok=True)
25
24
  run.log_message('Starting export process.')
26
25
 
27
- # results: Contains all information fetched through the list API.
28
- results = params.get('results', [])
26
+ # results contains all information fetched through the list API.
27
+ # example:
28
+ # params.get('results', [])
29
29
 
30
- save_original_file = params.get('save_original_file')
30
+ save_original_file_flag = params.get('save_original_file')
31
31
  errors_json_file_list = []
32
32
  errors_original_file_list = []
33
33
 
@@ -39,21 +39,28 @@ def export(run, input_dataset, path_root, **params):
39
39
  origin_files_output_path = path_root / 'origin_files'
40
40
  origin_files_output_path.mkdir(parents=True, exist_ok=True)
41
41
 
42
- total = len(results)
43
- for no, input_data in enumerate(input_dataset):
42
+ total = params['count']
43
+ # progress init
44
+ run.set_progress(0, total, category='dataset_conversion')
45
+ for no, input_data in enumerate(input_dataset, start=1):
44
46
  run.set_progress(no, total, category='dataset_conversion')
47
+ if no == 1:
48
+ run.log_message('Converting dataset.')
45
49
  preprocessed_data = before_convert(input_data)
46
50
  converted_data = convert_data(preprocessed_data)
47
51
  final_data = after_convert(converted_data)
48
52
 
49
53
  # Call if original file extraction is needed
50
- if save_original_file:
54
+ if save_original_file_flag:
55
+ if no == 1:
56
+ run.log_message('Saving original file.')
51
57
  save_original_file(final_data, origin_files_output_path, errors_original_file_list)
52
58
 
53
59
  # Extract data as JSON files
60
+ if no == 1:
61
+ run.log_message('Saving json file.')
54
62
  save_as_json(final_data, json_output_path, errors_json_file_list)
55
63
 
56
- run.log_message('Saving converted dataset.')
57
64
  run.end_log()
58
65
 
59
66
  # Save error list files
@@ -62,7 +69,7 @@ def export(run, input_dataset, path_root, **params):
62
69
  with (path_root / 'error_file_list.json').open('w', encoding='utf-8') as f:
63
70
  json.dump(export_error_file, f, indent=4, ensure_ascii=False)
64
71
 
65
- return {'export_path': path_root}
72
+ return {'export_path': str(path_root)}
66
73
 
67
74
 
68
75
  def convert_data(data):
@@ -80,19 +87,29 @@ def after_convert(data):
80
87
  return data
81
88
 
82
89
 
83
- def save_original_file(result, base_path, error_file_list):
84
- """Saves the original file.
90
+ def get_original_file_pathlib(files):
91
+ """Retrieve the original file path from the given file information.
85
92
 
86
93
  Args:
87
- result (dict): Result data
88
- base_path (Path): Save path
89
- error_file_list (list): List of error files
94
+ files (dict): A dictionary containing file information, including file URL,
95
+ original file path, metadata, etc.
90
96
 
91
97
  Returns:
92
- base_path (str): Save path
98
+ pathlib.Path: The original file path extracted from the metadata.
99
+ """
100
+ return Path(next(iter(files.values()))['meta']['path_original'])
101
+
102
+
103
+ def save_original_file(result, base_path, error_file_list):
104
+ """Saves the original file.
105
+
106
+ Args:
107
+ result (dict): API response data containing file information.
108
+ base_path (Path): The directory where the file will be saved.
109
+ error_file_list (list): A list to store error files.
93
110
  """
94
111
  file_url = next(iter(result['files'].values()))['url']
95
- file_name = get_original_file_path(result['files']).name
112
+ file_name = get_original_file_pathlib(result['files']).name
96
113
  response = requests.get(file_url)
97
114
  try:
98
115
  with (base_path / file_name).open('wb') as file:
@@ -100,27 +117,20 @@ def save_original_file(result, base_path, error_file_list):
100
117
  except Exception as e:
101
118
  error_file_list.append([file_name, str(e)])
102
119
 
103
- return base_path
104
-
105
120
 
106
121
  def save_as_json(result, base_path, error_file_list):
107
122
  """Saves the data as a JSON file.
108
123
 
109
124
  Args:
110
- result (dict): Result data
111
- base_path (Path): Save path
112
- error_file_list (list): List of error files
113
-
114
- Returns:
115
- base_path (str): Save path
125
+ result (dict): API response data containing file information.
126
+ base_path (Path): The directory where the file will be saved.
127
+ error_file_list (list): A list to store error files.
116
128
  """
117
129
  # Default save file name: original file name
118
- file_name = get_original_file_path(result['files']).stem
130
+ file_name = get_original_file_pathlib(result['files']).stem
119
131
  json_data = result['data']
120
132
  try:
121
133
  with (base_path / f'{file_name}.json').open('w', encoding='utf-8') as f:
122
134
  json.dump(json_data, f, indent=4, ensure_ascii=False)
123
135
  except Exception as e:
124
136
  error_file_list.append([f'{file_name}.json', str(e)])
125
-
126
- return base_path
@@ -0,0 +1,292 @@
1
+ from enum import Enum
2
+ from typing import Annotated, Dict, List
3
+
4
+ from pydantic import AfterValidator, BaseModel, field_validator
5
+ from pydantic_core import PydanticCustomError
6
+
7
+ from synapse_sdk.clients.exceptions import ClientError
8
+ from synapse_sdk.clients.utils import get_batched_list
9
+ from synapse_sdk.i18n import gettext as _
10
+ from synapse_sdk.plugins.categories.base import Action
11
+ from synapse_sdk.plugins.categories.decorators import register_action
12
+ from synapse_sdk.plugins.enums import PluginCategory, RunMethod
13
+ from synapse_sdk.plugins.models import Run
14
+ from synapse_sdk.shared.enums import Context
15
+ from synapse_sdk.utils.pydantic.validators import non_blank
16
+ from synapse_sdk.utils.storage import get_pathlib
17
+
18
+
19
+ class UploadRun(Run):
20
+ pass
21
+
22
+
23
+ class UploadParams(BaseModel):
24
+ """Upload action parameters.
25
+
26
+ Args:
27
+ name (str): The name of the action.
28
+ description (str | None): The description of the action.
29
+ checkpoint (int | None): The checkpoint of the action.
30
+ path (str): The path of the action.
31
+ storage (int): The storage of the action.
32
+ collection (int): The collection of the action.
33
+ project (int | None): The project of the action.
34
+ is_generate_tasks (bool): The flag to generate tasks.
35
+ is_generate_ground_truths (bool): The flag to generate ground truths
36
+ """
37
+
38
+ name: Annotated[str, AfterValidator(non_blank)]
39
+ description: str | None
40
+ path: str
41
+ storage: int
42
+ collection: int
43
+ project: int | None
44
+ is_generate_tasks: bool = False
45
+ is_generate_ground_truths: bool = False
46
+
47
+ @field_validator('storage', mode='before')
48
+ @classmethod
49
+ def check_storage_exists(cls, value: str, info) -> str:
50
+ """Validate synapse-backend storage exists.
51
+
52
+ TODO: Need to define validation method naming convention.
53
+ TODO: Need to make validation method reusable.
54
+ """
55
+ action = info.context['action']
56
+ client = action.client
57
+ try:
58
+ client.get_storage(value)
59
+ except ClientError:
60
+ raise PydanticCustomError('client_error', _('Error occurred while checking storage exists.'))
61
+ return value
62
+
63
+ @field_validator('collection', mode='before')
64
+ @classmethod
65
+ def check_collection_exists(cls, value: str, info) -> str:
66
+ """Validate synapse-backend collection exists."""
67
+ action = info.context['action']
68
+ client = action.client
69
+ try:
70
+ client.get_dataset(value)
71
+ except ClientError:
72
+ raise PydanticCustomError('client_error', _('Error occurred while checking collection exists.'))
73
+ return value
74
+
75
+ @field_validator('project', mode='before')
76
+ @classmethod
77
+ def check_project_exists(cls, value: str, info) -> str:
78
+ """Validate synapse-backend project exists."""
79
+ if not value:
80
+ return value
81
+
82
+ action = info.context['action']
83
+ client = action.client
84
+ try:
85
+ client.get_project(value)
86
+ except ClientError:
87
+ raise PydanticCustomError('client_error', _('Error occurred while checking project exists.'))
88
+ return value
89
+
90
+
91
+ @register_action
92
+ class UploadAction(Action):
93
+ """Upload action class.
94
+
95
+ Attrs:
96
+ name (str): The name of the action.
97
+ category (PluginCategory): The category of the action.
98
+ method (RunMethod): The method to run of the action.
99
+
100
+ Progress Categories:
101
+ analyze_collection: The progress category for the analyze collection process.
102
+ data_file_upload: The progress category for the upload process.
103
+ generate_data_units: The progress category for the generate data units process.
104
+ generate_tasks: The progress category for the generate tasks process.
105
+ generate_ground_truths: The progress category for the generate ground truths process.
106
+ """
107
+
108
+ name = 'upload'
109
+ category = PluginCategory.UPLOAD
110
+ method = RunMethod.JOB
111
+ progress_categories = {
112
+ 'analyze_collection': {
113
+ 'proportion': 5,
114
+ },
115
+ 'upload_data_files': {
116
+ 'proportion': 35,
117
+ },
118
+ 'generate_data_units': {
119
+ 'proportion': 20,
120
+ },
121
+ 'generate_tasks': {
122
+ 'proportion': 20,
123
+ },
124
+ 'generate_ground_truths': {
125
+ 'proportion': 20,
126
+ },
127
+ }
128
+
129
+ def get_uploader(self, path):
130
+ """Get uploader from entrypoint."""
131
+ return self.entrypoint(self.run, path)
132
+
133
+ def start(self) -> Dict:
134
+ """Start upload process.
135
+
136
+ Returns:
137
+ Dict: The result of the upload process.
138
+ """
139
+ # Setup path object with path and storage.
140
+ storage = self.client.get_storage(self.params['storage'])
141
+ pathlib_cwd = get_pathlib(storage, self.params['path'])
142
+
143
+ # Initialize uploader.
144
+ uploader = self.get_uploader(pathlib_cwd)
145
+
146
+ # Analyze Collection file specifications to determine the data structure for upload.
147
+ self.run.set_progress(0, 1, category='analyze_collection')
148
+ file_specification_skeleton = self._analyze_collection()
149
+ self.run.set_progress(1, 1, category='analyze_collection')
150
+
151
+ # Setup result dict.
152
+ result = {}
153
+
154
+ # Organize data according to Collection file specification structure.
155
+ organized_files = uploader.handle_upload_files()
156
+ if not self._validate_organized_files(file_specification_skeleton, organized_files):
157
+ self.run.log_message('Validate organized files failed.')
158
+ return result
159
+
160
+ # Upload files to synapse-backend.
161
+ organized_files_count = len(organized_files)
162
+ if not organized_files_count:
163
+ self.run.log_message('Files not found on the path.', context=Context.WARNING.value)
164
+ return result
165
+
166
+ self.run.set_progress(0, organized_files_count, category='upload_data_files')
167
+ self.run.log_message('Uploading data files...')
168
+ result['uploaded_files'] = self._upload_files(organized_files)
169
+ self.run.set_progress(organized_files_count, organized_files_count, category='upload_data_files')
170
+ self.run.log_message('Upload data files completed.')
171
+
172
+ # Generate data units for the uploaded data.
173
+ upload_result_count = len(result['uploaded_files'])
174
+ if not upload_result_count:
175
+ self.run.log_message('No files were uploaded.', context=Context.WARNING.value)
176
+ return result
177
+
178
+ self.run.set_progress(0, upload_result_count, category='generate_data_units')
179
+ generated_data_units = self._generate_data_units(result['uploaded_files'])
180
+ result['generated_data_units'] = generated_data_units
181
+ self.run.set_progress(upload_result_count, upload_result_count, category='generate_data_units')
182
+
183
+ # Setup task with uploaded synapse-backend data units.
184
+ if not len(generated_data_units):
185
+ self.run.log_message('No data units were generated.', context=Context.WARNING.value)
186
+ return result
187
+
188
+ self.run.set_progress(0, 1, category='generate_tasks')
189
+ if self.config['options']['allow_generate_tasks'] and self.params['is_generate_tasks']:
190
+ self.run.log_message('Generating tasks with data files...')
191
+ self._generate_tasks(generated_data_units)
192
+ self.run.log_message('Generating tasks completed')
193
+ else:
194
+ self.run.log_message('Generating tasks process has passed.')
195
+
196
+ self.run.set_progress(1, 1, category='generate_tasks')
197
+
198
+ # Generate ground truths for the uploaded data.
199
+ # TODO: Need to add ground truths generation logic later.
200
+ self.run.set_progress(0, 1, category='generate_ground_truths')
201
+ if self.config['options']['allow_generate_ground_truths'] and self.params['is_generate_ground_truths']:
202
+ self.run.log_message('Generating ground truths...')
203
+ self._generate_ground_truths()
204
+ self.run.log_message('Generating ground truths completed')
205
+ else:
206
+ self.run.log_message('Generating ground truths process has passed.')
207
+ self.run.set_progress(1, 1, category='generate_ground_truths')
208
+
209
+ return result
210
+
211
+ def _analyze_collection(self) -> Dict:
212
+ """Analyze Synapse Collection Specifications.
213
+
214
+ Returns:
215
+ Dict: The file specifications of the collection.
216
+ """
217
+ client = self.run.client
218
+ collection_id = self.params['collection']
219
+ collection = client.get_dataset(collection_id)
220
+ return collection['file_specifications']
221
+
222
+ def _validate_organized_files(self, file_specification_skeleton: Dict, organized_files: List) -> bool:
223
+ """Validate organized files from Uploader."""
224
+ return True
225
+
226
+ def _upload_files(self, organized_files) -> List:
227
+ """Upload files to synapse-backend.
228
+
229
+ Returns:
230
+ Dict: The result of the upload.
231
+ """
232
+ client = self.run.client
233
+ collection_id = self.params['collection']
234
+ upload_result = []
235
+ organized_files_count = len(organized_files)
236
+ current_progress = 0
237
+ for organized_file in organized_files:
238
+ upload_result.append(client.upload_data_file(organized_file, collection_id))
239
+ self.run.set_progress(current_progress, organized_files_count, category='upload_data_files')
240
+ current_progress += 1
241
+ return upload_result
242
+
243
+ def _generate_data_units(self, uploaded_files: List) -> List:
244
+ """Generate data units for the uploaded data.
245
+
246
+ TODO: make batch size configurable.
247
+
248
+ Returns:
249
+ Dict: The result of the generate data units process.
250
+ """
251
+ client = self.run.client
252
+
253
+ generation_result = []
254
+ current_progress = 0
255
+ batches = get_batched_list(uploaded_files, 100)
256
+ batches_count = len(batches)
257
+ for batch in batches:
258
+ generation_result.append(client.create_data_units(batch))
259
+ self.run.set_progress(current_progress, batches_count, category='generate_data_units')
260
+ current_progress += 1
261
+ return generation_result
262
+
263
+ def _generate_tasks(self, generated_data_units: List):
264
+ """Setup task with uploaded synapse-backend data units.
265
+
266
+ TODO: make batch size configurable.
267
+ """
268
+
269
+ # Prepare batches for processing
270
+ client = self.run.client
271
+ project_id = self.params['project']
272
+ current_progress = 0
273
+
274
+ # Generate tasks
275
+ generated_data_units_count = len(generated_data_units)
276
+ for data_units in generated_data_units:
277
+ tasks_data = []
278
+ for data_unit in data_units:
279
+ task_data = {'project': project_id, 'data_unit': data_unit['id']}
280
+ tasks_data.append(task_data)
281
+
282
+ if tasks_data:
283
+ client.create_tasks(tasks_data)
284
+
285
+ self.run.set_progress(current_progress, generated_data_units_count, category='generate_tasks')
286
+ current_progress += 1
287
+
288
+ def _generate_ground_truths(self):
289
+ """Generate ground truths for the uploaded data.
290
+
291
+ TODO: Need to add ground truths generation logic later.
292
+ """
@@ -0,0 +1,6 @@
1
+ actions:
2
+ upload:
3
+ entrypoint: plugin.upload.Uploader
4
+ options:
5
+ allow_generate_tasks: false
6
+ allow_generate_ground_truths: false