loom-core 1.5.0__py3-none-any.whl → 1.6.0__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.
loom/core/workflow.py CHANGED
@@ -35,6 +35,22 @@ class Workflow(Generic[InputT, StateT]):
35
35
  pass
36
36
  """
37
37
 
38
+ @classmethod
39
+ async def start(cls, input: InputT):
40
+ """
41
+ Start a new workflow instance with the given input.
42
+
43
+ This method compiles the workflow definition and initializes it with the provided input.
44
+ It is a convenience method that combines compilation and execution initiation.
45
+
46
+ Args:
47
+ input (InputT): The immutable input data for the workflow
48
+
49
+ Returns:
50
+ The Workflow Handle.
51
+ """
52
+ return await cls.compile().start(input)
53
+
38
54
  @classmethod
39
55
  def compile(cls) -> CompiledWorkflow[InputT, StateT]:
40
56
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: loom-core
3
- Version: 1.5.0
3
+ Version: 1.6.0
4
4
  Summary: Durable workflow orchestration engine for Python
5
5
  Home-page: https://github.com/satadeep3927/loom
6
6
  Author: Satadeep Dasgupta
@@ -16,7 +16,7 @@ loom/core/logger.py,sha256=ZSOZydQ-o8bfhh8VBcSWZNVE-NBvEedN7LDcbAEVJL0,1829
16
16
  loom/core/runner.py,sha256=nNA-EcdJt3UEgwzKHyb22xD7aLT8kI01x5UVdLteSI8,1998
17
17
  loom/core/state.py,sha256=KynxRQfroYxUgv3Toy0c-yrPsmD5zHn7L3s_y8tkgcU,3142
18
18
  loom/core/worker.py,sha256=jpTtvM1rIToVkG4SwJu1W9Q-eL3bw8b3N8KsxxrRovA,5322
19
- loom/core/workflow.py,sha256=E_A2rI6iaW3liZmVy3X98oxSeBDXMGiQnRZRq3Cp3BA,5755
19
+ loom/core/workflow.py,sha256=aAnnUqnvhz8m6wyZ7m6FRb21Wg8jsQxmnIyVF4IwYfM,6283
20
20
  loom/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  loom/database/db.py,sha256=WcP0B4lVYyXTLc1obVaeULJk-5uIs7nFSoBP3YL5ax0,27551
22
22
  loom/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -59,9 +59,9 @@ loom/web/dist/index.html,sha256=j04yxn_fMdXOhyS1spt5ayGgvVLV4lAjcWqxvxLmaWU,507
59
59
  loom/web/dist/vite.svg,sha256=SnSK_UQ5GLsWWRyDTEAdrjPoeGGrXbrQgRw6O0qSFPs,1497
60
60
  loom/web/dist/assets/index-CKj6DvD9.css,sha256=mYQs_55713g8TdhODZm-2gRU12pK74CyqfIx58gyurc,63560
61
61
  loom/web/dist/assets/index-Vavv5UoS.js,sha256=TOGd_FVWGKJ6ovnNTQBdqBE2WwWNCy-W8E7y2HvwlaQ,841621
62
- loom_core-1.5.0.dist-info/licenses/LICENSE,sha256=8EpC-clAYRUfJQ92T3iQEIIWYjx2A3Kfk28zOd8lh7I,1095
63
- loom_core-1.5.0.dist-info/METADATA,sha256=bQrDCJchQrxh7O3P_9niIlQLW7-s8lWLeu-aCO54FLM,9013
64
- loom_core-1.5.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
65
- loom_core-1.5.0.dist-info/entry_points.txt,sha256=Jx5HXHL2y7jvSjkwkH3QqF954cbSxiE6OGwL2coldyE,42
66
- loom_core-1.5.0.dist-info/top_level.txt,sha256=cAfRgAuCuit-cU9iBrf0bS4ovvmq-URykNd9fmYMojg,5
67
- loom_core-1.5.0.dist-info/RECORD,,
62
+ loom_core-1.6.0.dist-info/licenses/LICENSE,sha256=8EpC-clAYRUfJQ92T3iQEIIWYjx2A3Kfk28zOd8lh7I,1095
63
+ loom_core-1.6.0.dist-info/METADATA,sha256=RqamG2EoqdgY2HyD3A5kXnqI7J_UDWI-35Cai7rwGns,9013
64
+ loom_core-1.6.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
65
+ loom_core-1.6.0.dist-info/entry_points.txt,sha256=Jx5HXHL2y7jvSjkwkH3QqF954cbSxiE6OGwL2coldyE,42
66
+ loom_core-1.6.0.dist-info/top_level.txt,sha256=cAfRgAuCuit-cU9iBrf0bS4ovvmq-URykNd9fmYMojg,5
67
+ loom_core-1.6.0.dist-info/RECORD,,