Skip to main content

sqlpgq is a Python library for working with SQL/PGQ graph queries.

Example

With the DuckPGQ extension installed, create the following social network tables.

-- Users table
CREATE TABLE users (
    id INTEGER PRIMARY KEY,
    name TEXT,
    age INTEGER
);

-- Friendships table  
CREATE TABLE friendships (
    id INTEGER PRIMARY KEY,
    user_id INTEGER REFERENCES users(id),
    friend_id INTEGER REFERENCES users(id),
    since DATE
);

INSERT INTO users VALUES (1, 'Alice', 30), (2, 'Bob', 25), (3, 'Carol', 35);
INSERT INTO friendships VALUES (1, 1, 2, '2020-01-01'), (2, 2, 3, '2021-06-15');

Then run examples/social_network.py to see the generated SQL/PGQ graph queries.

Metadata

Release files for sqlpgq 0.0.1

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

Source distribution (sdist)

Source distribution for sqlpgq 0.0.1
File Size Uploaded Provenance Actions
sqlpgq-0.0.1.tar.gz 26.9 kB With provenance Details for sqlpgq-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sqlpgq 0.0.1
File Interpreter ABI Platform Actions
sqlpgq-0.0.1-py3-none-any.whl Python 3 none any Details for sqlpgq-0.0.1-py3-none-any.whl

Total release size: 32.7 kB

Release files / sqlpgq-0.0.1.tar.gz

Download URL sqlpgq-0.0.1.tar.gz
Size 26.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bd769945304f6d197f17a530bef0e89d88ed28f16a6303fb15f4fc1043147ea7
BLAKE2b-256 checksum
How to use checksums
88db4a182e062f8667b3b5f16445b543c153727bc95aff1205774b4bb70aeb45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 16, 2025.

Transparency log

Release files / sqlpgq-0.0.1-py3-none-any.whl

Download URL sqlpgq-0.0.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe9a0b95b49734bb9b9408ee353ef97f17821728d839ab6eb2be3a829926381a
BLAKE2b-256 checksum
How to use checksums
b486b6053d5ae31d9f510f70fadd87ddb3fc2243de73a658b397c6cf1da62d7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 16, 2025.

Transparency log

Security for sqlpgq 0.0.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sqlpgq-0.0.1.tar.gz

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 Dec 16, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files Full provenance

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