fabricatio 0.5.0.dev1__cp312-cp312-win_amd64.whl → 0.5.1.dev1__cp312-cp312-win_amd64.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.
- fabricatio/actions/__init__.py +5 -0
- fabricatio/rust.cp312-win_amd64.pyd +0 -0
- {fabricatio-0.5.0.dev1.data → fabricatio-0.5.1.dev1.data}/scripts/tdown.exe +0 -0
- {fabricatio-0.5.0.dev1.dist-info → fabricatio-0.5.1.dev1.dist-info}/METADATA +14 -16
- {fabricatio-0.5.0.dev1.dist-info → fabricatio-0.5.1.dev1.dist-info}/RECORD +7 -7
- {fabricatio-0.5.0.dev1.dist-info → fabricatio-0.5.1.dev1.dist-info}/WHEEL +0 -0
- {fabricatio-0.5.0.dev1.dist-info → fabricatio-0.5.1.dev1.dist-info}/licenses/LICENSE +0 -0
fabricatio/actions/__init__.py
CHANGED
Binary file
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fabricatio
|
3
|
-
Version: 0.5.
|
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
|
[](https://github.com/Whth/fabricatio/actions/workflows/build-package.yaml)
|
73
73
|
[](https://github.com/Whth/fabricatio/actions/workflows/ruff.yaml)
|
74
74
|
[](https://github.com/Whth/fabricatio/actions/workflows/tests.yaml)
|
75
|
+
[](https://coveralls.io/github/Whth/fabricatio)
|
75
76
|

|
76
77
|

|
77
78
|

|
@@ -119,35 +120,32 @@ make bdist
|
|
119
120
|
### Basic Example
|
120
121
|
|
121
122
|
```python
|
122
|
-
|
123
|
-
|
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
|
-
|
131
|
+
"""Action that says hello."""
|
132
|
+
|
129
133
|
output_key: str = "task_output"
|
130
134
|
|
131
|
-
async def _execute(self,
|
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
|
-
|
145
|
-
|
146
|
-
|
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.
|
2
|
-
fabricatio-0.5.
|
3
|
-
fabricatio-0.5.
|
4
|
-
fabricatio-0.5.
|
1
|
+
fabricatio-0.5.1.dev1.data/scripts/tdown.exe,sha256=MlaCo9TRRObL6t_DK69kt-xy8_yIcMCHnV78Muxejyo,3819520
|
2
|
+
fabricatio-0.5.1.dev1.dist-info/METADATA,sha256=WTNheUqP254g8tSElEVODSuzOwxUSjYGaTTPZnJcncc,7582
|
3
|
+
fabricatio-0.5.1.dev1.dist-info/WHEEL,sha256=2Rq0eWWH7u9Ffm_ZQEcE2_DVE8if9XSfMophnE-xWmc,96
|
4
|
+
fabricatio-0.5.1.dev1.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
|
5
5
|
fabricatio/__init__.py,sha256=t2-WdrUOcaDZbGr9PxMvxrOUXpIyXHcNeD1Rzkm4ffY,722
|
6
|
-
fabricatio/actions/__init__.py,sha256=
|
6
|
+
fabricatio/actions/__init__.py,sha256=bT7ixkrKSj5m2PyaM4WhSevOMo29xofOZfrcb8MNj1g,2180
|
7
7
|
fabricatio/capabilities/__init__.py,sha256=oXzwXPfTqEpR4_CvcqBYctVKW-qPPrNQO5ltlMHL6_M,2162
|
8
8
|
fabricatio/models/__init__.py,sha256=KthRBjM9H4EMALRMdkxdr8EUFzyf2elM7AnQoGKSxPQ,1608
|
9
9
|
fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
-
fabricatio/rust.cp312-win_amd64.pyd,sha256
|
10
|
+
fabricatio/rust.cp312-win_amd64.pyd,sha256=MOWw3yt3vEAc1heqQFLKbH-IImooGtRx4bCZuO7fcZY,174592
|
11
11
|
fabricatio/toolboxes/__init__.py,sha256=fxi4KOg-nmX_cmJCA6tG1j1hav-O95KelO2gCVwdLSY,402
|
12
12
|
fabricatio/toolboxes/arithmetic.py,sha256=tcaHLzGQvnlbxG57IANpZ2vTRO5QpSt366RckBlBIOg,1374
|
13
13
|
fabricatio/toolboxes/fs.py,sha256=fpSfU6YkCVJzSXsbT9WT3m80tH8i6mhLWnu9u7yhV-w,746
|
14
14
|
fabricatio/workflows/__init__.py,sha256=Twr7FaI7scUhz0LOlPktB6lf_k3VdcHNabCjpTsw938,315
|
15
|
-
fabricatio-0.5.
|
15
|
+
fabricatio-0.5.1.dev1.dist-info/RECORD,,
|
File without changes
|
File without changes
|