【文件属性】:
文件名称:pipeline:适用于Python的简单轻巧且可扩展的管道框架
文件大小:2KB
文件格式:ZIP
更新时间:2021-03-29 20:07:39
Python
管道
适用于Python的简单轻量级和可扩展的管道框架。
基本用法:
不使用管道包装器:
from pipeline import * # Import the classes from the pipeline.py file
if __name__ == "__main__" :
pipe = Pipeline () # Create the pipeline object
def caps_rule ( input ): # Define a pipeline rule
if input . isupper () is True :
return True
def on_event ( line ): # Define the function to be executed after something has
【文件预览】:
pipeline-main
----pipeline.py(2KB)
----README.md(1KB)