Junegunn's FuzzyFinder(FZF)馅饼包装器
piefuzz的Python项目详细描述
[![生成状态](https://travis-ci.org/timeyyy/piefuzz.svg)](https://travis-ci.org/timeyyy/piefuzz)
#####一个用于junegunn的python包装器非常棒[fzf](https://github.com/junegunn/fzf)。
这是来自pyfzf的fork,主要的区别是我们在非交互模式下操作。 我们也在python3上独家经营,而不是python2上独家经营…
要求
- Python3.4+
- [FZF](https://github.com/junegunn/fzf)
安装
pip install piefuzz
用法
>>> from piefuzz import Fzf >>> fzf = Fzf()
默认为搜索FZF的路径,也可以指定路径
如果找不到FZF,将引发系统错误
>>> fzf = Fzf(fzf_path='/here/fzf')
用以换行分隔的项目模糊处理文件
>>> result = fzf.fuzz(query, input_path='path/to/file.txt')
否则为一个iterable字符串
>>> result = fzf.fuzz(query, input_list=['abc', 'def'])
输出是一个新行消隐的utf-8字符串
许可证
麻省理工学院
谢谢
这个项目利用[plumbum](http://plumbum.readthedocs.org/)与[fzf](https://github.com/junegunn/fzf)交互。
一定要去看看好东西!