pgns Python SDK
Python client library for the pgns webhook relay API.
Installation
pip install pgns
Quick Start
from pgns.client import PgnsClient
client = PgnsClient(api_key="your-api-key")
# List roosts
roosts = client.roosts.list()
# Send a pigeon
client.pigeons.send("rst_abc123", payload={"event": "user.created", "data": {"id": 1}})
Async Usage
from pgns.async_client import AsyncPgnsClient
async with AsyncPgnsClient(api_key="your-api-key") as client:
roosts = await client.roosts.list()
Submodule Imports
The SDK provides targeted submodule imports for better discoverability:
from pgns.client import PgnsClient
from pgns.async_client import AsyncPgnsClient
from pgns.models import Roost, Destination
from pgns.errors import PigeonsError, WebhookVerificationError
from pgns.webhook import Webhook
from pgns.events import event_stream, async_event_stream
from pgns.types import DestinationType, DeliveryStatus
Root-level imports (from pgns.sdk import PgnsClient) are deprecated and will be removed in a future release.
Documentation
Full documentation is available at docs.pgns.io/sdks/python.
License
MIT
Metadata
Release files for pgns 0.6.0
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 |
|---|---|---|---|---|
| pgns-0.6.0.tar.gz | 30.9 kB | Without provenance | Details for pgns-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pgns-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for pgns-0.6.0-py3-none-any.whl |
Total release size: 55.7 kB
Release files / pgns-0.6.0.tar.gz
| Download URL | pgns-0.6.0.tar.gz |
|---|---|
| Size | 30.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a09156af4e44341ccbbffa19a63c83442f5b95e1e9cc8196a21b0cb649a15a4c
|
|
BLAKE2b-256 checksum How to use checksums |
851a18a4801626cbe2dc6ff87367399bf3b4b5ea2111cc800c4eb5b86f6cf44b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / pgns-0.6.0-py3-none-any.whl
| Download URL | pgns-0.6.0-py3-none-any.whl |
|---|---|
| Size | 24.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33d5977d5cf5c04fe2a8ae2814234a5718d950f4c3f6d8bc40722bbece4694f0
|
|
BLAKE2b-256 checksum How to use checksums |
643c466f0624b44d45c6f3fce10587e46853412fe1ed4f40c38c39f2c281b4cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for pgns 0.6.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.