Skip to content

timeyyy/piefuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

piefuzz

Build Status

A python wrapper for junegunn's awesome 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.5+
  • fzf

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 to interact with fzf.

Definitley check it out nice stuff!

About

interact with fzf in python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages