Skip to main content

pyfzf

![](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

Metadata

Release files for pyfzf 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfzf 0.3.1
File Size Uploaded
pyfzf-0.3.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyfzf 0.3.1
File Interpreter ABI Platform
pyfzf-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / pyfzf-0.3.1.tar.gz

Download URL pyfzf-0.3.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dd902e34cffeca9c3082f96131593dd20b4b3a9bba5b9dde1b0688e424b46bd2
BLAKE2b-256 checksum
How to use checksums
d44cc0c658a1e1e9f0e01932990d7947579515fe048d0a515f07458ecd992b8f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pyfzf-0.3.1-py3-none-any.whl

Download URL pyfzf-0.3.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
736f71563461b75f6f85b55345bdc638fa0dc14c32c857c59e8b1ca1cfa3cf4a
BLAKE2b-256 checksum
How to use checksums
99356a6c7b95390ec58904646a04f54e1b56fd57d7a247588b791c6331697797
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page