fabricatio 0.5.0.dev1__cp313-cp313-manylinux_2_34_x86_64.whl → 0.5.1.dev1__cp313-cp313-manylinux_2_34_x86_64.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.
@@ -67,3 +67,8 @@ if find_spec("fabricatio_actions"):
67
67
  "RetrieveFromLatest",
68
68
  "RetrieveFromPersistent",
69
69
  ]
70
+
71
+ if find_spec("fabricatio_yue"):
72
+ from fabricatio_yue.actions.compose import Compose
73
+
74
+ __all__ += ["Compose"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fabricatio
3
- Version: 0.5.0.dev1
3
+ Version: 0.5.1.dev1
4
4
  Classifier: License :: OSI Approved :: MIT License
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Programming Language :: Python :: 3.12
@@ -72,6 +72,7 @@ Project-URL: Issues, https://github.com/Whth/fabricatio/issues
72
72
  [![Build Package](https://github.com/Whth/fabricatio/actions/workflows/build-package.yaml/badge.svg)](https://github.com/Whth/fabricatio/actions/workflows/build-package.yaml)
73
73
  [![Ruff Lint](https://github.com/Whth/fabricatio/actions/workflows/ruff.yaml/badge.svg)](https://github.com/Whth/fabricatio/actions/workflows/ruff.yaml)
74
74
  [![Tests](https://github.com/Whth/fabricatio/actions/workflows/tests.yaml/badge.svg)](https://github.com/Whth/fabricatio/actions/workflows/tests.yaml)
75
+ [![Coverage Status](https://coveralls.io/repos/github/Whth/fabricatio/badge.svg)](https://coveralls.io/github/Whth/fabricatio)
75
76
  ![GitHub Issues](https://img.shields.io/github/issues/Whth/fabricatio)
76
77
  ![GitHub Pull Requests](https://img.shields.io/github/issues-pr/Whth/fabricatio)
77
78
  ![GitHub Stars](https://img.shields.io/github/stars/Whth/fabricatio)
@@ -119,35 +120,32 @@ make bdist
119
120
  ### Basic Example
120
121
 
121
122
  ```python
122
- import asyncio
123
- from fabricatio import Action, Role, Task, logger, WorkFlow, Event
123
+ """Example of a simple hello world program using fabricatio."""
124
+
124
125
  from typing import Any
125
126
 
127
+ from fabricatio import Action, Event, Role, Task, WorkFlow, logger
128
+
126
129
 
127
130
  class Hello(Action):
128
- name: str = "hello"
131
+ """Action that says hello."""
132
+
129
133
  output_key: str = "task_output"
130
134
 
131
- async def _execute(self, task_input: Task[str], **_) -> Any:
135
+ async def _execute(self, **_) -> Any:
132
136
  ret = "Hello fabricatio!"
133
137
  logger.info("executing talk action")
134
138
  return ret
135
139
 
140
+ """Main function."""
136
141
 
137
- async def main() -> None:
138
- Role(
139
- name="talker",
140
- description="talker role",
141
- registry={Event.quick_instantiate("talk"): WorkFlow(name="talk", steps=(Hello,))}
142
- )
143
142
 
144
- task = Task(name="say hello", goals=["say hello"], description="say hello to the world")
145
- result = await task.delegate("talk")
146
- logger.success(f"Result: {result}")
143
+ (Role()
144
+ .register_workflow(Event.quick_instantiate("talk"), WorkFlow(name="talk", steps=(Hello,)))
145
+ .dispatch())
147
146
 
147
+ assert Task(name="say hello").delegate_blocking("talk") == "Hello fabricatio!"
148
148
 
149
- if __name__ == "__main__":
150
- asyncio.run(main())
151
149
  ```
152
150
 
153
151
  ### Examples
@@ -1,15 +1,15 @@
1
- fabricatio-0.5.0.dev1.data/scripts/tdown,sha256=aQF9qrdNEftHmIId3K0WUxdAx-THEoUsq36qe0q29JE,5130216
2
- fabricatio-0.5.0.dev1.dist-info/METADATA,sha256=cv5v-gTA1r5U_VrkyL6ZlaWptj_uayRDrxcWaGRQHfw,7445
3
- fabricatio-0.5.0.dev1.dist-info/WHEEL,sha256=jLp2duqf8HdGR38ANSTZasShrLQst0e8KGzZrz_xSn8,108
4
- fabricatio-0.5.0.dev1.dist-info/licenses/LICENSE,sha256=yDZaTLnOi03bi3Dk6f5IjhLUc5old2yOsihHWU0z-i0,1067
1
+ fabricatio-0.5.1.dev1.data/scripts/tdown,sha256=bGBw9sjrVEXiEGvIrvk7c1ubhRBJAxwDCWm0mQ_cNZ4,5131464
2
+ fabricatio-0.5.1.dev1.dist-info/METADATA,sha256=SjvIxCcg41zomNEbKc2b063igdweBkQe0db1xgaBx3c,7414
3
+ fabricatio-0.5.1.dev1.dist-info/WHEEL,sha256=jLp2duqf8HdGR38ANSTZasShrLQst0e8KGzZrz_xSn8,108
4
+ fabricatio-0.5.1.dev1.dist-info/licenses/LICENSE,sha256=yDZaTLnOi03bi3Dk6f5IjhLUc5old2yOsihHWU0z-i0,1067
5
5
  fabricatio/__init__.py,sha256=RuDz5JHlGrYWvMm9H08prJxhwVQFr6-SpKWA3FB9JWg,694
6
- fabricatio/actions/__init__.py,sha256=i-LBb4pF29XVnaKfdMJwcF914WPu2B_DdZVfba_T4kg,1990
6
+ fabricatio/actions/__init__.py,sha256=4xR1wiPq2HPnVABXy6R3wOxcg9LZKD7g-h9IdTcNKvY,2106
7
7
  fabricatio/capabilities/__init__.py,sha256=jFjEAlWYJcl60_hGogmT8s9RClil5xK-YiGgnk9xeh4,2090
8
8
  fabricatio/models/__init__.py,sha256=bbfRfQhqXcgDXtGQOW2hGgVViOC_wOWylhy9kTQ4OwA,1551
9
9
  fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- fabricatio/rust.cpython-313-x86_64-linux-gnu.so,sha256=4bBYbJZtXoon4r03ENpLZCPjjllvnlZ4XPrKQRH3KnY,392712
10
+ fabricatio/rust.cpython-313-x86_64-linux-gnu.so,sha256=bqAxyk23eGtNgGXdX-IsvSWiiWDjVu-ppvA_QeR9JJ8,392712
11
11
  fabricatio/toolboxes/__init__.py,sha256=_Snn7bB7pBsRYNgqzBzVL8jgka0FdgK6Lme8UnDsBjM,386
12
12
  fabricatio/toolboxes/arithmetic.py,sha256=kiX83WRfFyqNavpz9Wd0fPxa2HQbi_VTMRNp4B8ErNQ,1312
13
13
  fabricatio/toolboxes/fs.py,sha256=lipQP6I8HR08ujucsbMR_qBHxlLzMu4O38qPFitZtHc,715
14
14
  fabricatio/workflows/__init__.py,sha256=sr-0tgpNPdN5t2pDQa-gp-KUE7K0QDtjP9QGvWYLZ9A,305
15
- fabricatio-0.5.0.dev1.dist-info/RECORD,,
15
+ fabricatio-0.5.1.dev1.dist-info/RECORD,,