Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

vlite-embedded

Latest version: v0.7.12

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: mahpate
3 Stars
0 Forks
17 Versions
2.5K Downloads
Rust Repo language

Scan summary

vlite-embedded was last scanned on 25 Nov 2026 at version 0.7.12. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 17 versions; the latest 3 were published within 6 days (20–25 Nov 2026).
  • Findings: No rules fired in version 0.7.12.
  • Downloads: 2,544 downloads.

Versions

17 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.7.12 LATEST 25 Nov 2026 No rules fired
0.7.11 23 Nov 2026 No rules fired
0.7.10 20 Nov 2026 No rules fired
0.7.8 16 Nov 2026 Not shown
0.7.6 14 Nov 2026 Not shown

No rules fired in 0.7.12

Findings

Findings for v0.7.12. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.7.12; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

VLite embedded Python

In-process binding for Python 3.11+, using ctypes and a bundled VLite shared library. Platform wheels require no server, HTTP, Docker or Rust installation at runtime. Install the wheel matching your operating system and architecture, then use NativeLibrary() to load the included library automatically. An explicit native library path is still supported.

For application use, install the published vlite-embedded package from PyPI:

python -m pip install vlite-embedded

Wheels support Windows x64, macOS arm64 and Linux x86_64/glibc 2.28+.

native.create(path, dims) creates a graph-enabled format 5 file with named collections (create_collection, list_collections, set_collection_settings, drop_collection) and resumable imports (next_import_job_id, import_chunk, import_status, import_finish, import_abort). Record methods accept collection= and expected_revision= ("absent" or a revision string); conditional put returns the new revision. search(..., explain=True), search_auto and search_hybrid expose plans, work statistics and BM25 fusion; ann_quality and ann_memory report ANN recall and memory, including quantization="scalar_u8". Omitted metric, quantization and rerank multiplier use the collection's settings. Server-scheduled maintenance, backups, metrics and authentication remain server-only. Offline point-in-time restore and encryption are available below.

See the embedded deployment guide for builds, installation, examples, ABI ownership and limits. Licensed under MIT.

Read-only multi-process access

native.open(path, read_only=True) opens an existing database with a shared OS lock. Multiple read-only handles may coexist, including in different processes. get and search work normally; mutations raise EmbeddedError with code == "read_only" without invalidating the handle. Read-only opening also accepts key= or passphrase= for encrypted files.

A writer (native.open(path), the default) holds an exclusive lock: opening a writer while any reader exists raises code "locked", and opening a reader while a writer exists does too. Close every reader before opening a writer. Each reader uses a snapshot at open; close and reopen it to see new commits (no live refresh).

Within one Python process, C ABI calls on all handles are serialized. For parallel reads, use multiple spawned processes, each loading its own NativeLibrary and opening read_only=True; do not reuse inherited handles after fork. Explicitly close handles, for example with with native.open(...) as db:.

Durability

File handles default to periodic durability: writes reach the OS immediately and a background flusher syncs them every 60 s (flush_interval_ms= 1–60000 changes the interval); close performs a final sync. A process crash loses nothing acknowledged, but an OS crash or power loss can lose up to about the last interval (~60 s by default) of acknowledged writes. Pass durability="full" to sync every write before it returns:

with native.open("vectors.vlite", durability="full") as db:
    db.put("1", [0.0, 1.0])
with native.open("vectors.vlite", flush_interval_ms=100) as db:
    db.put("2", [1.0, 0.0])
    db.sync()  # optional explicit durable point

create_in_memory databases use durability="none": nothing is written to disk. A failed sync poisons the handle. Invalid modes or intervals raise EmbeddedError with code "invalid_durability". The setting is per handle and not stored in the file. See periodic durability.

V5 embedded feature API

These bindings use ctypes, not PyO3/maturin. The wheel bundles the same ABI-1 Rust library as the Node package; new operations need a matching new library. Default creation is format 5 (graph-enabled), with TTL/metadata-only writes and named/sparse/model-versioned vectors. Encryption and commit timestamps imply format 5 if no explicit incompatible format is supplied.

from vlite_embedded import NativeLibrary

native = NativeLibrary()  # or NativeLibrary("absolute/path/to/native-library")
with native.create_in_memory(2, format=5) as db:
    cursor = db.feed_cursor()
    db.put_with_expiry("1", [1, 0], expires_at_ms=2_000_000_000_000,
                       metadata={"tag": {"type": "string", "value": "example"}})
    db.update_metadata("1", {"tag": {"type": "string", "value": "updated"}})
    print(db.search_grouped([1, 0], 5, 2, "tag"))
    db.configure_vector("text", 2, active_version="model-v1", history=1)
    db.put_vectors("1", dense={"text": [{"version": "model-v1", "vector": [1, 0]}]},
                   sparse={"terms": [(7, 0.8)]})
    print(db.search_named("text", [1, 0], 5))
    print(db.search_dense_sparse("text", [1, 0], "terms", [(7, 1.0)], 5))
    print(db.query("SEARCH default NEAR $q K 5", {"q": [1, 0]}))
    print(db.changes_after(cursor))
    image = db.to_bytes()  # persist these bytes in host-owned storage
