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
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/"
Note: 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file housaku-0.1.4.tar.gz
.
File metadata
- Download URL: housaku-0.1.4.tar.gz
- Upload date:
- Size: 970.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09cdd041d03480f46087046e05eda7b15ebae1f954ceb0b82426fd06252e5a99 |
|
MD5 | 700ef30bb03e04eec5421bf009a71530 |
|
BLAKE2b-256 | 5f4029efebd0b94245d8165b3b909652dcf411942146ffa7789d1a16079a5386 |
File details
Details for the file housaku-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: housaku-0.1.4-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5e0b856aa18c3c75ab88370b4f6ced73445b580eebfd9201bb54372b19d4e72 |
|
MD5 | 375d666117c60b8758c7f55cc41e99b2 |
|
BLAKE2b-256 | fb3e42b6f14f4479c88093bf28509fd18d9d077c44e2668f2ba2a3916e06ba90 |