fae-plugin-py 0.1.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.
- fae_plugin/__init__.py +19 -0
- fae_plugin/_host.py +55 -0
- fae_plugin/_inspect.py +30 -0
- fae_plugin/_protocol.py +57 -0
- fae_plugin/_worker.py +584 -0
- fae_plugin/chain.py +91 -0
- fae_plugin/config.py +93 -0
- fae_plugin/context.py +175 -0
- fae_plugin/engine.py +16 -0
- fae_plugin/errors.py +96 -0
- fae_plugin/hooks.py +56 -0
- fae_plugin/py.typed +1 -0
- fae_plugin/registration.py +173 -0
- fae_plugin/session.py +42 -0
- fae_plugin/types.py +464 -0
- fae_plugin_py-0.1.0.dist-info/METADATA +300 -0
- fae_plugin_py-0.1.0.dist-info/RECORD +20 -0
- fae_plugin_py-0.1.0.dist-info/WHEEL +5 -0
- fae_plugin_py-0.1.0.dist-info/licenses/LICENSE +201 -0
- fae_plugin_py-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fae-plugin-py
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Typed Python plugins for the FAE agent engine
|
|
5
|
+
Author-email: Teshin <1443965173@qq.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Repository, https://github.com/woshihaoren4/free-agent-engine
|
|
8
|
+
Project-URL: Documentation, https://github.com/woshihaoren4/free-agent-engine/tree/v2-plugins/python/fae-plugin-py
|
|
9
|
+
Project-URL: Issues, https://github.com/woshihaoren4/free-agent-engine/issues
|
|
10
|
+
Keywords: fae,agent,plugins,sdk
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Typing :: Typed
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
|
|
20
|
+
# fae-plugin-py
|
|
21
|
+
|
|
22
|
+
FAE 插件 API `0.1.0` 的 Python SDK,支持 Agent Hook、工具和完整/流式模型。
|
|
23
|
+
Python 3.10 及以上可用。发行名是 `fae-plugin-py`,导入名是 `fae_plugin`。
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
python3 -m pip install -e ./python/fae-plugin-py
|
|
27
|
+
# 示例模型额外依赖
|
|
28
|
+
python3 -m pip install httpx
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 打包和发布到 PyPI
|
|
32
|
+
|
|
33
|
+
在仓库根目录执行:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# 仅打包并校验,不上传,也不需要 Token
|
|
37
|
+
bash python/publish.sh --build-only
|
|
38
|
+
|
|
39
|
+
# 打包、校验并发布到正式 PyPI;按提示隐藏输入 API Token
|
|
40
|
+
bash python/publish.sh
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
自动化发布可通过环境变量 `PYPI_API_TOKEN` 或 `TWINE_PASSWORD` 提供 Token。
|
|
44
|
+
脚本顶部列出了所有支持的环境变量。测试发布时设置
|
|
45
|
+
`TWINE_REPOSITORY_URL=https://test.pypi.org/legacy/`,并使用 TestPyPI 的 Token。
|
|
46
|
+
构建产物默认保存在本包的 `dist/`,上传只使用本次构建的 wheel 和源码压缩包。
|
|
47
|
+
每次发布前更新 `pyproject.toml` 中的 `version`,PyPI 不允许覆盖同版本文件。
|
|
48
|
+
|
|
49
|
+
发布成功后,其他人可安装并导入:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
python3 -m pip install fae-plugin-py
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```python
|
|
56
|
+
from fae_plugin import Context, SingleAgentHook, ToolsHook, ModelHook
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
宿主从 `FAE_PLUGIN_PYTHON` 选择解释器,默认 `python3`。该解释器需要预先安装 SDK
|
|
60
|
+
和插件业务依赖;加载插件不会执行 pip。FAE CLI 已启用 Rust `python` feature;
|
|
61
|
+
独立使用 fae-agent/fae-engine 时需显式启用相应 feature。
|
|
62
|
+
|
|
63
|
+
## 创建和加载
|
|
64
|
+
|
|
65
|
+
将单文件放在 `<fae_home>/plugins/project_context.py`:
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
from fae_plugin import SingleAgentHook
|
|
69
|
+
|
|
70
|
+
def plugin_config():
|
|
71
|
+
return {
|
|
72
|
+
"plugin_version": "1.0.0",
|
|
73
|
+
"description": "清理输入并补充项目规范",
|
|
74
|
+
"mounts": [{"point": "SingleAgentHook", "implementation": "ProjectContext",
|
|
75
|
+
"agent_id": "fae"}],
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
class ProjectContext(SingleAgentHook):
|
|
79
|
+
async def on_query(self, ctx, query):
|
|
80
|
+
if ctx.session is not None:
|
|
81
|
+
await ctx.session.send("开始处理请求。")
|
|
82
|
+
if query.strip() == "/stop":
|
|
83
|
+
await ctx.cancel_run("用户要求停止")
|
|
84
|
+
return query.strip()
|
|
85
|
+
|
|
86
|
+
async def on_prompt(self, ctx, prompt):
|
|
87
|
+
return prompt + "\n遵守项目代码规范。"
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
fae plugin project_context
|
|
92
|
+
fae plugin --show project_context
|
|
93
|
+
fae plugin --show '*'
|
|
94
|
+
fae --fae-home /path/to/.fae plugin project_context
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
单文件配置函数是同步无参数函数,每次候选加载调用一次。目录插件以根目录
|
|
98
|
+
`plugin.config` UTF-8 JSON 为唯一配置,必须有 `"engine": "py"`,入口为
|
|
99
|
+
`"implementation": "plugin.py:ProjectContext"`,不调用配置函数。
|
|
100
|
+
|
|
101
|
+
声明的必填字段为 `plugin_version`(SemVer)、`description`、`mounts`;
|
|
102
|
+
`registration_mode` 默认 `direct`,`fae_plugin_api_version` 默认 `0.1.0`。
|
|
103
|
+
未知字段、不匹配的接口位置、重复挂载、越界入口或不兼容版本会拒绝加载。
|
|
104
|
+
JavaScript 引擎首期明确不可用。
|
|
105
|
+
|
|
106
|
+
`on_query` 在本次用户输入的其他 Agent Hook 之前执行,包括补充输入。
|
|
107
|
+
返回清理后的输入;图片等附件保持绑定。内部 todo 推理提示不重复调用它。
|
|
108
|
+
Agent 其他方法与 Rust 对应:`on_prompt`、`on_memory`、`on_history`、
|
|
109
|
+
`on_compression`、`on_model_req`、`on_model_resp`、`on_tools_req`、
|
|
110
|
+
`on_tools_resp`、`on_save`。direct 基类默认透传。
|
|
111
|
+
|
|
112
|
+
## direct 与 chain
|
|
113
|
+
|
|
114
|
+
direct 每个插件一个 Worker,Rust 按插件 ID 排序传递 Agent 返回值。
|
|
115
|
+
chain 每个 home 一个 Worker 链,按第一次成功注册的持久化顺序执行。
|
|
116
|
+
重新加载保留位置;链根是第一个成员。两种模式可以共存。
|
|
117
|
+
|
|
118
|
+
chain 声明 `"registration_mode": "chain"`,继承 `ChainSingleAgentHook`、
|
|
119
|
+
`ChainToolsHook` 或 `ChainModelHook`,方法必须 async 并有必需关键字参数 `next`:
|
|
120
|
+
|
|
121
|
+
```python
|
|
122
|
+
from fae_plugin import ChainSingleAgentHook, Context, HookNext
|
|
123
|
+
|
|
124
|
+
class Surround(ChainSingleAgentHook):
|
|
125
|
+
async def on_prompt(self, ctx: Context, value: str, *,
|
|
126
|
+
next: HookNext[str, str]) -> str:
|
|
127
|
+
result = await next(value + "\n前置处理")
|
|
128
|
+
return result + "\n后置处理"
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
不调用 next 并直接返回合法值会短路链的内层。next 只能在当前方法中由当前
|
|
132
|
+
async task 调用一次;不能保留到流生成器、其他 task 或下一轮。Agent 链默认
|
|
133
|
+
转发,链末尾返回输入;工具和模型链末尾没有原生实现,必须有成员覆盖业务方法。
|
|
134
|
+
`ChainModelHook.match_model(ctx, model)` 是独立判断方法,不接收 `next`,
|
|
135
|
+
每个模型类都必须实现;只有返回 True 的成员进入本次模型链。
|
|
136
|
+
|
|
137
|
+
## 上下文、状态和栈
|
|
138
|
+
|
|
139
|
+
所有接口接收同一种 Context。属性 `agent_id/user_id/scope_id/run_id` 和
|
|
140
|
+
Agent 的 `plan_id/task_id/turn_id` 是只读身份缓存。`ctx.session` 可能为 None。
|
|
141
|
+
`get_engine()` 返回具有 `engine_id` 和 `same_engine()` 的宿主引用。
|
|
142
|
+
|
|
143
|
+
```python
|
|
144
|
+
from fae_plugin import (
|
|
145
|
+
ContextChildSpec, ContextState, ContextStackQuery,
|
|
146
|
+
ContextStackDraft, ContextStackPhase, TaskMeta, TaskType,
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
async def inspect(ctx):
|
|
150
|
+
scope = await ctx.scope()
|
|
151
|
+
child = await ctx.fork(ContextChildSpec()) # 只创建,不调度任务
|
|
152
|
+
await child.set_state(ContextState.running())
|
|
153
|
+
view = child.state()
|
|
154
|
+
try:
|
|
155
|
+
print((await view.current()).kind)
|
|
156
|
+
await child.cancel("关闭临时子上下文")
|
|
157
|
+
await view.changed()
|
|
158
|
+
finally:
|
|
159
|
+
await view.aclose()
|
|
160
|
+
await ctx.append_stack(ContextStackDraft(
|
|
161
|
+
TaskMeta("plugin-step", ctx.plan_id or "", TaskType(), "plugin", "inspect"),
|
|
162
|
+
ContextStackPhase.STARTED,
|
|
163
|
+
))
|
|
164
|
+
entries = await ctx.stacks(ContextStackQuery(tree=True, limit=20))
|
|
165
|
+
if entries:
|
|
166
|
+
next_page = await ctx.stacks(ContextStackQuery(
|
|
167
|
+
tree=True, after_sequence=entries[-1].sequence, limit=20))
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
`state()` 创建订阅视图,`current()` 不消费执行结果。成功状态的 output 支持
|
|
171
|
+
`await output.json_snapshot()`;不可编码原生结果报 `UnsupportedOutputType`。
|
|
172
|
+
Agent 计划与插件创建的子上下文可写 JSON 成功输出,原生工具/模型任务不能写入伪造 JSON 结果。
|
|
173
|
+
`cancel()` 取消当前上下文;`cancel_run()` 取消固定 root Run;取消子上下文不会
|
|
174
|
+
自动取消父 Hook。终态写入不可恢复执行。
|
|
175
|
+
|
|
176
|
+
`bind_scope` 保留原生一次性绑定语义:已绑定 Hook 拒绝重绑,静态 ContextNull
|
|
177
|
+
不能绑定。session/todo 等宿主引用不能通过字符串伪造。`fork(execution=True)`
|
|
178
|
+
遵循 Rust 的执行归属清空/显式指定规则,用户始终继承。
|
|
179
|
+
|
|
180
|
+
代理限于当前调用与关联流;方法返回后无流则释放,调用结束时取消未调度的
|
|
181
|
+
临时子上下文。不要把 ctx/session/next 保存到实例属性用于其他输入。
|
|
182
|
+
|
|
183
|
+
`session.send(text)` 产生独立 `plugin_message`,CLI/TUI/Lark 会展示;它不追加
|
|
184
|
+
模型历史,也不修改最终答案。静态工具发现 ContextNull 无 session,不能取消任务。
|
|
185
|
+
|
|
186
|
+
## 工具与模型
|
|
187
|
+
|
|
188
|
+
ToolsHook 声明 `channel`,默认 `fae_<plugin_id>`。类须实现 `desc/exec`;
|
|
189
|
+
`channel()` 是绑定值,工具名沿用 `channel__name`:
|
|
190
|
+
|
|
191
|
+
```python
|
|
192
|
+
from fae_plugin import ToolsHook, ToolResponse
|
|
193
|
+
|
|
194
|
+
class Echo(ToolsHook):
|
|
195
|
+
async def desc(self, ctx, tool_name):
|
|
196
|
+
return {"name": tool_name, "description": "返回文本",
|
|
197
|
+
"parameters": {"type": "object", "properties": {
|
|
198
|
+
"text": {"type": "string"}}, "required": ["text"]}}
|
|
199
|
+
|
|
200
|
+
async def exec(self, ctx, request):
|
|
201
|
+
return ToolResponse.completed(request.arguments_json()["text"])
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
加载后仍需在 Agent `tools` 配置中选择工具。工具参数保留 JSON 字符串形式,
|
|
205
|
+
工具流首期仅透传。已有工具 channel 冲突时拒绝候选版本。
|
|
206
|
+
|
|
207
|
+
ModelHook 挂载只声明接口和实现类,不接受 `model` 字段。类必须实现
|
|
208
|
+
`match_model(ctx: Context, model: str) -> bool`,根据请求中的模型名称判断
|
|
209
|
+
是否接管。direct 判断方法可同步或异步,chain 判断方法须异步且不接收 next。
|
|
210
|
+
判断应保持轻量、无副作用,必须返回 bool。宿主先完成各候选的判断,再执行
|
|
211
|
+
唯一匹配节点的 exec;不会因 exec 抛错而尝试其他模型或重放请求。
|
|
212
|
+
|
|
213
|
+
```python
|
|
214
|
+
class MyModel(ModelHook):
|
|
215
|
+
async def match_model(self, ctx: Context, model: str) -> bool:
|
|
216
|
+
return model == "my-model" or model.startswith("my-model/")
|
|
217
|
+
|
|
218
|
+
async def exec(self, ctx: Context, request: ModelRequest) -> ModelResponse:
|
|
219
|
+
# 在此实现完整/流式响应。
|
|
220
|
+
...
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
独立节点(含 direct 与 chain 混用)同时命中时报 `plugin_model_conflict`,
|
|
224
|
+
同一个 direct 插件内多个模型类同时命中也报冲突;chain 内命中的多个层按
|
|
225
|
+
持久化顺序执行。没有命中时普通模型使用原生 Runtime,`plugin:` 名称没有命中
|
|
226
|
+
时报 `plugin_model_not_found`。因此插件可以显式匹配普通模型名并接管该请求,
|
|
227
|
+
不再在加载时为模型预留名称或检查静态名称冲突。运行中的请求使用固定插件快照。
|
|
228
|
+
|
|
229
|
+
Agent 的 `model.model` 仍填写模型名称;例如回显示例匹配
|
|
230
|
+
`plugin:echo_model/default`,HTTP 示例匹配 `plugin:http_model/default`。
|
|
231
|
+
模型必须处理 `request.stream` 两种路径,流返回
|
|
232
|
+
`ModelResponse.streaming(async_iterator)`;完整响应返回
|
|
233
|
+
`ModelResponse.completed(openai_response_dict)`。chunk 使用 OpenAI Chat 格式,
|
|
234
|
+
支持文本、tool_calls、多个 choice、finish_reason 和 usage-only chunk。
|
|
235
|
+
全部 choice 结束后才可 EOF。宿主不自动重试插件模型。
|
|
236
|
+
|
|
237
|
+
[examples/http_model](examples/http_model) 展示真实异步 HTTP 模型调用;
|
|
238
|
+
`on_model_resp` 可返回输入响应或包装其 async iterator。
|
|
239
|
+
|
|
240
|
+
从旧版本升级时,在模型类中补充 match_model,删除 plugin.config 或
|
|
241
|
+
plugin_config() 中的模型挂载 model 字段,重新加载插件。宿主读取旧持久化
|
|
242
|
+
记录时会迁移旧 model 元数据,但不会修改冻结源码;未实现新接口的旧执行版本
|
|
243
|
+
会显示加载错误,必须用更新后的源码重新加载。
|
|
244
|
+
|
|
245
|
+
可直接复制的样例还包括 `examples/project_context.py`(direct Agent)、
|
|
246
|
+
`examples/echo_tools/`(目录工具插件)、`examples/a.py`、`b.py`、`c.py`
|
|
247
|
+
(Python 洋葱链)。将样例复制到 `<fae_home>/plugins/` 后依次执行
|
|
248
|
+
`fae plugin a`、`fae plugin b`、`fae plugin c`,得到 A→B→C;
|
|
249
|
+
工具样例加载为 `fae plugin echo_tools`,Agent 的 tools 中选择
|
|
250
|
+
`fae_echo_tools__echo`。
|
|
251
|
+
|
|
252
|
+
## 运行和开发
|
|
253
|
+
|
|
254
|
+
同一实例可并发处理不同 session,direct 同步方法在有界线程池运行;
|
|
255
|
+
chain 方法在事件循环中执行。共享实例只能保存支持并发的客户端或受短锁保护的
|
|
256
|
+
缓存。异步方法不要调用阻塞 HTTP/IO。
|
|
257
|
+
|
|
258
|
+
例如共享查询缓存只在读写字典时加锁,HTTP 等待位于锁外;身份从本次 ctx 读取:
|
|
259
|
+
|
|
260
|
+
```python
|
|
261
|
+
import asyncio
|
|
262
|
+
import httpx
|
|
263
|
+
|
|
264
|
+
class LookupCache:
|
|
265
|
+
def __init__(self):
|
|
266
|
+
self.cache = {}
|
|
267
|
+
self.lock = asyncio.Lock()
|
|
268
|
+
|
|
269
|
+
async def lookup(self, ctx, url):
|
|
270
|
+
session = ctx.session # 调用局部变量
|
|
271
|
+
key = (ctx.user_id, session.session_id if session else None, url)
|
|
272
|
+
async with self.lock:
|
|
273
|
+
if key in self.cache:
|
|
274
|
+
return self.cache[key]
|
|
275
|
+
async with httpx.AsyncClient() as client:
|
|
276
|
+
response = await client.get(url)
|
|
277
|
+
response.raise_for_status()
|
|
278
|
+
text = response.text
|
|
279
|
+
async with self.lock:
|
|
280
|
+
if len(self.cache) >= 128:
|
|
281
|
+
self.cache.pop(next(iter(self.cache)))
|
|
282
|
+
self.cache[key] = text
|
|
283
|
+
return text
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
普通方法及模型 match_model 判断预算默认 1 秒,模型 exec 和模型流总预算 120 秒;排队计入预算。
|
|
287
|
+
首块等待上限 30 秒,后续空闲上限 60 秒;消费者不读取的时间仅计入总预算。
|
|
288
|
+
Worker 使用有界队列、8 个业务槽、每组 4 个槽、4 个同步线程及有界流引用。
|
|
289
|
+
流逐块拉取,消费端 drop/cancel 释放调用。stdout 专用于协议,print 转到 stderr。
|
|
290
|
+
|
|
291
|
+
重加载先校验新配置、类、签名、依赖和路由,再原子切换。旧 Run 的子任务和
|
|
292
|
+
流保留旧快照,下一轮使用新版本;失败保留工作版本。状态与冻结源码在
|
|
293
|
+
`plugin-state/active.json` 和 `plugin-state/versions/` 内管理,重启恢复冻结配置与源码,离线 show 不运行插件代码。
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
PYTHONPATH=python/fae-plugin-py/src python3 -m unittest discover \
|
|
297
|
+
-s python/fae-plugin-py/tests -v
|
|
298
|
+
PYTHONPATH=python/fae-plugin-py/src cargo test -p fae-engine \
|
|
299
|
+
--features python plugin_tests
|
|
300
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
fae_plugin/__init__.py,sha256=8PH8Tfsy9behBPDkcThbD-zXXFyY4GHmGdj-rw5rhl0,1187
|
|
2
|
+
fae_plugin/_host.py,sha256=fk4-QSLMtnDSQlKzUAB7VvJJbLlsIpG5LlfjsrD0p4o,2322
|
|
3
|
+
fae_plugin/_inspect.py,sha256=Oli05h6srCdP991RoITOEkwGjqu5PC6pAwgie0SK4ME,1008
|
|
4
|
+
fae_plugin/_protocol.py,sha256=v1cCa0MRsbuOVWGpgt7Bsd9jpsCxXMHagJ-AfJBE6iE,2068
|
|
5
|
+
fae_plugin/_worker.py,sha256=aAlOxz_hq1q5QKdYaEf5CURaJdnjoN0uludIvsIbhuE,28191
|
|
6
|
+
fae_plugin/chain.py,sha256=MCc67furj8hXLgEuSsJMbE9fzIGeibKzW8Sgm9dcp2s,3813
|
|
7
|
+
fae_plugin/config.py,sha256=zFuvkKdTFqKAefJYarb_EyD1lbOx9c_bFKcfxP7gUnE,4802
|
|
8
|
+
fae_plugin/context.py,sha256=cu8e7TsfqL5gVigep2l6PULeSG9NCv0AxBBfBiMJlcw,7033
|
|
9
|
+
fae_plugin/engine.py,sha256=ktAwwOiovnOHMUJgoiZ1ukYCpXHXTfyoUnC-r2Qi_Jc,412
|
|
10
|
+
fae_plugin/errors.py,sha256=YtdKZ3xfgRXB0Kzyqy5pUJ8TbDkTEQLlybwIk7MwhQc,2135
|
|
11
|
+
fae_plugin/hooks.py,sha256=BqxJBVZ5oIeBzlx9ReB-wzWHgIfXkt96mpj5DaIa0JI,2043
|
|
12
|
+
fae_plugin/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
13
|
+
fae_plugin/registration.py,sha256=fYhYCVHagN5BmMBCXoYVlxmdi0g_iOzBSVVOXV305HY,8750
|
|
14
|
+
fae_plugin/session.py,sha256=ARVgASsJiP93GDiq-xHj0l_dSkUf58TogaCfVAaFDng,1245
|
|
15
|
+
fae_plugin/types.py,sha256=FEtn7P6ppB4PixBwTyLWNomV02ChhkHsSiz0ytwuUg0,14966
|
|
16
|
+
fae_plugin_py-0.1.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
17
|
+
fae_plugin_py-0.1.0.dist-info/METADATA,sha256=AQCfigsunSkK4sGDUiXthzGQfZioEmkKOYwTQ0i04fA,13495
|
|
18
|
+
fae_plugin_py-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
19
|
+
fae_plugin_py-0.1.0.dist-info/top_level.txt,sha256=PdgARZzpVFpDLKOxJcpW1wpryCd20pFAO3LkTN8NDnM,11
|
|
20
|
+
fae_plugin_py-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fae_plugin
|