A fuzzy text selector for files and anything else you need to select
Inspired by Gary Bernhardt’s selecta.
Unlike selecta, pyselecta doesn’t include any interactive functionality. You give it a list of options and a search term and it returns matches.
Installation
$ pip install pyselecta
This will give you the pyselecta shell command.
Usage
$ find . -type f | pyselecta "models"
This will return a newline separated list of file paths with the best candidate on top.
$ find . -type f | pyselecta
Omitting the search term just copies the stdin to stdout.
License
BSD, short and sweet
Metadata
Release files for pyselecta 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyselecta-0.1.0.tar.gz | 1.9 kB | Details |
Release files / pyselecta-0.1.0.tar.gz
| Download URL | pyselecta-0.1.0.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3629e41da3f53f7ad3f0919dd25653416d14e46cecbf31f8db2b2a5305931eae
|
|
BLAKE2b-256 checksum How to use checksums |
65e3614753cd14526bc13e248b75bd56ba42e297d9d65276b1a5fbe4e289854c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |