Metadata-Version: 2.4
Name: tasklite
Version: 0.0.4
Summary: A tool for integrating with other systems
Author-email: Frank <frank@example.com>
License: MIT
Project-URL: Homepage, https://github.com/yourname/your-sdk
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: pydantic>=2.7.4
Requires-Dist: SQLAlchemy>=2.0.30
Requires-Dist: PyMySQL>=1.1.1

## 工具集成说明

1、已有工具改造非常简单，把之前的工具转换为cli启动，接受一个文件路径参数。

2、需要把原来的任务输入改装一下，通过调用函数方法获取任务。

3、（可选）如果有任务调度图，可以把 节点、边（执行流向）分别保存一下，如果没有可以不保存。

4、把之前的任务日志，调用函数方法保存一下。

5、把之前的漏洞信息，调用函数方法保存一下。

6、把工具编译成一个二进制文件，目标平台：Linux x86_64 架构，或者提供代码和 dockerfile 文件。

## 安装使用

```shell
pip install tasklite
```

```python
import sys

from tasklite import model, task

if __name__ == '__main__':
    args = sys.argv[1:]
    db_path = args[0]
    model.init_db(db_path, echo=True)
    t = task.get_task()
    print(t.name, t.target, t.download_dir, t.test_type)
```
