Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

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.

Files for piefuzz, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size piefuzz-1.0.4-py2.py3-none-any.whl (5.0 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size piefuzz-1.0.4.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page