Skip to main content

pyqql-edge

Local QQL for Python: qdrant-edge + FastEmbed, zero remote Qdrant.

Proposition

Same QQL language as pyqql, but storage and (optionally) embeddings run in-process (qdrant-edge 0.8). Ideal for demos, CI, air-gapped tools. Cluster-only features (custom SHARD, GROUP BY … LOOKUP FROM, SHOW QUOTAS / SET QUOTA, …) fail with stable QQL-EDGE-UNSUPPORTED-* codes. Sparse PARAMS (idf = …), ACORN search params, GROUP BY, and HNSW/optimizer ALTER COLLECTION are supported offline.

Install

pip install pyqql-edge

Python 3.10+. Wheels: Linux x64, macOS arm64, Windows x64 (not macOS Intel — ONNX).

Quick start

import pyqql_edge

client = pyqql_edge.local_executor(
    "./qdrant_data",
    on_disk_payload=False,
    model="bge-small-en-v1.5",
)

client.execute("CREATE COLLECTION docs HYBRID")
client.execute(
    'UPSERT INTO docs VALUES {id: 1, text: "hello from edge"}'
)
report = client.execute("QUERY TEXT 'hello' FROM docs USING dense LIMIT 10")
print(report)

stmt = pyqql_edge.parse("QUERY TEXT 'hello' FROM docs USING dense LIMIT 10")[0]
pyqql_edge.inject_filter(stmt, "org_id", "=", "acme")
# Edge has no custom SHARD routing — use remote Qdrant for SHARD / CREATE SHARD KEY

client.close()

WAL footprint

qdrant-edge pre-allocates each write-ahead-log segment (default 32 MiB), which dominates the on-disk footprint of small embedded shards. Pass whole MiB to wal_segment_mb to shrink it; the resolved capacity persists in the shard's edge_config.json:

client = pyqql_edge.local_executor("./qdrant_data", wal_segment_mb=8)

None (the default) keeps the 32 MiB engine default. Zero, negative, fractional, or overflowing values fail closed with QQL-VALIDATION-CONFIG. qdrant-edge 0.8's own Python binding does not expose this knob.

API

Export Role
local_executor(data_dir, …) FastEmbed + edge storage
http_executor(data_dir, url, …) Edge storage + remote HTTP embedder
list_embedding_models() Dense ONNX catalog
parse / parse_json / is_valid / tokenize Frontend
inject_filter Isolation
Stmt.shard_key Property exists for AST parity; edge rejects SHARD at execute
bind(query, params) Substitute :name (dict) or ? (list)
compile / explain / execute Plan / run (params= same as bind)

Edge gotchas

Topic Reality
Point IDs Integers or UUIDs only
HYBRID queries Specify USING dense / USING sparse / hybrid forms
SHARD, quotas Unsupported offline — use remote Qdrant (QQL-EDGE-UNSUPPORTED-*)
Sparse idf Supported (qdrant-edge 0.8)
Models Locked at executor construction
Lifetime Call close() before deleting data_dir

Docs

Metadata

Release files for pyqql-edge 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pyqql-edge 0.5.0
File
pyqql_edge-0.5.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pyqql_edge-0.5.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
pyqql_edge-0.5.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
pyqql_edge-0.5.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 94.5 MB

Release files / pyqql_edge-0.5.0-cp310-abi3-win_amd64.whl

Download URL pyqql_edge-0.5.0-cp310-abi3-win_amd64.whl
Size 23.2 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
7d48dd63c218fc70ea8e6873aad41c6d3da64af703240bccd0308b0861f08dc0
BLAKE2b-256 checksum
How to use checksums
9e6270da4d60bdd95023530bd548db2bd74ae61d85d9473acad8664deae8e1e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / pyqql_edge-0.5.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL pyqql_edge-0.5.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 25.0 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
a52cd12263b81dbb020c688c24e08ad30e5869c172203726dfb6db2075dcd1c5
BLAKE2b-256 checksum
How to use checksums
7d765f4ad8d9f3a669f98b2144cd66491c2ebe1417e4ec40f97af12fcf8106f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / pyqql_edge-0.5.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL pyqql_edge-0.5.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 24.8 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
171bbad0c9ff38bb5d2f5ec0667433f533f03fe029cfeb4025b9d83cda607929
BLAKE2b-256 checksum
How to use checksums
13fb908e5f9a9c7effae92b38aea20cdfa4c51bc2c1551f84451bd5eadf97cee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / pyqql_edge-0.5.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL pyqql_edge-0.5.0-cp310-abi3-macosx_11_0_arm64.whl
Size 21.4 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8ff8495b6d99fc629522703a5327cf780f4d71c3d563ec180f8943b931eace20
BLAKE2b-256 checksum
How to use checksums
1cb5ae26d1ee90d37ed2002e055c2a4418ac3267e1551d21191efe0415a386f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

4 release files

0.4.2

4 release files

0.4.1

4 release files

0.4.0

4 release files

0.3.1

3 release files

0.3.0

3 release files

0.2.1

3 release files

0.2.0

3 release files

0.1.5

3 release files

0.1.4

3 release files

0.1.3

3 release files

0.1.2

3 release files

0.1.1

3 release files

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page