Skip to main content

Python SDK for the pgns webhook relay API

Reason this release was yanked:

Contains internal service types. Use 0.3.0+

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.1.4.tar.gz (16.4 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.1.4-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pgns-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e62b440d3acfc2912255a2a763cc8983c6b9d2fe9ce1e64c20ce03309e9f7a52
MD5 90a4b29eec9a9c1738013b08dca22364
BLAKE2b-256 0d1bece4d4b7a8683a8a276ca6fdf14db5f52c3f8dd76d9336d1a26359d8464e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pgns-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6ee0359e098d928204e727d1db2de6c5c536a4471b8eca0862330e1e625f590f
MD5 b8d0f1284bcacae12383bd499e94f568
BLAKE2b-256 912e9819ffc1125241954135284ffcc0df4373d1b55be1671f679107afd3ae42

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