Simple CLI to provide choices to a user, and let them type in phrases which filters possible options.
Project description
Typing Filter
Simple CLI for a typing filter to provide choices to a user and let them type in phrases which filters possible options.
Status: in progress
·
Notion Roadmap »
https://user-images.githubusercontent.com/6320907/230550634-3ac6b92a-bbd2-4723-93ce-218ad02d8a31.mov
Installation
Install the package from PyPi via pip
pip install typing-filter
Usage
With a list of options ready, a list of descriptions, just import the package call the launch function.
import typing_filter
options = ['Alaska', 'Massachusetts', 'California']
descriptions = [None, 'My home state', 'My current state']
choice = typing_filter.launch(options, descriptions)
The selected choice is returned by the launch function, and is None if the operation was canceled.
Additional options can be made by tweaking the launch command:
import typing_filter
options = ['Alaska', 'Massachusetts', 'California']
descriptions = [None, 'My home state', 'My current state']
choice = typing_filter.launch(
options, descriptions,
description_separator=': ',
header='Press Escape to quit!',
prompt='Input:',
selector='==>>', selector_padding=3
)
Roadmap
Refer to the Notion Roadmap for future features and the state of the project.
Contact
Created by Jonathan Delgado.
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
Built Distribution
File details
Details for the file typing_filter-0.1.1.tar.gz
.
File metadata
- Download URL: typing_filter-0.1.1.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.2 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef58d19f36d71226849000d9db169f5cf00c6588e924a5998afcd48af36a8c6d |
|
MD5 | 9da180a5f29fe7a0d718255189692b59 |
|
BLAKE2b-256 | 5b197e2a0aae393871b669d2ef46d3ff809ebc32ac35bb1cd92ef7a5f57bdc26 |
File details
Details for the file typing_filter-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: typing_filter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.2 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e320f7352c2fa2b3be3ecebcc5e8d91885382c7cf93e42537ea279200991692 |
|
MD5 | daecd3dcfcc2d466d9870690f32e76c2 |
|
BLAKE2b-256 | 0c83df23171033360d299b0e90d2e238e3a156027fa992e4d038426b9713a9e7 |