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
Hashes for typing_filter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e320f7352c2fa2b3be3ecebcc5e8d91885382c7cf93e42537ea279200991692 |
|
MD5 | daecd3dcfcc2d466d9870690f32e76c2 |
|
BLAKE2b-256 | 0c83df23171033360d299b0e90d2e238e3a156027fa992e4d038426b9713a9e7 |