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_query / 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.4.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.4.0
File
pyqql_edge-0.4.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pyqql_edge-0.4.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
pyqql_edge-0.4.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
pyqql_edge-0.4.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 93.8 MB

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

Download URL pyqql_edge-0.4.0-cp310-abi3-win_amd64.whl
Size 23.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d920e9a4e63c73d902bf83a4624c543444ae2b589ba770d62a3cdddc242ed573
BLAKE2b-256 checksum
How to use checksums
a0b834c6726a3e140dfd53549a1ebae4b7e0db71f55b8edde22a75d8e92d8135
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 Sep 14, 2026.

Transparency log

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

Download URL pyqql_edge-0.4.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 24.9 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
e3c4673cc440c6598b667f4a22e450d5bc7b96174129a37ca5d8778e466e7f9d
BLAKE2b-256 checksum
How to use checksums
ae0d297d5e191d759b1d2c800789f64fe9028f5e4ed560fb42a10a0c4f04bdca
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 Sep 14, 2026.

Transparency log

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

Download URL pyqql_edge-0.4.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 24.6 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
ea24e27d0acd4fc0a284a9b51ca0b5dc211f094d729b543f17cbecbaf98bf688
BLAKE2b-256 checksum
How to use checksums
1d10a2f1ed2946df395bffb5cde9429353b1f4e26b559caf26263b0ca887efe4
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 Sep 14, 2026.

Transparency log

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

Download URL pyqql_edge-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
Size 21.2 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b9bef5aefc836de92cde3f14e6e8e930045663674e5ae7e91c355ce671666fea
BLAKE2b-256 checksum
How to use checksums
18f078bc8895fc70aab9f858210fb1c491bec44d5e3bea020b9156c1b21138d4
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 Sep 14, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.0

4 release files

0.4.2

4 release files

0.4.1

4 release files

This release

0.4.0 This release

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