Skip to main content

A lightweight, server-optional, multi-end compatible, Rust-powered vector database deployable locally or remotely.

Project description

LynseDB logo

Discord PyPI version PyPI - Python Version Python testing Docker build

LynseDB is a lightweight vector database with a Python-first API and a Rust storage/search backend. It can run embedded in one Python process or as an HTTP server for multi-process and production deployments.

Features

  • Server-optional: local embedded mode and remote HTTP mode share the same high-level Python API.
  • Dense vector search with flat, HNSW, IVF, DiskANN, and quantized index families.
  • Metadata filtering with SQL-like where expressions.
  • Named vector fields for multimodal records.
  • Sparse, BM25 text, and hybrid retrieval.
  • ResultView return objects with NumPy arrays and dataframe/JSON conversion helpers.
  • HTTP health checks, metrics, OpenAPI schema, API key auth, snapshots, export/import, and compaction.

Install

Python 3.9 or newer is required.

Native Linux and macOS environments are supported. Native Windows environments are not supported; on Windows, run LynseDB inside WSL 2 (Windows Subsystem for Linux) or use Docker.

pip install LynseDB

Quick example

import numpy as np
import lynse

client = lynse.VectorDBClient(uri="./lynsedb-data")
db = client.create_database("demo", drop_if_exists=True)
collection = db.require_collection("documents", dim=4, drop_if_exists=True)

with collection.insert_session() as session:
    session.bulk_add_items(
        [
            ([0.10, 0.20, 0.30, 0.40], 1, {"title": "intro", "lang": "en"}),
            ([0.11, 0.19, 0.29, 0.39], 2, {"title": "guide", "lang": "en"}),
            ([0.80, 0.10, 0.20, 0.10], 3, {"title": "notes", "lang": "fr"}),
        ],
        enable_progress_bar=False,
    )

collection.build_index("FLAT-L2")

result = collection.search(
    np.array([0.10, 0.20, 0.30, 0.40], dtype=np.float32),
    k=2,
    where="lang = 'en'",
    return_fields=True,
)

print(result.to_list())

Local and remote modes

Local embedded mode:

client = lynse.VectorDBClient(uri="./data")

Remote HTTP mode:

lynse serve --host 0.0.0.0 --port 7637 --data-dir ./server-data
client = lynse.VectorDBClient("http://127.0.0.1:7637")

With API key auth:

lynse serve --host 0.0.0.0 --port 7637 --data-dir ./server-data --api-key your_key
client = lynse.VectorDBClient("http://127.0.0.1:7637", api_key="your_key")

Use local mode for notebooks, tests, and single-process apps. Use remote mode when multiple processes need to share the same database.

Docker

docker run -p 7637:7637 -v lynsedb-data:/data birchkwok/lynsedb:latest
docker run -p 7637:7637 -e LYNSE_API_KEY=your_key -v lynsedb-data:/data birchkwok/lynsedb:latest

On Windows, use this Docker image or install/run LynseDB from a Linux environment in WSL 2.

Documentation

Stability notes

LynseDB is still evolving. Pin package and server image versions for deployments. For concurrent production access, prefer the HTTP server over sharing one local data directory across independent Python processes.

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

lynsedb-0.2.0.tar.gz (826.3 kB view details)

Uploaded Source

Built Distributions

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

