Skip to main content

Python SDK for the pgns webhook relay API

Project description

pgns Python SDK

Python client library for the pgns webhook relay API.

Installation

pip install pgns

Quick Start

from 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}})

Async Usage

from pgns import AsyncPgnsClient

async with AsyncPgnsClient(api_key="your-api-key") as client:
    roosts = await client.roosts.list()

Documentation

Full documentation is available at docs.pgns.io/sdks/python.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgns-0.3.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pgns-0.3.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file pgns-0.3.0.tar.gz.

File metadata

  • Download URL: pgns-0.3.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pgns-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8dbf9e3d94e9e8404cf9b0fa608169c67e85f75cbe5cd648ea9078bbd19d605d
MD5 b18cf287de07339737984eba86c4113a
BLAKE2b-256 4f1077b857ba1844619d600b315262d2385c0a74e3ee1e7d0db59c06cf5e737a

See more details on using hashes here.

File details

Details for the file pgns-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pgns-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pgns-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a283deda2dc063545c22d152c607a5e18e42028848efec28aab7393396a977
MD5 012ef20d90982e0bd33d02053ec04a63
BLAKE2b-256 cfef99d7e27621672f513f27cf9bda7ccac448495327136614c5495ce60dcf89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page