Skip to main content

peQL (Python)

A contract-resolving, privacy-enforcing SQL engine — point SQL at a contract, get governed rows. Python bindings for the peQL engine.

pip install peql
import peql

engine = peql.Engine.from_json_contracts_dir("./contracts")

table = engine.query(
    'SELECT email, region FROM "sales/orders/v1"',
    peql.Caller("user:bob", purpose="analytics", tenant="globex"),
)
print(table.to_pandas())   # email is SHA-256 hashed for the outside tenant

The owning tenant sees raw rows; everyone else gets the contract's masking and row filtering, enforced inside the query plan. Results come back as a pyarrow.Table. See the main project's docs/CONTRACT-FORMAT.md for the JSON contract format.

No Rust toolchain is required to use the published wheel.

Release files for peql 0.3.0

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

Source distribution (sdist)

Source distribution for peql 0.3.0
File Size Uploaded
peql-0.3.0.tar.gz 1.1 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for peql 0.3.0
File Interpreter ABI Platform
peql-0.3.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
peql-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
peql-0.3.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details

Total release size: 88.8 MB

Release files / peql-0.3.0.tar.gz

Download URL peql-0.3.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
1be419b748608204eb7ab7478dd9a73601fe2740e0c6a948a7977dd65f57055b
BLAKE2b-256 checksum
How to use checksums
a4875a6378180e90af228dd42cb15f212c6cc846f4cbdae3691d811958acc511
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 19, 2026.

Transparency log

Release files / peql-0.3.0-cp39-abi3-win_amd64.whl

Download URL peql-0.3.0-cp39-abi3-win_amd64.whl
Size 28.1 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9296ad72f179e3fe4bd6b3a23b06bc3f2045a669efda5b4a358f58e50022d467
BLAKE2b-256 checksum
How to use checksums
d5c3f0f51b1511df09f54b69eb6720f2df629d3f7642f4d337a1038840f00b66
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 19, 2026.

Transparency log

Release files / peql-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL peql-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 31.7 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
23aa1fa2d355ffad219b2b60abfa43b31a5c01ac17e491eacff4c53da08a70cd
BLAKE2b-256 checksum
How to use checksums
e1a728d0d40e52d29b16eeec51425ff9cc87db619882442f0325aeb9c99ec70e
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 19, 2026.

Transparency log

Release files / peql-0.3.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL peql-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
Size 27.9 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c79eb3115784e8b98598131a57195689685084139a4c42e6f0c322e3fb48ad13
BLAKE2b-256 checksum
How to use checksums
3328c14b78dfa5ee3fb205d9cdb1bb9d11420dd5134be02b7a9a7d280bc8440d
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 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.0

6 release files

This release

0.3.0 This release

4 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