Skip to main content

CLI utilit to find info in file system

Project description

FastKB

A minimalist CLI tool for indexing and searching local text files using SQLite FTS5.

Features

Fast Indexing: Recursively scans directories and files. Full-Text Search: Instant ranked search (BM25) via SQLite FTS5. Auto-Sync: SQL triggers keep the search index updated automatically.

Quick Start

1. Initialize

Create the database and search triggers:

python fastkb init

2. Index

Scan folders or specific files:

python fastkb index ./docs ./notes.txt

3. Search

Search for content (returns top 5 results by default):

python fastkb query "your search term"

In-Memory Mode

Use --memory (-m) to run the database entirely in RAM. Ideal for CI/CD pipelines, automated tests, or temporary scans that shouldn't leave files on disk.

fastkb --memory index ./src
fastkb --memory query "timeout error"

Note: The in-memory database is transient and clears when the process exits. Best used for single-session workflows or scripted runs.

Commands

Command Arguments Description
init - Initialize database and FTS index
index paths [paths ...] Index directories or files recursively
query text Search the indexed knowledge base

Query Options

Flag Scope Default Description
-m, --memory Global false Use in-memory database (non-persistent)
-l, --limit query 5 Maximum number of search results to return

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

fastkb-0.2.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

fastkb-0.2.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file fastkb-0.2.3.tar.gz.

File metadata

  • Download URL: fastkb-0.2.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fastkb-0.2.3.tar.gz
Algorithm Hash digest
SHA256 2a9b145f626c78484c1c6b208595ecb8c2076debe1e867b41f9738b79be75bee
MD5 5df2d832ee52844a33eb89298cf22ecd
BLAKE2b-256 8499f70c90cebab69ee0e39ad4f8cde7b648da34a40bdff61d9845e045da6083

See more details on using hashes here.

File details

Details for the file fastkb-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: fastkb-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fastkb-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cec0ecd99379ac7fbfacf3dc06d2ae2c7e8ff9340db5c9e45313fecc487bfafc
MD5 6a8155817c512ea5fb2139bbe525c350
BLAKE2b-256 3c36e181b7262a9f8a5cbf5584e8aca0115808d28091e3f429619c9158e0c6e4

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