基于Python的插件
特别声明
基于Python的插件。xFlow使用的Python版本为3.13。
基于Lua语言的开发的插件, 可以查看示例:bypass.py
def x_flow_plugin_get_api_version():
return "1.0"
def x_flow_plugin_get_caption():
return "Bypass(py)"
def x_flow_plugin_get_name():
return "x-tools.x-flow.plugin.bypass.py"
def x_flow_plugin_get_in_ports():
return 1
def x_flow_plugin_get_out_ports():
return 1
def x_flow_plugin_handle_data(data: bytes, index: int):
return data