with native.open_from_bytes(image) as reopened:
    print(reopened.get("1"))

Additional methods (all accept collection= where meaningful):

  • put(..., expires_at_ms=...) is an unconditional TTL write; the explicit put_with_expiry also accepts None for no expiry and returns a revision string. update_metadata replaces metadata only and returns its revision. TTL is an absolute Unix-ms timestamp, not a duration; revision preconditions are rejected for expiry writes. Base writes clear additional vectors; metadata-only writes preserve vectors, payload and expiry.
  • recommend(k, positive_ids=..., negative_ids=..., positive_vectors=..., negative_vectors=...), facets(field), numeric_stats(field), search_geo(vector, k, field, latitude, longitude, radius_meters, sort="geo_distance"); retrieval accepts optional AND filter= and metric=. Geo metadata is {"type":"geopoint","value":{"latitude":0,"longitude":0}}.
  • vector_specs, record_vectors(id), put_vector_version(id,name,version,vector), prune_vector_history(name,history), search_sparse(name,pairs,k); search_named(...,version="old-model") selects retained history. put_vectors replaces all additional dense/sparse vectors, not a partial merge.
  • rerank(vector, candidates, limit, method="exact", metric=...) or method="mmr", lambda_=0.5 (always cosine; omit metric). Candidates are hit dictionaries with IDs and optional distances. The engine fetches live records.
  • feed_cursor() starts at head; changes_after(cursor=None,max_events=1000) starts at the beginning when omitted and returns {changes,next,has_more,head}. Persist next; changes never split a committed batch. Graph files add graph_created, graph_dropped and graph_batch kinds (see GRAPH.md). Expiry itself is not an event. Query syntax is documented in docs/VECTORS.md.
  • native.create/open(...,key=bytes_of_length_32) or passphrase="..." enables encrypted creation/opening. is_encrypted(), encryption_key_id() and encryption_info() expose non-secret status. Credentials also work with in-memory create and byte-image open; never supply both credential kinds.
  • native.restore_to(closed_log,new_path,sequence="42") or timestamp_ms=..., optionally base_backup=..., key=/passphrase=. Timestamp restore needs creation with commit_timestamps=True. Sources must be closed/copied; restore publishes a new file and never overwrites a source.
  • build_disk_ann(path,metric=...), search_disk_ann(path,vector,k, ef_search=100,cache_bytes=...). Each search opens/closes its own bounded cache; every database mutation makes the sidecar stale. Disk ANN does not filter expiry/metadata, and encrypted databases refuse plaintext sidecars.
  • Opt-in HNSW persistence: save_ann_snapshot(path) after build_index(), and load_ann_snapshot(path) after reopening (conventionally <datafile>.ann). Load returns {"status","indexes"}; any status but "loaded" (missing, or stale after later commits) changes nothing, so call build_index() instead. See ANN snapshots.

IDs/revisions are decimal strings. Absolute input timestamps also accept Python integers (serialized losslessly as decimal strings). Feed timestamps/head, lineage, key IDs and restore revisions are returned as strings. Metadata and filter values retain the existing explicit typed JSON shape. Responses are ordinary dictionaries/lists; byte images are bytes. New methods carry inline Python type annotations; no separate stub file is required.

JSON requests/responses are capped at 8 MiB including base64 overhead (a key-value list page may reach 16 MiB), so large byte images need a different persistence surface. In-memory images are durable only when the host saves them. Encryption protects contents, not access patterns or process memory; Python/JSON key copies cannot be reliably wiped. No provider callbacks, GPU, read replica, re-embedding worker or named-ANN wrapper is exposed. See bindings/c/FEATURES.md for the complete result/error contract and limits.

Build and test from the repository root (Rust 1.89+, Python 3.11+):

cargo build --locked -p vlite-ffi
python -m unittest discover -s bindings/python -p test_features.py -v
python bindings/build_wheel.py --output embedded-wheels
python tests/embedded_wheel.py embedded-wheels

The direct feature suite defaults to target/debug and accepts VLITE_TEST_LIBRARY to validate an exact alternate/bundled library. It creates and cleans its test files below the binding directory.

Property graph

Every library includes the graph methods, and every file made by create or create_in_memory is graph-enabled (explicit format=3 or 4 stays plain; copy older files with vlite-maintain enable-graph). native.supports_graph (or native.capabilities()) reports availability; against an older library built without graph every graph method raises EmbeddedError(code="unsupported").

