Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Pie wrapper for junegunn's fuzzyfinder (fzf)

Project Description

##### 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'])

the result is bytes, you may want

>>> results.decode('utf-8').split('\n')

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!

Release History

Release History

This version
History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
piefuzz-1.0-py2.py3-none-any.whl (4.9 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Nov 11, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting