Pie wrapper for junegunn's fuzzyfinder (fzf)
Project description
[![Build Status](https://travis-ci.org/timeyyy/piefuzz.svg)](https://travis-ci.org/timeyyy/piefuzz)
##### A python wrapper for junegunn’s awesome [fzf](https://github.com/junegunn/fzf).
This is a fork from pyfzf, the main difference is we operate in a non interactive mode. We also work exclusivley on python3, instead of exclusivley on python2…
Requirements
Python 3.4+
Installation
pip install piefuzz
Usage
>>> from piefuzz import Fzf >>> fzf = Fzf()
Defaults to searching the path for fzf, you may also specify a path
A SystemError is thrown if fzf cannot be found
>>> fzf = Fzf(fzf_path='/here/fzf')
To fuzz through a file with items seperated by newlines
>>> result = fzf.fuzz(query, input_path='path/to/file.txt')
otherwise an iterable of strings
>>> result = fzf.fuzz(query, input_list=['abc', 'def'])
output is a newline deliminated utf-8 string
License
MIT
Thanks
This project makes use of [plumbum](http://plumbum.readthedocs.org/) to interact with [fzf](https://github.com/junegunn/fzf).
Definitley check it out nice stuff!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for piefuzz-1.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8d597bafb826488f8c918019a00965a3b9a4a5cdbb041173c3a49ce1af14546 |
|
MD5 | 1f015c36e9d112fb10ce83e313ee4d08 |
|
BLAKE2b-256 | aed6e30386b84d77eb9dc3a55eeb77946598f671ef85612f2cb92d33cbe2154a |