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.4.2

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

Total release size: 94.1 MB

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

Download URL pyqql_edge-0.4.2-cp310-abi3-win_amd64.whl
Size 23.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
349155943c062d1b131cc1960113c7096296de8d4c581f17394dfa1b327e75ef
BLAKE2b-256 checksum
How to use checksums
a370ccd00af1bdb4678a68e19f047c5bcef373663e5a7e3c23f964da8fca5332
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 26, 2026.

Transparency log

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

Download URL pyqql_edge-0.4.2-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
5d121149d366a2fa89c77e32caf962e4931d777e2f43c76eebff9bf6a6e02074
BLAKE2b-256 checksum
How to use checksums
ea496ed5853d5067cf0f239e6a2b0b30fece3f4003b35412e9d8622b46dc4386
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 26, 2026.

Transparency log

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

Download URL pyqql_edge-0.4.2-cp310-abi3-manylinux_2_28_aarch64.whl
Size 24.7 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
3c44a24deda19d99044b536e82adff12c520b6425e9334c7f027d37a77fe84bf
BLAKE2b-256 checksum
How to use checksums
ee8c9645b2b65ff2032713dc9df82a1c7f292084e3e5a10e6c382899d56bab7c
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 26, 2026.

Transparency log

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

Download URL pyqql_edge-0.4.2-cp310-abi3-macosx_11_0_arm64.whl
Size 21.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f33359d7b84c54c71e4684ea547c5e505e0a80a5837e838299c9f0693a7b7efc
BLAKE2b-256 checksum
How to use checksums
f9597fe93ed5063a67b75173877fb971d68b538c36cd58dd6f8144a654516a24
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 26, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.0

4 release files

This release

0.4.2 This release

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