native = NativeLibrary()  # or the path of a source build
with native.create("agent.vlite", 3) as db:   # new V5 graph file
    db.create_graph("memory")
    db.graph_write_batch("memory", [
        {"op": "create_node", "key": "ada", "labels": ["Person"]},
        {"op": "create_node", "key": "acme", "labels": ["Org"]},
        {"op": "create_edge", "source": "ada", "relationship": "WORKS_AT", "destination": "acme"},
    ])
    db.graph_neighbors("memory", "ada", direction="out")["nodes"]
    db.graph_shortest_path("memory", "ada", "acme")["shortest_path"]["outcome"]

Methods: is_graph_enabled, list_graphs, create_graph, drop_graph, graph_write_batch, graph_get_node, graph_get_edge, graph_find_nodes, graph_neighbors, graph_traverse, graph_shortest_path and graph_explain. Selectors are a key string, an integer ID or an explicit {"id": "…"}/{"key": "…"}; IDs and revisions are returned as decimal strings. Read results and error codes follow bindings/c/FEATURES.md ("Property graph").

cargo build -p vlite-ffi
VLITE_TEST_LIBRARY=target/debug/vlite_ffi.dll VLITE_TEST_EXPECT_GRAPH=1 python bindings/python/test_graph.py

Key-value

kv_get, kv_put, kv_delete and kv_list store byte values under namespaced text keys in a collection that already exists and has one dimension, such as the default collection of a file created with one dimension; they never create a collection. All arguments are keyword-only. Values are bytes; versions and deadlines are int, never float. expected is "any" (the default), "absent" or {"revision": int}; a failed check raises EmbeddedError(code="precondition_failed") and writes nothing. expires_at_ms is an absolute Unix-millisecond deadline (it needs a format 5 file); a put without it clears the expiry, and a due entry reads as absent. Namespace is 1 to 255 and key 1 to 1,024 UTF-8 bytes, a value 0 to 1,047,290 bytes, and limit 1 to 10,000 (default 100).

import time
from vlite_embedded import NativeLibrary, EmbeddedError

native = NativeLibrary()  # or the path of a source build
with native.create("cache.vlite", 1) as db:   # the default collection has one dimension
    put = db.kv_put(collection="default", namespace="app", key="greeting", value=b"hello", expected="absent")
    entry = db.kv_get(collection="default", namespace="app", key="greeting")
    assert entry["value"] == b"hello" and entry["version"] == put["version"]
    db.kv_put(collection="default", namespace="app", key="greeting", value=b"hello again",
              expected={"revision": entry["version"]}, expires_at_ms=int(time.time() * 1000) + 60_000)
    page = db.kv_list(collection="default", namespace="app", prefix="gre")
    print([item["key"] for item in page["items"]], page["next_after"])
    print(db.kv_delete(collection="default", namespace="app", key="greeting"))  # True
    try:
        db.kv_get(collection="default", namespace="app", key="greeting")
    except EmbeddedError as error:
        print(error.code)  # kv_not_found

kv_get returns {"key", "value", "version", "expires_at_ms"} (expires_at_ms is None without a deadline) and raises kv_not_found for an absent or due key. kv_put returns {"version", "expires_at_ms"}, kv_delete returns True, or False when nothing was stored, and kv_list returns {"items": [...], "next_after": str | None}: a page holds at most limit entries and 16 MiB of JSON, so follow next_after (pass it as after) until it is None. Missing collections are collection_not_found, a collection with another dimension not_kv_collection, bound violations invalid_input, and a read-only handle refuses writes with read_only; the codes are those of bindings/c/FEATURES.md ("Key-value"). Against a native library that predates the operations every method raises EmbeddedError(code="unsupported"). There are no lease operations.

cargo build -p vlite-ffi
VLITE_TEST_LIBRARY=target/debug/vlite_ffi.dll python bindings/python/test_kv.py

Optional contiguous float32 search and bulk puts

Source builds provide opt-in search_f32 and batch_put_f32 methods. Existing list-based methods and the JSON ABI are unchanged. These methods avoid converting each vector component to JSON; results and metadata still use JSON.

from array import array
from vlite_embedded import NativeLibrary

native = NativeLibrary("target/debug/vlite_ffi.dll")
with native.create_in_memory(2) as db:
    db.batch_put_f32(
        [{"id": "18446744073709551615"}, {"id": "2", "payload_base64": "AP8="}],
        array("f", [1, 0, 0, 1]), 2,
    )
    hits = db.search_f32(array("f", [1, 0]), 2)
    planned = db.search_f32(array("f", [1, 0]), 2, mode="auto", explain=True)

Use a native-endian, C-contiguous float32 buffer, such as array("f"), a ctypes float array, or an appropriately typed NumPy array (NumPy is not required). Read-only buffers are accepted; strided, non-native-endian, float64, byte and nonfinite buffers are rejected. Bulk buffers may be flat or row-major; they must contain exactly len(records) * dimensions floats. Dimensions must be positive, with at most 4096 rows and 2097152 floats per call. Record dictionaries contain id and optional payload_base64/metadata; IDs retain canonical decimal u64 validation. Bulk puts retain batch's atomic validation, commit and durability semantics; they are not individually acknowledged writes.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases vlite-embedded

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229