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

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

Total release size: 94.3 MB

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

Download URL pyqql_edge-0.4.1-cp310-abi3-win_amd64.whl
Size 23.2 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
2a16167b72fa4963c0adbbb27de088a1068fdb2e90be78866287395b087d9de4
BLAKE2b-256 checksum
How to use checksums
3732ee2c02fea2bfbac916443db35cf100eeec1e3773d6823a85d66bc7b5cb57
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 18, 2026.

Transparency log

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

Download URL pyqql_edge-0.4.1-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
573438436bfc8974a3d2127e6e097a0ad011b4f7df4238d2a6d8575d80e13ad2
BLAKE2b-256 checksum
How to use checksums
bdaa8ca81de7e8d2297409aac8651fcb5da4fb922bc3e98112f9f068b9f07d53
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 18, 2026.

Transparency log

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

Download URL pyqql_edge-0.4.1-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
10aa426d28e1340437887e68488160c12d52c4c7edc8b19c2c65193dd7794aa1
BLAKE2b-256 checksum
How to use checksums
d9b05e0eb43d45f6fe593d5fc465c011728a25666fb5341104d755fe7796343b
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 18, 2026.

Transparency log

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

Download URL pyqql_edge-0.4.1-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
95b70557bc9637bd3f32ec1e8e4d420a8d1413811ff5adbba421b2a791a5282e
BLAKE2b-256 checksum
How to use checksums
3b6f6e95e29c4ba44959a9ade1ca31397c56251e53ea8d249f5a67c1bd4c8b82
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 18, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.0

4 release files

0.4.2

4 release files

This release

0.4.1 This release

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