gwp-py
Python client for the GQL Wire Protocol (GWP).
Install
uv add gwp-py
Quick Start
import asyncio
from gwp_py import GqlConnection
async def main():
conn = await GqlConnection.connect("localhost:50051")
async with await conn.create_session() as session:
cursor = await session.execute("MATCH (n:Person) RETURN n.name")
async for row in cursor:
print(row)
asyncio.run(main())
Catalog
session.catalog() returns a CatalogClient that names the session on every
request; a server that keeps a catalog per session then uses that session's
catalog:
async def main():
conn = await GqlConnection.connect("localhost:50051")
async with await conn.create_session() as session:
catalog = session.catalog()
for schema in await catalog.list_schemas():
print(schema.name, schema.graph_count)
graphs = await catalog.list_graphs("default")
await conn.close()
asyncio.run(main())
A named session that is unknown or closed gets NOT_FOUND.
conn.create_catalog_client() gives a client that names no session.
catalog.session_id is the session a client names, or None for none.
This client does not send credentials in the handshake yet, so it cannot open
a session on a server with authentication (such a server refuses the handshake,
and catalog requests without a session, with UNAUTHENTICATED). Use the Rust
client against such a server for now.
Features
- Async-first API built on
grpcio.aio - Full GQL type support (nodes, edges, paths, temporals, lists, maps)
- Transaction support with auto-rollback context managers
- GQLSTATUS error handling
- Typed write counters:
await cursor.counters()returns aCounterswithnodes_created,edges_created,properties_setand so on, pluscontains_updates(); the raw map stays onsummary.counters
License
MIT OR Apache-2.0
Metadata
Release files for gwp-py 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gwp_py-0.4.1.tar.gz | 39.7 kB | With provenance | Details for gwp_py-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gwp_py-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for gwp_py-0.4.1-py3-none-any.whl |
Total release size: 81.0 kB
Release files / gwp_py-0.4.1.tar.gz
| Download URL | gwp_py-0.4.1.tar.gz |
|---|---|
| Size | 39.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34f2eeb2b4cd61803c715497891074390124f0adc3ae465d832b01f5faa35a71
|
|
BLAKE2b-256 checksum How to use checksums |
d9279ccb75f4a750412d20f845813a33358a10b1090f0ae5018569cad8519a88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 14, 2026.
Transparency logRelease files / gwp_py-0.4.1-py3-none-any.whl
| Download URL | gwp_py-0.4.1-py3-none-any.whl |
|---|---|
| Size | 41.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3581e0c95bdbfcc55b449926657e813686346c5a1f36273e1b65df214b3500d
|
|
BLAKE2b-256 checksum How to use checksums |
f2d1d714c246476324757375da0b4318c3c2d9b3ddaf657ba474b6eaf21f9860
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 14, 2026.
Transparency logSecurity for gwp-py 0.4.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.
Attestation for gwp_py-0.4.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 Nov 14, 2026.
Transparency logA 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.