Skip to main content
Documentation Status https://travis-ci.org/MacHu-GWU/invsearch-project.svg?branch=master https://codecov.io/gh/MacHu-GWU/invsearch-project/branch/master/graph/badge.svg https://img.shields.io/pypi/v/invsearch.svg https://img.shields.io/pypi/l/invsearch.svg https://img.shields.io/pypi/pyversions/invsearch.svg https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social
https://img.shields.io/badge/Link-Document-blue.svg https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Source_Code-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to invsearch Documentation

A fast document search engine allow search by field and value pair.

Example:

>>> from invsearch import InvIndex
>>> ii = InvIndex([
...     {"id": 1, "name": "Alice", "friends": [2, 3]},
...     {"id": 2, "name": "Bob", "age": 15, "friends": [1, 3]},
...     {"id": 3, "name": "Cathy", "age": None, "friends": [1, 2]},
...     {"id": 4, "name": "Bob", "age": None},
... ])
>>> ii.find_one(id=1)
{"id": 1, "name": "Alice", "friends": [2, 3]}
>>> ii.find(name="Bob")
[{"id": 2, "name": "Bob", "age": 15, "friends": [1, 3]}, {"id": 4, "name": "Bob", "age": None}]
>>> ii.by_id(id=1)
{"id": 1, "name": "Alice", "friends": [2, 3]}

Install

invsearch is released on PyPI, so all you need is:

$ pip install invsearch

To upgrade to latest version:

$ pip install --upgrade invsearch

Metadata

Release files for invsearch 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for invsearch 0.0.2
File Size Uploaded
invsearch-0.0.2.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for invsearch 0.0.2
File Interpreter ABI Platform
invsearch-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 32.7 kB

Release files / invsearch-0.0.2.tar.gz

Download URL invsearch-0.0.2.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e93f68dfa7b5068ead7d469d1cc6162c2d5965527fffce347aabaed3e7bb398f
BLAKE2b-256 checksum
How to use checksums
0bd061c16ba6ee5048d2f196d28575c5e0a802bbaa2efbdbe10e7e0c124dee46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

Release files / invsearch-0.0.2-py2.py3-none-any.whl

Download URL invsearch-0.0.2-py2.py3-none-any.whl
Size 19.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f9321360c7283edae8b9b1466f517e4d540f9c32aaa57d26791706eaa60c3408
BLAKE2b-256 checksum
How to use checksums
8d514033e40b51e7303ec85eb7eaba9a0e9d70128f3f52cf7f157ceb8cdd544e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.13

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page