Python client library for the pgns webhook relay API.
pip install pgnsfrom pgns 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}})from pgns import AsyncPgnsClient
async with AsyncPgnsClient(api_key="your-api-key") as client:
roosts = await client.roosts.list()Full documentation is available at docs.pgns.io/sdks/python.
MIT