https://github.com/terror/fzf.py
Python bindings for the command-line fuzzy-finder fzf
https://github.com/terror/fzf.py
Last synced: 5 months ago
JSON representation
Python bindings for the command-line fuzzy-finder fzf
- Host: GitHub
- URL: https://github.com/terror/fzf.py
- Owner: terror
- Created: 2022-01-18T00:17:55.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-18T00:26:16.000Z (almost 4 years ago)
- Last Synced: 2025-08-15T11:47:30.056Z (5 months ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
### fzf.py
Better Python bindings for the command-line fuzzy-finder
[`fzf`](https://github.com/junegunn/fzf).
### Installation
```bash
pip install fzf.py
```
### Usage
`fzf.py` can be used as a class instance or a function decorator.
```python
from fzf import Fzf, fzf
```
As a class instance:
```python
chooser = Fzf()
choices = chooser.prompt([1, 2, 3])
```
As a function decorator:
```python
@fzf()
def example():
return [1, 2, 3]
choices = example()
```