Skip to main content

Python wrapper for junegunn's fuzzyfinder (fzf)

Project description

![](https://img.shields.io/badge/license-MIT-green.svg?style=flat) ![https://pypi.python.org/pypi/pyfzf](https://img.shields.io/pypi/dm/pyfzf.svg?style=flat)

##### A python wrapper for junegunn’s awesome [fzf](https://github.com/junegunn/fzf).

![](https://raw.githubusercontent.com/nk412/pyfzf/master/pyfzf.gif)

Requirements

Note: fzf must be installed and available on PATH.

Installation

pip install pyfzf

Usage

>>> from pyfzf.pyfzf import FzfPrompt
>>> fzf = FzfPrompt()

If fzf is not available on PATH, you can specify a location

>>> fzf = FzfPrompt('/path/to/fzf')

Simply pass a list of options to the prompt function to invoke fzf.

>>> fzf.prompt(range(0,10))

You can pass additional arguments to fzf as a second argument

>>> fzf.prompt(range(0,10), '--multi --cycle')

Input items are written to a temporary file which is then passed to fzf. The items are delimited with n by default, you can also change the delimiter (useful for multiline items)

>>> fzf.prompt(range(0,10), '--read0', '\0')

License

MIT

Thanks

@brookite for adding Windows support in v0.3.0 CHANGES =======

2015.11.16: Initial release

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

pyfzf-0.3.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

pyfzf-0.3.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pyfzf-0.3.1.tar.gz.

File metadata

  • Download URL: pyfzf-0.3.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pyfzf-0.3.1.tar.gz
Algorithm Hash digest
SHA256 dd902e34cffeca9c3082f96131593dd20b4b3a9bba5b9dde1b0688e424b46bd2
MD5 ab9b69963cbd91e8f8717b7064406506
BLAKE2b-256 d44cc0c658a1e1e9f0e01932990d7947579515fe048d0a515f07458ecd992b8f

See more details on using hashes here.

File details

Details for the file pyfzf-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pyfzf-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pyfzf-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 736f71563461b75f6f85b55345bdc638fa0dc14c32c857c59e8b1ca1cfa3cf4a
MD5 35f904776c4b79fcb8e7c5aaf463046b
BLAKE2b-256 99356a6c7b95390ec58904646a04f54e1b56fd57d7a247588b791c6331697797

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page