kailash 0.3.1__py3-none-any.whl → 0.3.2__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.
kailash/__init__.py CHANGED
@@ -15,7 +15,7 @@ from kailash.workflow.visualization import WorkflowVisualizer
15
15
  # For backward compatibility
16
16
  WorkflowGraph = Workflow
17
17
 
18
- __version__ = "0.3.1"
18
+ __version__ = "0.3.0"
19
19
 
20
20
  __all__ = [
21
21
  "Workflow",
@@ -451,9 +451,13 @@ class FunctionWrapper:
451
451
  """Execute the wrapped function."""
452
452
  result = self.executor.execute_function(self.func, inputs)
453
453
 
454
- # Wrap non-dict results in a dict
454
+ # Always wrap results in "result" key for consistent validation
455
+ # This ensures both dict and non-dict returns have the same structure
455
456
  if not isinstance(result, dict):
456
457
  result = {"result": result}
458
+ else:
459
+ # For dict results, wrap the entire dict in "result" key
460
+ result = {"result": result}
457
461
 
458
462
  return result
459
463
 
@@ -604,9 +608,13 @@ class ClassWrapper:
604
608
  # Execute the method
605
609
  result = self.executor.execute_function(method, inputs)
606
610
 
607
- # Wrap non-dict results in a dict
611
+ # Always wrap results in "result" key for consistent validation
612
+ # This ensures both dict and non-dict returns have the same structure
608
613
  if not isinstance(result, dict):
609
614
  result = {"result": result}
615
+ else:
616
+ # For dict results, wrap the entire dict in "result" key
617
+ result = {"result": result}
610
618
 
611
619
  return result
612
620
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kailash
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Python SDK for the Kailash container-node architecture
5
5
  Home-page: https://github.com/integrum/kailash-python-sdk
6
6
  Author: Integrum
@@ -1,4 +1,4 @@
1
- kailash/__init__.py,sha256=feTQzaHIVSbkvS6YBiOB4b0AviNhgZpkyeoiDNGRvDg,902
1
+ kailash/__init__.py,sha256=bvM6Yopv0yxkaLCEHIK3IdJJ4yy3SSJqyIw1b6_nX_8,902
2
2
  kailash/__main__.py,sha256=vr7TVE5o16V6LsTmRFKG6RDKUXHpIWYdZ6Dok2HkHnI,198
3
3
  kailash/access_control.py,sha256=2ctdRFeSeu-d7DU04Aovxh6Rt_4t3IyQfkKEjTeQiMM,25519
4
4
  kailash/manifest.py,sha256=qzOmeMGWz20Sp4IJitSH9gTVbGng7hlimc96VTW4KI8,24814
@@ -57,7 +57,7 @@ kailash/nodes/api/rate_limiting.py,sha256=kzArU7OrkDGLSqbjiOs5TSZz4VJsLeQYuYzOzw
57
57
  kailash/nodes/api/rest.py,sha256=cDNcdyqbk_q51ayAITDJ2GKFG9P5mmp9iLWfDukLaUE,43320
58
58
  kailash/nodes/api/security.py,sha256=VxMl5p7jWF2ViAqzHTFkte6agUiS9QEiQztV9l9PzDk,31134
59
59
  kailash/nodes/code/__init__.py,sha256=L3QBfnITPb6v-Wbq2ezNWt8xDlC4uGaTgrkqIJ9vGKU,1191
60
- kailash/nodes/code/python.py,sha256=FE4J4pTLTIeSgsKatXCJVOqHaZHBv84dVVE-BYFF-jU,38881
60
+ kailash/nodes/code/python.py,sha256=u7ds-h-WneecVXZ8Kk_s7tiUpy9LJXJLe5znCiI3bZo,39343
61
61
  kailash/nodes/data/__init__.py,sha256=doke_AW6pax3rONERFPgYv0EGJUcSBq40d-P9Bty0OM,4389
62
62
  kailash/nodes/data/directory.py,sha256=fbfLqD_ijRubk-4xew3604QntPsyDxqaF4k6TpfyjDg,9923
63
63
  kailash/nodes/data/event_generation.py,sha256=Bc1se0tPg1IAGCQDrWqlFmgoOpUyfMN9ku4Lm3akhXU,11579
@@ -128,9 +128,9 @@ kailash/workflow/state.py,sha256=UTZxs5-Ona6uvBhx1__i6-RX8gB4qazkBIWE7uyRmWQ,760
128
128
  kailash/workflow/templates.py,sha256=lOFd3zKrHvcjOQ7ZGlp09XzMrIJPQ7XfwyX9ndF7CAk,24337
129
129
  kailash/workflow/validation.py,sha256=JIbIajWVIaWHSvWtgZ4WUVJaBaUOCz5B9cyTwM--dL4,33060
130
130
  kailash/workflow/visualization.py,sha256=ICMWCWqh5fOQ7eJygbvu2PMWHxe-H5_0epwdZuz8cMw,19737
131
- kailash-0.3.1.dist-info/licenses/LICENSE,sha256=Axe6g7bTrJkToK9h9j2SpRUKKNaDZDCo2lQ2zPxCE6s,1065
132
- kailash-0.3.1.dist-info/METADATA,sha256=6BxwT19uLMdTZ1x57ce2RMLa_IMGqkLrPkzu51Yj5Mw,16312
133
- kailash-0.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
134
- kailash-0.3.1.dist-info/entry_points.txt,sha256=M_q3b8PG5W4XbhSgESzIJjh3_4OBKtZFYFsOdkr2vO4,45
135
- kailash-0.3.1.dist-info/top_level.txt,sha256=z7GzH2mxl66498pVf5HKwo5wwfPtt9Aq95uZUpH6JV0,8
136
- kailash-0.3.1.dist-info/RECORD,,
131
+ kailash-0.3.2.dist-info/licenses/LICENSE,sha256=Axe6g7bTrJkToK9h9j2SpRUKKNaDZDCo2lQ2zPxCE6s,1065
132
+ kailash-0.3.2.dist-info/METADATA,sha256=SZ5Zk7CfTGXO7QuJudo-Nf9D12tnW984niCgnqvyTzk,16312
133
+ kailash-0.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
134
+ kailash-0.3.2.dist-info/entry_points.txt,sha256=M_q3b8PG5W4XbhSgESzIJjh3_4OBKtZFYFsOdkr2vO4,45
135
+ kailash-0.3.2.dist-info/top_level.txt,sha256=z7GzH2mxl66498pVf5HKwo5wwfPtt9Aq95uZUpH6JV0,8
136
+ kailash-0.3.2.dist-info/RECORD,,