Search as you type on your own dataset.
Project description
Welcome to sayt2 (Search As You Type) Documentation
sayt2 is a Python library that provides a Google-like search-as-you-type experience on your own dataset. It lets you quickly build a full-text search index from a list of dictionaries and start searching immediately. Powered by tantivy (a Rust-based search engine), it delivers fast indexing and querying with minimal setup.
Features:
Multiple search modes: ngram (substring matching), full-text (BM25), fuzzy (typo-tolerant), field-specific, and range queries.
Sorting: single-field and multi-field sorting on numeric and datetime fields.
Query language: Lucene-style syntax with boolean operators (AND, OR), range expressions (year:[2020 TO 2025]), and field-specific queries (author:smith).
Two-layer disk cache: automatic caching of data freshness (L1) and query results (L2), with schema-aware invalidation.
Cross-process safety: SQLite-backed atomic locking prevents concurrent index corruption.
Pydantic configuration: all settings are validated pydantic models with IDE autocompletion support.
Install
sayt2 is released on PyPI, so all you need is to:
$ pip install sayt2
To upgrade to latest version:
$ pip install --upgrade sayt2
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sayt2-0.1.1.tar.gz.
File metadata
- Download URL: sayt2-0.1.1.tar.gz
- Upload date:
- Size: 30.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42f008a21d109ecffa51f9c37ac73b6825ecf4dca63d2d22d8930b305731ef50
|
|
| MD5 |
f082f4704bd14307e73fc5fd0c4de5c8
|
|
| BLAKE2b-256 |
7ceee8dfba545cc6494fe1306a58f90a4360e3d2de906e8f6a1bbe9f50b35a02
|
File details
Details for the file sayt2-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sayt2-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d99debc8d7f4864b79ddd81ab84a493a9fef0c43ce09939136a27dee5b89f6bd
|
|
| MD5 |
03ac457ebe28a63958e48f5b2daf7155
|
|
| BLAKE2b-256 |
5acb959ea557ef75fe3c39e6d83a9c3508d8f0321b2cd66f0f0080cba6f9a198
|