Skip to main content

A lightweight local corpus search package.

Project description

searchbox

searchbox is a lightweight Python package for local document retrieval.

Current status:

  • corpussearch is implemented.
  • websearch and docsearch are reserved for future versions.

Install

From this directory:

pip install .

If you later publish it to PyPI under the same package name, users can install it with:

pip install searchbox

Quick start

from searchbox import corpussearch

corpus = corpussearch(db_path="searchbox.db")

corpus.add_documents(
    [
        {"id": "doc-1", "content": "Searchbox is a lightweight local retrieval package."},
        {"id": "doc-2", "content": "Corpus search can index and retrieve text documents."},
    ]
)

ans = corpus.response("local retrieval")
print(ans)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

searchbox-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file searchbox-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: searchbox-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for searchbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba91520df18d1d218f8d081f351cd9a33604fe4817fc0bd0ec2fc04d62c71153
MD5 ab68a44a2d127eca2d991773ad45479b
BLAKE2b-256 7d9f0bd3ffd7fd8ec313948c380e25f29c91f262f245353749091b257ff12d46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page