lynsedb-0.2.0-cp314-cp314-manylinux_2_28_aarch64.whl (8.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

lynsedb-0.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

lynsedb-0.2.0-cp314-cp314-macosx_11_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

lynsedb-0.2.0-cp314-cp314-macosx_10_12_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

lynsedb-0.2.0-cp313-cp313-manylinux_2_28_aarch64.whl (8.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

lynsedb-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

lynsedb-0.2.0-cp313-cp313-macosx_11_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lynsedb-0.2.0-cp313-cp313-macosx_10_12_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

lynsedb-0.2.0-cp312-cp312-manylinux_2_28_aarch64.whl (8.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

lynsedb-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

lynsedb-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

lynsedb-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

lynsedb-0.2.0-cp311-cp311-manylinux_2_28_aarch64.whl (8.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

lynsedb-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

lynsedb-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

lynsedb-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

lynsedb-0.2.0-cp310-cp310-manylinux_2_28_aarch64.whl (8.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

lynsedb-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

lynsedb-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

lynsedb-0.2.0-cp310-cp310-macosx_10_12_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

lynsedb-0.2.0-cp39-cp39-manylinux_2_28_aarch64.whl (8.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

lynsedb-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

lynsedb-0.2.0-cp39-cp39-macosx_11_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

lynsedb-0.2.0-cp39-cp39-macosx_10_12_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

File details

Details for the file lynsedb-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for lynsedb-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d5651852b3feab104c6bb4ce50e948333b6a0d0f68924c3d689ece2acd46c356
MD5 61e7fc42cd135696eceb5550d52df98d
BLAKE2b-256 a58b760031bb4b380766727eae9cc1dae4b3280fd53a4d8ada7bc5fba84f528a

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4355486847e77b9f23a6400195c9151b1ac03847b6488416ae969fa08a1da543
MD5 1535a5e017ed9cec9afe4155ec0f81f5
BLAKE2b-256 648b23a04a82d473b62749497a680df442266d939a41883054082aed3bd74e6e

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9295eacd854de9db757b198530be4a37e84fc4fbd948d8a8801ec27c9dada6da
MD5 9cafb3a77a174b99a605a057d8587c9f
BLAKE2b-256 d9a3f0db03f0b38d916d305106f88b2c3133aca6ff1d776491eca557237a7f15

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e294ef6fa3a3e6663e3c43b2b25d1f7be89b7426ea65c5331346a558fe5efff
MD5 508c2bdc4f3e8adcb875b2a33fd17671
BLAKE2b-256 0feed04713164662fead345b425425b0276a53b156fd51443fe58121b2670d83

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a2e445f972b92d3471b186c08e27f05648d9d6adf179e092c4e74e5222900cc5
MD5 23867ea322a077bbf61d0a2b88b3bd8e
BLAKE2b-256 0096c5798159ff1064774d5da03f03e06fd25d68bff38e1dc606159f912ff324

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 78a749f42369bb48529fdcf329a361e156e3502bd0523a74e18487f32459829a
MD5 36c869df676d846725a9d81dc31fb8c2
BLAKE2b-256 ff14b061329c5934bc595fe4a29a773a8b4e42d9adfb67ddb9f9cd14d65de75a

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8f7626dfdfb7caf6b744e1271a7259e58f09a20c4919a4b558f2793749550ce7
MD5 eab9dde01ba31a57bc6b96cfe03f5617
BLAKE2b-256 9a7d8d83300d1153288f6967e406fd794d5a02e17b35bf6551bf131fbb7d8618

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 696e87418546d98dca00bf1362ea291187b461af65bb773af32f0dd2ed86d9da
MD5 33cbbf9dcdfb351795a609f1e9e20370
BLAKE2b-256 535765209b697b6b5bf4e54cdbf35032b3c90dc7a6dc74cef200c64a63fa3962

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2aedcf8b60afc2652844471101eb6f5954cd2dad72b23ca4388ecbb0a25e31cd
MD5 302716e6153f9afaeac498e5e6208bc8
BLAKE2b-256 ae869d08eb3efbf0bb710ab28b5e5dc7230dc520b0fd8960210c4620dbd96c1d

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b4be99d7cc9dd23174b3721d8f981ce9eccdb287309b0ff0c487ac4a0091849e
MD5 8a9afdf0fbb28a6a234a0f1a2ea0993f
BLAKE2b-256 d56806e2ba517aa80f430009e55cb70b1d146bb59aae9097e1ececfe4aa94db8

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b490a235e35c7208148f8b43a02aa4673dacf4626a22374b682edbd1065d8f5
MD5 b70e22af1fec6559c12d6cded0790ccd
BLAKE2b-256 1aefb504f141129dfaa5a4db268a67d7c3e260a7cf0877ff583344cdb1040450

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05f9ee21a174182d677e46a58dc00288995760a4fbbebc07063adddc72d99565
MD5 4504c88ab5d0748ff2fde07e7b22c6f9
BLAKE2b-256 d7cfe502c1f11dd6167d481ccf26ca517f163933f438b2a91ccf74be9357a5fa

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3c6278e4aee9c98da28cd27bd34a78171b95d1b32b836c138538bf61abcb433c
MD5 7093b012538be42d6e0bd44c227f0613
BLAKE2b-256 3848a2a63bf664b3edc54805a0a97f6fe64b6e2747c9b119cf7c39ae5fa19484

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 001629dd2135975b85b949853fa93ec03013104fa8b21cbb6264b2cba6298b35
MD5 ba018034de44b3ed273101fbc20a67b3
BLAKE2b-256 b7a56237746d9833c33992e5187277e6f0b3cee7cf2b45fbd89e2f2d7cbae216

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e6b6220f15dc87400f4e708bc1b8a92ddbe3230245c7485efbbd9c8326853970
MD5 148e1a531fe1d95c18c63e3f62afe1d2
BLAKE2b-256 ddfa6e32801c4b51885468ab007062a766b782a266d3599cf24c94af7ac3878a

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1245b07c6948c313297d1fd8b465e0f64bba051bac96e72b682a13514f32097a
MD5 c6f92af083e1e410e74d7b4b7b5f7cef
BLAKE2b-256 ebc548757b628e726c310e46fdfed8fc144af8012cbd7f5616b2c6d0a4e5824e

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d2e856ff562eeb16153c274e60db75e91e1a05e93783d0d0e115d17748a99a43
MD5 e866cf9a27759f596aafe970021e87b8
BLAKE2b-256 615b3216ef04c5ee9ef553ed2cfd98a5e9fe5b0ee787330039f80050b0218c70

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0b759c009e27d68a516b82a9d5563fcdff202b2b81c66c20e74b7ea0aa39417d
MD5 b77939434541e7607beb8556ceed3292
BLAKE2b-256 973411fe18e7decf4a545e5878cd800c9f6724e5874a9bcfdaf080df39a7ee23

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ff7b3e73ad268153bd4b4db18a94f7dab3dc61942addeecf9a4b777b580207e
MD5 33296816bf8307ae3977c1b7af2ef131
BLAKE2b-256 409375bdfc6c62e2c6cabd2cc94e9fcc3d027edbb013cbe03bf2c015e506a834

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9e6aa1e9941d5477123a1c4dad16720523194f0683e54dc2a0b232c67f23d76
MD5 b11941768d3a0a7f7063c1294f06ecd8
BLAKE2b-256 6df06c8a6a501e710a52aa7afb2c81a6c074585d2f304f508f752128d8ab5501

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5546876de611de42bc1c77583377d38a24fca8c3c7629f0942f76f2614ec65b2
MD5 d7f4989ba2bf5bffcbe710a5499fa7a4
BLAKE2b-256 38fe271f0f625853a46e8b71f423eeb191807dc28708786633ab6b32edbc8a25

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3b04bb8cf3afde28016b8a6c5a4a5160c0175d57d19f20f4419e4df3efa34ab5
MD5 881b319c8f288406558f8abe2fb2bf27
BLAKE2b-256 b3627230dadde06b026c7d54a1597dc1c9202b951ccadb195714793c3aa17a1c

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 734a67f448e84fde9b0fc74932455f157d54390338b66e9b125f9229c4ec7716
MD5 e7e9baf8a08f135ddcd8441b04e7e9c6
BLAKE2b-256 d52763718c66586065288f75e45789d21445b91439a61c6f7ad3a850ff116f1f

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63b6d1b3e50d2aaa82f83b957177b31e6473d90df2299b3ff9252564cb5dc2b2
MD5 18ebf332981fd8e8d0dd66df9e36c72e
BLAKE2b-256 a35dce1de7fade0cfc884237731255d1698b83f35a21e9c0740a2dd5c9434277

See more details on using hashes here.

File details

Details for the file lynsedb-0.2.0-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lynsedb-0.2.0-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f42b1692f27d24518969bffcebe6161c1b717d4494602ad88c942aa0121bfdb0
MD5 6c992b74efb3627122197abb6d44701c
BLAKE2b-256 e3a087647af2d8e043fa8a2ef79df977551ed5e55c9c6b74f607058ae54545af

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