Skip to main content

A personal search engine.

Project description

Housaku (豊作)

Housaku is a powerful yet simple personal search engine that allows you to index and search a wide range of documents and posts.

Features

  • Multi-Format Support: Index and search files in various formats, including:
    • Plain Text Files.
    • Markdown.
    • PDF.
    • EPUB.
    • DOCX.
  • Feed Integration: Index content from your favorite RSS and Atom feeds.
  • Fast search times: Optimized search algorithm for fast results.
  • Incremental indexing: Housaku skips already indexed documents, allowing you to gradually build your corpus without having to worry about redundancy.

WIP

Housaku is an ongoind project, and several major features are in the pipeline, including:

  • A user-friendly Web UI.
  • A TUI for command-line enthusiasts.
  • Document and post update functionality for already indexed items.
  • Optimizations tweaks for faster indexing times.
  • A better sorting algorithm for search results (maybe the BM25 algorithm).
  • A query language for advanced search capabilities.

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 configutation 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

Indexing may vary from a few seconds to several minutes, depending on the size and type of files being indexed. You can begin searching as soon as some documents have been indexed, but it's advisable to allow some time for the initial indexing process. Housaku will skip documents and posts that have already been indexed, allowing you to build your corpus gradually.

Search

Currently, Housaku does not support a query language. It just matches keywords in your search terms with those saved in the database. To perform a search then, use the following command:

housaku search --query "search engine"

# You can also limit the number of results
housaku search --query "search engine" --limit 5

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.1.3.tar.gz (970.1 kB view details)

Uploaded Source

Built Distribution

housaku-0.1.3-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for housaku-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2ed0e2445456beaf1fa4255a8b4953c8aa7e9c49a0970c79cbad3ecb6f683db3
MD5 b141747cd97a9b2e34f9254e8057de5c
BLAKE2b-256 2aa4cd23eb8cc716b0a6c85a82ad7367f3099cf2bbcb35646f50ae7d0c6ab9de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: housaku-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.4 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6361bb64cb1e58ff4345a38cfeb924390cddef3183adba9cd8df8dced54fa74e
MD5 80e74aee8243b6dad5861ad78120713c
BLAKE2b-256 e0ed45ddc3cc8e403daf6f31bb171898c7fc5457f59557bd9166246f76d7e26d

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