Skip to main content

A powerful personal search engine built on top of SQLite's FTS5.

Project description

Housaku (豊作)

Housaku is a powerful yet simple personal search engine built on top of SQLite's FTS5.

Features

  • Support for multiple file formats: Index files in a variety of formats, including:
    • Plain text tiles.
    • Markdown.
    • PDF.
    • EPUB.
    • DOCX.
  • Basic Web Scraping: In addition to personal files, you can also index posts from your favorite RSS/Atom feeds.
  • Parallel File Processing: Housaku utilizes multi-threading to process files simultaneously, making the indexing process incredibly fast.
  • Powered by SQLite's FTS5: Built on the advanced full-text search capabilities of SQLite's FTS5 extension.
  • Relevant Results with BM25: Search results are sorted using the BM25 algorithm, ensuring the most relevant results.
  • Web UI: Search using your favorite web browser thanks to a friendly and modern Web UI.
  • TUI for command-line enthusiasts (Coming soon).

Motivation

As someone who stores a wealth of documents on my hard drive—ranging from academic PDFs to personal notes in Obsidian—I often found it challenging to search across multiple applications and file types. I wanted a solution that would allow me to search not only my notes but also important books in my Calibre library and blog posts from my favorite feeds. This inspired me to build Housaku.

Install

Via pip

pip install housaku

Via pipx

pipx install housaku

Via uv

uv tool add housaku

# Or

uvx housaku

Usage

Configuration

To start using Housaku, the first step is to edit the config.toml file located at $XDG_CONFIG_HOME/housaku/config.toml. This file is generated the first time you run housaku and will look something like this:

# Welcome! This is the configuration file for housaku.

[files]
# Directories to include for indexing.
# Example: include = ["/home/<user>/documents/notes"]
include = []

# Patterns to exclude from the indexing
# Example: exclude = ["*.tmp", "backup", "*.png"]
exclude = []

[feeds]
# List of RSS/Atom feeds to index
# Example: urls = ["https://example.com/feed", "https://anotherexample.com/rss"]
urls = []

Notes: This folder will also contain the SQLite database where all the indexed data will be stored.

To open your config.toml file, you can just run the following command:

housaku config

Indexing

Once you have configured your directories and/or feeds, run the following command to start the indexing process.

housaku index

If you want to specify directories for indexing when running the index command, use the -i option. For example:

housaku index -i "/home/<user>/Documents/notes" -i "/home/<user>/Documents/vault/"

Search

To perform a search, you just need to use the following command:

housaku search --query "search engine"

# By default the limit is 20
housaku search --query "search engine" --limit 5

Web

To start the Web UI, simply run:

housaku web

# You can also specify the port
housaku web --port 8787 # by default is 4242

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue.

Project details


Download files

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

Source Distribution

housaku-0.4.2.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

housaku-0.4.2-py3-none-any.whl (367.6 kB view details)

Uploaded Python 3

File details

Details for the file housaku-0.4.2.tar.gz.

File metadata

  • Download URL: housaku-0.4.2.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for housaku-0.4.2.tar.gz
Algorithm Hash digest
SHA256 1d29724d2f3426ff6e5c79990887f6083789cbea6006477b800b40dda67ff038
MD5 f0f2fd8a6849da57030c421b3563474f
BLAKE2b-256 9f9cf1d81a802c8d64f04a997062c9a20449ed1555c580cdd8da183e58b2b5a8

See more details on using hashes here.

File details

Details for the file housaku-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: housaku-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 367.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for housaku-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd3fda1f64f80732a6920fbd138059f9b741621e18e35eab99b3f0e033935c03
MD5 1e73781fda01d5c03c307a87cb05be16
BLAKE2b-256 637d7142c0d1c7b824e70c1e3df12a23833472f0cb714f04252444b9d7e3dc0e

See more details on using hashes here.

Supported by

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