No project description provided
Project description
# Fuzzy Picker
This package is a thin wrapper providing interactive capability for the
excellent [FuzzyWuzzy Python Library](https://github.com/seatgeek/fuzzywuzzy).
## Installation
```
pip install fuzzypicker
```
## Usage
Fuzzy picker is intended to be used in your console scripts. Let's say that you
had a script that needed to select from a variety of options. As an example,
let's say you want your users to choose from a selection of movies.
Simply place the following code in a file called `doit.py` and execute it.
You will see the interactive display shown below.
```python
from fuzzypicker import picker
movies = [
'Rachel Getting Married',
'Penelope',
'P.S. I Love You',
'Over Her Dead Body',
'Our Family Wedding',
'One Day',
'Not Easily Broken',
'No Reservations',
'My Week with Marilyn',
'Music and Lyrics',
'Monte Carlo',
'Miss Pettigrew Lives for a Day',
'Midnight in Paris',
'Marley and Me',
'Mamma Mia!',
'Made of Honor',
'Love Happens',
'Love & Other Drugs',
'Life as We Know It',
]
print(f'selected_movie = {picker(movies)}')
```
![Alt Text](https://github.com/robdmc/fuzzypicker/blob/master/fuzzypicker.gif)
This package is a thin wrapper providing interactive capability for the
excellent [FuzzyWuzzy Python Library](https://github.com/seatgeek/fuzzywuzzy).
## Installation
```
pip install fuzzypicker
```
## Usage
Fuzzy picker is intended to be used in your console scripts. Let's say that you
had a script that needed to select from a variety of options. As an example,
let's say you want your users to choose from a selection of movies.
Simply place the following code in a file called `doit.py` and execute it.
You will see the interactive display shown below.
```python
from fuzzypicker import picker
movies = [
'Rachel Getting Married',
'Penelope',
'P.S. I Love You',
'Over Her Dead Body',
'Our Family Wedding',
'One Day',
'Not Easily Broken',
'No Reservations',
'My Week with Marilyn',
'Music and Lyrics',
'Monte Carlo',
'Miss Pettigrew Lives for a Day',
'Midnight in Paris',
'Marley and Me',
'Mamma Mia!',
'Made of Honor',
'Love Happens',
'Love & Other Drugs',
'Life as We Know It',
]
print(f'selected_movie = {picker(movies)}')
```
![Alt Text](https://github.com/robdmc/fuzzypicker/blob/master/fuzzypicker.gif)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fuzzypicker-0.1.2.tar.gz
(5.7 kB
view details)
File details
Details for the file fuzzypicker-0.1.2.tar.gz
.
File metadata
- Download URL: fuzzypicker-0.1.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaaa9937c8192098dee229131dc151afa22cf1f9888fa8bebc9b07a2bd5c3fda |
|
MD5 | ee229538d1be4491a12ffd0de34c7445 |
|
BLAKE2b-256 | e625ea96cf2693b978af04d8b542709715def2c63a5fa181a8ca902cb90d972d |