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.2.tar.gz (4.1 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.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastkb-0.2.2.tar.gz
  • Upload date:
  • Size: 4.1 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.2.tar.gz
Algorithm Hash digest
SHA256 1b3c90f10dbd62e4e856abd73fac07c18c6c4a36a713fe6df574d26332cf9008
MD5 b1d6e2f72b96037b0b6660764527825d
BLAKE2b-256 6810f39b27a7e1773d457d12c03dadc15462aa7788401ba386cfc68a323c8569

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastkb-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5dc47fbdb6e611dd48d1e180b4a7aa6d46635d525a8dd86b9b4ef3a68c692c3c
MD5 24017d6af01e00b88bd8e374c549c261
BLAKE2b-256 7693f2f36c4629c43f9f98bb026b879c8cc461951b8906ac789898f9776f7f89

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