Inverted Index
A small extensiable python inverted index. It supports retevial by boolean ANDs and ranking of the returned results. The point is a skeleton to add
quick and dirty search to a script.
It also includes a prompt_toolkit completer that can each the inverted index as you type. When you select a auto-suggest option it will replace your prompt.
The best way I have found to use this is to set it up to trigger only when you ask by hitting tab like so:
from prompt_toolkit import prompt
from inverted_index.prompt import SearchCompleter
from inverted_index.inverted_index import InvertedIndex
# Create your index
ii = InvertedIndex(...)
ii.index(my_documents)
user_input = prompt("> ", completer=SearchCompleter(ii), complete_while_typing=False)
# Do things with user_input
print(user_input)
Release files for inverted-index 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| inverted-index-0.1.1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| inverted_index-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / inverted-index-0.1.1.tar.gz
| Download URL | inverted-index-0.1.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0784b07698053ebbba1858b9845b1a5630a6481e0e1315363b90f32b238653fb
|
|
BLAKE2b-256 checksum How to use checksums |
480406595fe83879a985465e0f669e30ac8a9672a39da6f247f93682b1373ea7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Release files / inverted_index-0.1.1-py3-none-any.whl
| Download URL | inverted_index-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2f9213216e14575b345adfdd43254df2e1d457c89bb0d5b2ea955e8a5a3fec7
|
|
BLAKE2b-256 checksum How to use checksums |
ac84daed8ebfa5111d0e1bbed7a4ccd639cc78a2231f8576ba20482ac020aa7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|