fabricatio 0.2.1.dev0__cp313-cp313-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/__init__.py +37 -0
- fabricatio/_rust.cp313-win_amd64.pyd +0 -0
- fabricatio/_rust.pyi +53 -0
- fabricatio/_rust_instances.py +8 -0
- fabricatio/actions/__init__.py +5 -0
- fabricatio/actions/communication.py +15 -0
- fabricatio/actions/transmission.py +23 -0
- fabricatio/config.py +263 -0
- fabricatio/core.py +167 -0
- fabricatio/decorators.py +179 -0
- fabricatio/fs/__init__.py +5 -0
- fabricatio/fs/curd.py +130 -0
- fabricatio/fs/readers.py +24 -0
- fabricatio/journal.py +28 -0
- fabricatio/models/action.py +139 -0
- fabricatio/models/advanced.py +128 -0
- fabricatio/models/events.py +82 -0
- fabricatio/models/generic.py +144 -0
- fabricatio/models/kwargs_types.py +26 -0
- fabricatio/models/role.py +48 -0
- fabricatio/models/task.py +276 -0
- fabricatio/models/tool.py +188 -0
- fabricatio/models/usages.py +515 -0
- fabricatio/models/utils.py +78 -0
- fabricatio/parser.py +93 -0
- fabricatio/py.typed +0 -0
- fabricatio/toolboxes/__init__.py +17 -0
- fabricatio/toolboxes/arithmetic.py +62 -0
- fabricatio/toolboxes/fs.py +15 -0
- fabricatio/toolboxes/task.py +6 -0
- fabricatio-0.2.1.dev0.data/scripts/tdown.exe +0 -0
- fabricatio-0.2.1.dev0.dist-info/METADATA +420 -0
- fabricatio-0.2.1.dev0.dist-info/RECORD +35 -0
- fabricatio-0.2.1.dev0.dist-info/WHEEL +4 -0
- fabricatio-0.2.1.dev0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
"""Contains the built-in toolboxes for the Fabricatio package."""
|
2
|
+
|
3
|
+
from typing import Set
|
4
|
+
|
5
|
+
from fabricatio.models.tool import ToolBox
|
6
|
+
from fabricatio.toolboxes.arithmetic import arithmetic_toolbox
|
7
|
+
from fabricatio.toolboxes.fs import fs_toolbox
|
8
|
+
from fabricatio.toolboxes.task import task_toolbox
|
9
|
+
|
10
|
+
basic_toolboxes: Set[ToolBox] = {task_toolbox, arithmetic_toolbox}
|
11
|
+
|
12
|
+
__all__ = [
|
13
|
+
"arithmetic_toolbox",
|
14
|
+
"basic_toolboxes",
|
15
|
+
"fs_toolbox",
|
16
|
+
"task_toolbox",
|
17
|
+
]
|
@@ -0,0 +1,62 @@
|
|
1
|
+
"""Arithmetic tools for Fabricatio."""
|
2
|
+
|
3
|
+
from fabricatio.models.tool import ToolBox
|
4
|
+
|
5
|
+
arithmetic_toolbox = ToolBox(name="ArithmeticToolBox", description="A toolbox for arithmetic operations.")
|
6
|
+
|
7
|
+
|
8
|
+
@arithmetic_toolbox.collect_tool
|
9
|
+
def add(a: float, b: float) -> float:
|
10
|
+
"""Add two numbers.
|
11
|
+
|
12
|
+
Args:
|
13
|
+
a (float): The first number.
|
14
|
+
b (float): The second number.
|
15
|
+
|
16
|
+
Returns:
|
17
|
+
float: The sum of the two numbers.
|
18
|
+
"""
|
19
|
+
return a + b
|
20
|
+
|
21
|
+
|
22
|
+
@arithmetic_toolbox.collect_tool
|
23
|
+
def subtract(a: float, b: float) -> float:
|
24
|
+
"""Subtract two numbers.
|
25
|
+
|
26
|
+
Args:
|
27
|
+
a (float): The first number.
|
28
|
+
b (float): The second number.
|
29
|
+
|
30
|
+
Returns:
|
31
|
+
float: The result of subtracting b from a.
|
32
|
+
"""
|
33
|
+
return a - b
|
34
|
+
|
35
|
+
|
36
|
+
@arithmetic_toolbox.collect_tool
|
37
|
+
def multiply(a: float, b: float) -> float:
|
38
|
+
"""Multiply two numbers.
|
39
|
+
|
40
|
+
Args:
|
41
|
+
a (float): The first number.
|
42
|
+
b (float): The second number.
|
43
|
+
|
44
|
+
Returns:
|
45
|
+
float: The product of the two numbers.
|
46
|
+
"""
|
47
|
+
return a * b
|
48
|
+
|
49
|
+
|
50
|
+
@arithmetic_toolbox.collect_tool
|
51
|
+
def divide(a: float, b: float) -> float:
|
52
|
+
"""Divide two numbers.
|
53
|
+
|
54
|
+
Args:
|
55
|
+
a (float): The numerator.
|
56
|
+
b (float): The denominator (must not be zero).
|
57
|
+
|
58
|
+
Returns:
|
59
|
+
float: The result of dividing a by b.
|
60
|
+
|
61
|
+
"""
|
62
|
+
return a / b
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"""File system tool box."""
|
2
|
+
|
3
|
+
from fabricatio.fs.curd import copy_file, create_directory, delete_directory, delete_file, dump_text, move_file, tree
|
4
|
+
from fabricatio.models.tool import ToolBox
|
5
|
+
|
6
|
+
fs_toolbox = (
|
7
|
+
ToolBox(name="FsToolBox", description="A toolbox for basic file system operations.")
|
8
|
+
.add_tool(dump_text)
|
9
|
+
.add_tool(copy_file)
|
10
|
+
.add_tool(move_file)
|
11
|
+
.add_tool(delete_file)
|
12
|
+
.add_tool(tree)
|
13
|
+
.add_tool(delete_directory)
|
14
|
+
.add_tool(create_directory)
|
15
|
+
)
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"""This module contains the toolbox for tasks management."""
|
2
|
+
|
3
|
+
from fabricatio.models.task import Task
|
4
|
+
from fabricatio.models.tool import ToolBox
|
5
|
+
|
6
|
+
task_toolbox = ToolBox(name="TaskToolBox", description="A toolbox for tasks management.").add_tool(Task.simple_task)
|
Binary file
|
@@ -0,0 +1,420 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: fabricatio
|
3
|
+
Version: 0.2.1.dev0
|
4
|
+
Classifier: License :: OSI Approved :: MIT License
|
5
|
+
Classifier: Programming Language :: Rust
|
6
|
+
Classifier: Programming Language :: Python :: 3.12
|
7
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
8
|
+
Classifier: Framework :: AsyncIO
|
9
|
+
Classifier: Framework :: Pydantic :: 2
|
10
|
+
Classifier: Typing :: Typed
|
11
|
+
Requires-Dist: appdirs>=1.4.4
|
12
|
+
Requires-Dist: asyncio>=3.4.3
|
13
|
+
Requires-Dist: asyncstdlib>=3.13.0
|
14
|
+
Requires-Dist: code2prompt
|
15
|
+
Requires-Dist: gitpython>=3.1.44
|
16
|
+
Requires-Dist: litellm>=1.60.0
|
17
|
+
Requires-Dist: loguru>=0.7.3
|
18
|
+
Requires-Dist: magika>=0.5.1
|
19
|
+
Requires-Dist: orjson>=3.10.15
|
20
|
+
Requires-Dist: pydantic>=2.10.6
|
21
|
+
Requires-Dist: pydantic-settings>=2.7.1
|
22
|
+
Requires-Dist: pymitter>=1.0.0
|
23
|
+
Requires-Dist: questionary>=2.1.0
|
24
|
+
Requires-Dist: regex>=2024.11.6
|
25
|
+
Requires-Dist: rich>=13.9.4
|
26
|
+
Requires-Dist: faiss-cpu>=1.10.0 ; extra == 'rag'
|
27
|
+
Requires-Dist: pymilvus>=2.5.4 ; extra == 'rag'
|
28
|
+
Requires-Dist: fabricatio[rag] ; extra == 'full'
|
29
|
+
Provides-Extra: rag
|
30
|
+
Provides-Extra: full
|
31
|
+
License-File: LICENSE
|
32
|
+
Summary: A LLM multi-agent framework.
|
33
|
+
Keywords: ai,agents,multi-agent,llm,pyo3
|
34
|
+
Author-email: Whth <zettainspector@foxmail.com>
|
35
|
+
Requires-Python: >=3.12, <3.13
|
36
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
37
|
+
Project-URL: Homepage, https://github.com/Whth/fabricatio
|
38
|
+
Project-URL: Repository, https://github.com/Whth/fabricatio
|
39
|
+
Project-URL: Issues, https://github.com/Whth/fabricatio/issues
|
40
|
+
|
41
|
+
|
42
|
+
# Fabricatio
|
43
|
+
|
44
|
+

|
45
|
+

|
46
|
+

|
47
|
+
|
48
|
+
Fabricatio is a Python library designed for building LLM (Large Language Model) applications using an event-based agent structure. It integrates Rust for performance-critical tasks, utilizes Handlebars for templating, and employs PyO3 for Python bindings.
|
49
|
+
|
50
|
+
## Features
|
51
|
+
|
52
|
+
- **Event-Based Architecture**: Utilizes an EventEmitter pattern for robust task management.
|
53
|
+
- **LLM Integration**: Supports interactions with large language models for intelligent task processing.
|
54
|
+
- **Templating Engine**: Uses Handlebars for dynamic content generation.
|
55
|
+
- **Toolboxes**: Provides predefined toolboxes for common operations like file manipulation and arithmetic.
|
56
|
+
- **Async Support**: Fully asynchronous for efficient execution.
|
57
|
+
- **Extensible**: Easy to extend with custom actions, workflows, and tools.
|
58
|
+
|
59
|
+
## Installation
|
60
|
+
|
61
|
+
### Using UV (Recommended)
|
62
|
+
|
63
|
+
To install Fabricatio using `uv` (a package manager for Python):
|
64
|
+
|
65
|
+
```bash
|
66
|
+
# Install uv if not already installed
|
67
|
+
pip install uv
|
68
|
+
|
69
|
+
# Clone the repository
|
70
|
+
git clone https://github.com/Whth/fabricatio.git
|
71
|
+
cd fabricatio
|
72
|
+
|
73
|
+
# Install the package in development mode with uv
|
74
|
+
uv --with-editable . maturin develop --uv -r
|
75
|
+
```
|
76
|
+
|
77
|
+
### Building Distribution
|
78
|
+
|
79
|
+
For production builds:
|
80
|
+
|
81
|
+
```bash
|
82
|
+
# Build distribution packages
|
83
|
+
make bdist
|
84
|
+
```
|
85
|
+
|
86
|
+
This will generate distribution files in the `dist` directory.
|
87
|
+
|
88
|
+
## Usage
|
89
|
+
|
90
|
+
### Basic Example
|
91
|
+
|
92
|
+
Below are some basic examples demonstrating how to use Fabricatio for different purposes.
|
93
|
+
|
94
|
+
#### Simple Hello World Program
|
95
|
+
|
96
|
+
```python
|
97
|
+
import asyncio
|
98
|
+
from fabricatio import Action, Role, Task, logger
|
99
|
+
|
100
|
+
|
101
|
+
class Hello(Action):
|
102
|
+
"""Action that says hello."""
|
103
|
+
|
104
|
+
name: str = "hello"
|
105
|
+
output_key: str = "task_output"
|
106
|
+
|
107
|
+
async def _execute(self, task_input: Task[str], **_) -> Any:
|
108
|
+
ret = "Hello fabricatio!"
|
109
|
+
logger.info("executing talk action")
|
110
|
+
return ret
|
111
|
+
|
112
|
+
|
113
|
+
async def main() -> None:
|
114
|
+
"""Main function."""
|
115
|
+
role = Role(
|
116
|
+
name="talker",
|
117
|
+
description="talker role",
|
118
|
+
registry={Task.pending_label: WorkFlow(name="talk", steps=(Hello,))}
|
119
|
+
)
|
120
|
+
|
121
|
+
task = Task(name="say hello", goal="say hello", description="say hello to the world")
|
122
|
+
result = await task.delegate()
|
123
|
+
logger.success(f"Result: {result}")
|
124
|
+
|
125
|
+
|
126
|
+
if __name__ == "__main__":
|
127
|
+
asyncio.run(main())
|
128
|
+
```
|
129
|
+
|
130
|
+
#### Writing and Dumping Code
|
131
|
+
|
132
|
+
```python
|
133
|
+
import asyncio
|
134
|
+
from fabricatio import Action, Event, PythonCapture, Role, Task, ToolBox, WorkFlow, fs_toolbox, logger
|
135
|
+
|
136
|
+
|
137
|
+
class WriteCode(Action):
|
138
|
+
"""Action that writes code based on a prompt."""
|
139
|
+
|
140
|
+
name: str = "write code"
|
141
|
+
output_key: str = "source_code"
|
142
|
+
|
143
|
+
async def _execute(self, task_input: Task[str], **_) -> str:
|
144
|
+
return await self.aask_validate(
|
145
|
+
task_input.briefing,
|
146
|
+
validator=PythonCapture.capture,
|
147
|
+
)
|
148
|
+
|
149
|
+
|
150
|
+
class DumpCode(Action):
|
151
|
+
"""Action that dumps code to the file system."""
|
152
|
+
|
153
|
+
name: str = "dump code"
|
154
|
+
description: str = "Dump code to file system"
|
155
|
+
toolboxes: set[ToolBox] = {fs_toolbox}
|
156
|
+
output_key: str = "task_output"
|
157
|
+
|
158
|
+
async def _execute(self, task_input: Task, source_code: str, **_) -> Any:
|
159
|
+
path = await self.handle_fin_grind(task_input, {"source_code": source_code})
|
160
|
+
return path[0] if path else None
|
161
|
+
|
162
|
+
|
163
|
+
async def main() -> None:
|
164
|
+
"""Main function."""
|
165
|
+
role = Role(
|
166
|
+
name="Coder",
|
167
|
+
description="A python coder who can write and document code",
|
168
|
+
registry={
|
169
|
+
Event.instantiate_from("coding.*").push("pending"): WorkFlow(
|
170
|
+
name="write code", steps=(WriteCode, DumpCode)
|
171
|
+
),
|
172
|
+
},
|
173
|
+
)
|
174
|
+
|
175
|
+
prompt = "write a Python CLI app which prints 'hello world' n times with detailed Google-style docstring. Write the source code to `cli.py`."
|
176
|
+
|
177
|
+
proposed_task = await role.propose(prompt)
|
178
|
+
path = await proposed_task.move_to("coding").delegate()
|
179
|
+
logger.success(f"Code Path: {path}")
|
180
|
+
|
181
|
+
|
182
|
+
if __name__ == "__main__":
|
183
|
+
asyncio.run(main())
|
184
|
+
```
|
185
|
+
|
186
|
+
#### Proposing Tasks
|
187
|
+
|
188
|
+
```python
|
189
|
+
import asyncio
|
190
|
+
from typing import Any
|
191
|
+
|
192
|
+
from fabricatio import Action, Role, Task, WorkFlow, logger
|
193
|
+
|
194
|
+
|
195
|
+
class WriteDocumentation(Action):
|
196
|
+
"""Action that generates documentation for the code in markdown format."""
|
197
|
+
|
198
|
+
name: str = "write documentation"
|
199
|
+
description: str = "Write detailed documentation for the provided code."
|
200
|
+
output_key: str = "task_output"
|
201
|
+
|
202
|
+
async def _execute(self, task_input: Task[str], **_) -> str:
|
203
|
+
return await self.aask(task_input.briefing)
|
204
|
+
|
205
|
+
|
206
|
+
async def main() -> None:
|
207
|
+
"""Main function."""
|
208
|
+
role = Role(
|
209
|
+
name="Documenter",
|
210
|
+
description="Role responsible for writing documentation.",
|
211
|
+
registry={
|
212
|
+
"doc.*": WorkFlow(name="write documentation", steps=(WriteDocumentation,))
|
213
|
+
}
|
214
|
+
)
|
215
|
+
|
216
|
+
prompt = "write a Rust clap CLI that downloads an HTML page"
|
217
|
+
proposed_task = await role.propose(prompt)
|
218
|
+
documentation = await proposed_task.move_to("doc").delegate()
|
219
|
+
logger.success(f"Documentation:\n{documentation}")
|
220
|
+
|
221
|
+
|
222
|
+
if __name__ == "__main__":
|
223
|
+
asyncio.run(main())
|
224
|
+
```
|
225
|
+
|
226
|
+
#### Complex Workflow Handling
|
227
|
+
|
228
|
+
```python
|
229
|
+
import asyncio
|
230
|
+
from fabricatio import Action, Event, Role, Task, WorkFlow, logger
|
231
|
+
|
232
|
+
|
233
|
+
class WriteCode(Action):
|
234
|
+
"""Action that writes code based on a prompt."""
|
235
|
+
|
236
|
+
name: str = "write code"
|
237
|
+
output_key: str = "source_code"
|
238
|
+
|
239
|
+
async def _execute(self, task_input: Task[str], **_) -> str:
|
240
|
+
return await self.aask_validate(
|
241
|
+
task_input.briefing,
|
242
|
+
validator=PythonCapture.capture,
|
243
|
+
)
|
244
|
+
|
245
|
+
|
246
|
+
class WriteDocumentation(Action):
|
247
|
+
"""Action that generates documentation for the code in markdown format."""
|
248
|
+
|
249
|
+
name: str = "write documentation"
|
250
|
+
description: str = "Write detailed documentation for the provided code."
|
251
|
+
output_key: str = "task_output"
|
252
|
+
|
253
|
+
async def _execute(self, task_input: Task[str], **_) -> str:
|
254
|
+
return await self.aask(task_input.briefing)
|
255
|
+
|
256
|
+
|
257
|
+
async def main() -> None:
|
258
|
+
"""Main function."""
|
259
|
+
role = Role(
|
260
|
+
name="Developer",
|
261
|
+
description="A developer who can write code and documentation.",
|
262
|
+
registry={
|
263
|
+
Event.instantiate_from("coding.*").push("pending"): WorkFlow(
|
264
|
+
name="write code", steps=(WriteCode,)
|
265
|
+
),
|
266
|
+
Event.instantiate_from("doc.*").push("pending"): WorkFlow(
|
267
|
+
name="write documentation", steps=(WriteDocumentation,)
|
268
|
+
),
|
269
|
+
}
|
270
|
+
)
|
271
|
+
|
272
|
+
# Propose a coding task
|
273
|
+
code_task_prompt = "write a Python CLI app which adds numbers from a file."
|
274
|
+
proposed_task = await role.propose(code_task_prompt)
|
275
|
+
code = await proposed_task.move_to("coding").delegate()
|
276
|
+
logger.success(f"Code:\n{code}")
|
277
|
+
|
278
|
+
# Propose a documentation task
|
279
|
+
doc_task_prompt = f"{code}\n\nwrite Readme.md file for the above code."
|
280
|
+
proposed_doc_task = await role.propose(doc_task_prompt)
|
281
|
+
documentation = await proposed_doc_task.move_to("doc").delegate()
|
282
|
+
logger.success(f"Documentation:\n{documentation}")
|
283
|
+
|
284
|
+
|
285
|
+
if __name__ == "__main__":
|
286
|
+
asyncio.run(main())
|
287
|
+
```
|
288
|
+
|
289
|
+
### Advanced Examples
|
290
|
+
|
291
|
+
#### Template Management and Rendering
|
292
|
+
|
293
|
+
```python
|
294
|
+
from fabricatio._rust_instances import template_manager
|
295
|
+
|
296
|
+
template_name = "claude-xml.hbs"
|
297
|
+
data = {
|
298
|
+
"absolute_code_path": "/path/to/project",
|
299
|
+
"source_tree": "source tree content",
|
300
|
+
"files": [{"path": "file1.py", "code": "print('Hello')"}],
|
301
|
+
}
|
302
|
+
|
303
|
+
rendered_template = template_manager.render_template(template_name, data)
|
304
|
+
print(rendered_template)
|
305
|
+
```
|
306
|
+
|
307
|
+
#### Handling Security Vulnerabilities
|
308
|
+
|
309
|
+
```python
|
310
|
+
from fabricatio.models.usages import ToolBoxUsage
|
311
|
+
from fabricatio.models.task import Task
|
312
|
+
|
313
|
+
toolbox_usage = ToolBoxUsage()
|
314
|
+
|
315
|
+
async def handle_security_vulnerabilities():
|
316
|
+
task = Task(
|
317
|
+
name="Security Check",
|
318
|
+
goal=["Identify security vulnerabilities"],
|
319
|
+
description="Perform a thorough security review on the project.",
|
320
|
+
dependencies=["./src/main.py"]
|
321
|
+
)
|
322
|
+
|
323
|
+
vulnerabilities = await toolbox_usage.gather_tools_fine_grind(task)
|
324
|
+
for vulnerability in vulnerabilities:
|
325
|
+
print(f"Found vulnerability: {vulnerability.name}")
|
326
|
+
```
|
327
|
+
|
328
|
+
#### Managing CTF Challenges
|
329
|
+
|
330
|
+
```python
|
331
|
+
import asyncio
|
332
|
+
|
333
|
+
from fabricatio.models.usages import ToolBoxUsage
|
334
|
+
from fabricatio.models.task import Task
|
335
|
+
|
336
|
+
toolbox_usage = ToolBoxUsage()
|
337
|
+
|
338
|
+
async def solve_ctf_challenge(challenge_name: str, challenge_description: str, files: list[str]):
|
339
|
+
task = Task(
|
340
|
+
name=challenge_name,
|
341
|
+
goal=[f"Solve {challenge_name} challenge"],
|
342
|
+
description=challenge_description,
|
343
|
+
dependencies=files
|
344
|
+
)
|
345
|
+
|
346
|
+
solution = await toolbox_usage.gather_tools_fine_grind(task)
|
347
|
+
print(f"Challenge Solved: {solution}")
|
348
|
+
|
349
|
+
if __name__ == "__main__":
|
350
|
+
asyncio.run(solve_ctf_challenge("Binary Exploitation", "CTF Binary Exploitation Challenge", ["./challenges/binary_exploit"]))
|
351
|
+
```
|
352
|
+
|
353
|
+
### Configuration
|
354
|
+
|
355
|
+
The configuration for Fabricatio is managed via environment variables or TOML files. The default configuration file (`config.toml`) can be overridden by specifying a custom path.
|
356
|
+
|
357
|
+
Example `config.toml`:
|
358
|
+
|
359
|
+
```toml
|
360
|
+
[llm]
|
361
|
+
api_endpoint = "https://api.openai.com"
|
362
|
+
api_key = "your_openai_api_key"
|
363
|
+
timeout = 300
|
364
|
+
max_retries = 3
|
365
|
+
model = "gpt-3.5-turbo"
|
366
|
+
temperature = 1.0
|
367
|
+
stop_sign = ["\n\n\n", "User:"]
|
368
|
+
top_p = 0.35
|
369
|
+
generation_count = 1
|
370
|
+
stream = false
|
371
|
+
max_tokens = 8192
|
372
|
+
```
|
373
|
+
|
374
|
+
### Development Setup
|
375
|
+
|
376
|
+
To set up a development environment for Fabricatio:
|
377
|
+
|
378
|
+
1. **Clone the Repository**:
|
379
|
+
```bash
|
380
|
+
git clone https://github.com/Whth/fabricatio.git
|
381
|
+
cd fabricatio
|
382
|
+
```
|
383
|
+
|
384
|
+
2. **Install Dependencies**:
|
385
|
+
```bash
|
386
|
+
uv --with-editable . maturin develop --uv -r
|
387
|
+
```
|
388
|
+
|
389
|
+
3. **Run Tests**:
|
390
|
+
```bash
|
391
|
+
make test
|
392
|
+
```
|
393
|
+
|
394
|
+
4. **Build Documentation**:
|
395
|
+
```bash
|
396
|
+
make docs
|
397
|
+
```
|
398
|
+
|
399
|
+
### Contributing
|
400
|
+
|
401
|
+
Contributions are welcome! Please follow these guidelines when contributing:
|
402
|
+
|
403
|
+
1. Fork the repository.
|
404
|
+
2. Create your feature branch (`git checkout -b feature/new-feature`).
|
405
|
+
3. Commit your changes (`git commit -am 'Add new feature'`).
|
406
|
+
4. Push to the branch (`git push origin feature/new-feature`).
|
407
|
+
5. Create a new Pull Request.
|
408
|
+
|
409
|
+
### License
|
410
|
+
|
411
|
+
Fabricatio is licensed under the MIT License. See [LICENSE](LICENSE) for more details.
|
412
|
+
|
413
|
+
### Acknowledgments
|
414
|
+
|
415
|
+
Special thanks to the contributors and maintainers of:
|
416
|
+
- [PyO3](https://github.com/PyO3/pyo3)
|
417
|
+
- [Maturin](https://github.com/PyO3/maturin)
|
418
|
+
- [Handlebars.rs](https://github.com/sunng87/handlebars-rust)
|
419
|
+
|
420
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
fabricatio-0.2.1.dev0.dist-info/METADATA,sha256=-2x-7rkT5tiOu36bnmfWG-8JHewUxqssqjuT1O0PokQ,12378
|
2
|
+
fabricatio-0.2.1.dev0.dist-info/WHEEL,sha256=XsgF4V7TnSmJTnuU62xP5hrnZJ48WDEWrpRztgXGPlM,96
|
3
|
+
fabricatio-0.2.1.dev0.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
|
4
|
+
fabricatio/actions/communication.py,sha256=NZxIIncKgJSDyBrqNebUtH_haqtxHa8ld2TZxT3CMdU,429
|
5
|
+
fabricatio/actions/transmission.py,sha256=xpvKqbXqgpi1BWy-vUUvmd8NZ1GhRNfsYUBp-l2jLyk,862
|
6
|
+
fabricatio/actions/__init__.py,sha256=eFmFVPQvtNgFynIXBVr3eP-vWQDWCPng60YY5LXvZgg,115
|
7
|
+
fabricatio/config.py,sha256=TVge_fujKzvEZhOZYiYOMXdVn0YZ9SL5L1_mDzyeFUg,10260
|
8
|
+
fabricatio/core.py,sha256=yQK2ZrbPYDJOaNDp0Bky3muTkB-ZaQ1ld_Qfflm2dY0,5938
|
9
|
+
fabricatio/decorators.py,sha256=cJHsxxbnMhc4SzPl4454CPLuDP3H0qbTrzV_U2rLPrs,6372
|
10
|
+
fabricatio/fs/curd.py,sha256=faMstgGUiQ4k2AW3OXfvvWWTldTtKXco7QINYaMjmyA,3981
|
11
|
+
fabricatio/fs/readers.py,sha256=eDL9QhKEd6xfJBZaiwraObpGJWWpUd9NVYHoIvWgVqY,551
|
12
|
+
fabricatio/fs/__init__.py,sha256=lWcKYg0v3mv2LnnSegOQaTtlVDODU0vtw_s6iKU5IqQ,122
|
13
|
+
fabricatio/journal.py,sha256=siqimKF0M_QaaOCMxtjr_BJVNyUIAQWILzE9Q4T6-7c,781
|
14
|
+
fabricatio/models/action.py,sha256=1V3upL79e3ekyGXA4bSY70N60yeL0aWak7ZPBVsFE3A,5652
|
15
|
+
fabricatio/models/advanced.py,sha256=xAt0rgxzpw-gw-1LwRhvIbYKoNI8kzzcYPvcL7Q1z1U,5027
|
16
|
+
fabricatio/models/events.py,sha256=mrihNEFgQ5o7qFWja1z_qX8dnaTLwPBoJdVlzxQV5oM,2719
|
17
|
+
fabricatio/models/generic.py,sha256=HRslLNvP6v6wWag0tGda1FtAbjbjn096583u_IrixWs,4823
|
18
|
+
fabricatio/models/kwargs_types.py,sha256=lSZAxOnhFdQwRkm-NrbJVMSyBbfdeuVNx807LvJpEOo,901
|
19
|
+
fabricatio/models/role.py,sha256=RPdOcjmM6KNyH310Vx4524JQG94P5sXl_3doSrRpiKQ,1802
|
20
|
+
fabricatio/models/task.py,sha256=hogTBx74IAKfKDWghhWFR7i-LVQAn7L9PQM5tyOA5Rk,9257
|
21
|
+
fabricatio/models/tool.py,sha256=wgNXtobDSWZTVmIrSSaS5oyxhSUYWXhS0S2o9acE2ls,6800
|
22
|
+
fabricatio/models/usages.py,sha256=XYTJjxDVFE2Ek6QBcrk1iNz5OjUPtwIArWuG4LkeLw8,23121
|
23
|
+
fabricatio/models/utils.py,sha256=i_kpcQpct04mQFk1nbcVGV-pl1YThWu4Qk3wbewzKkc,2535
|
24
|
+
fabricatio/parser.py,sha256=uLabsvF07wRKW1PoTGuGEENCx3P4mhmuO8JkmOEkKko,3522
|
25
|
+
fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
|
+
fabricatio/toolboxes/arithmetic.py,sha256=WLqhY-Pikv11Y_0SGajwZx3WhsLNpHKf9drzAqOf_nY,1369
|
27
|
+
fabricatio/toolboxes/fs.py,sha256=YkNgon5-bvCiPVEND9971W-6wj8btKNL6nGry2otn9I,498
|
28
|
+
fabricatio/toolboxes/task.py,sha256=kU4a501awIDV7GwNDuSlK3_Ym-5OhCp5sS-insTmUmQ,269
|
29
|
+
fabricatio/toolboxes/__init__.py,sha256=b13KmASO8q5fBLwew964fn9oH86ER5g-S1PgA4fZ_xs,482
|
30
|
+
fabricatio/_rust.pyi,sha256=clhcURuiB9zlFo4m3VyoWQ8Xs4tvg6KNHXpF-ok9h4o,1703
|
31
|
+
fabricatio/_rust_instances.py,sha256=dl0-yZ4UvT5g20tQgnPJpmqtkjFGXNG_YK4eLfi_ugQ,279
|
32
|
+
fabricatio/__init__.py,sha256=opIrN8lGyT-h2If4Qez0bRuWBa3uIT9GsM9CZy7_XJ0,1100
|
33
|
+
fabricatio/_rust.cp313-win_amd64.pyd,sha256=WzVDtyvJmqEVlGm2Gf4Izw55jGc8tsJQsRewAPJSfds,1266688
|
34
|
+
fabricatio-0.2.1.dev0.data/scripts/tdown.exe,sha256=TttjO5FVoyqEtFzWjNDixFzNKFUEWwBMvnr6JzdUxnE,3423744
|
35
|
+
fabricatio-0.2.1.dev0.dist-info/RECORD,,
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 Whth Yotta
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|