only-pipe:非侵入性的Python管道

时间:2021-05-24 18:21:04
【文件属性】:
文件名称:only-pipe:非侵入性的Python管道
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-24 18:21:04
pipeline functional-python pipeline-python-script Python 管道 非侵入性的Python管道。 只有管​​道。 如果您想要更多的功能性工具,则应该寻找另一个库。 该代码存储库已移至 ,在此处进行积极维护,并有更多类似的工具。 安装 pip install only-pipe 或从github获取 pip install git+https://github.com/abersheeran/only-pipe 用法 使用管道将数据作为位置参数传递给下一个函数: from pipe import F range ( 10 ) | F ( filter , lambda x : x % 2 ) | F ( sum ) == 25 或者您需要通过管道传递多个参数: from pipe import FF def get_data (): return 1 , 2 get_data () | FF ( lambda x , y :
【文件预览】:
only-pipe-master
----setup.py(935B)
----.gitignore(2KB)
----LICENSE(1KB)
----README.md(2KB)
----test_pipe.py(329B)
----pipe.py(767B)

网友评论