Skip to main content

Pingram Python SDK

Official Python SDK for Pingram. Send notifications via Email, SMS, Push, In-App, and more from your server-side Python code.

Requirements

  • Python 3.9+
  • Dependencies: httpx, pydantic, python-dateutil, typing-extensions (installed automatically)

Installation

pip install pingram-python

To install from source (e.g. from the GitHub repo):

pip install -e sdks/python

Quick start

Use the Pingram client with your API key, then call send() or the namespaced APIs (user, users, logs, etc.).

import asyncio
from pingram import Pingram, SenderPostBody, SenderPostBodyTo

async def main():
    # API key (e.g. pingram_sk_...) or JWT; optional region ("us" | "eu" | "ca")
    async with Pingram(api_key="pingram_sk_...") as client:
        # Send a notification
        body = SenderPostBody(
            notification_id="your_notification_id",
            to=SenderPostBodyTo(id="user_123"),
        )
        response = await client.send(sender_post_body=body)
        print(response)

        # Or use namespaced APIs (same as Node: client.user, client.users, client.logs, ...)
        # user = await client.user.user_get_user(account_id="...", user_id="...")
        # logs = await client.logs.logs_query_logs(...)

asyncio.run(main())

You can also pass a config dict: Pingram({"api_key": "pingram_sk_...", "region": "eu"}). For full API coverage, use client.send, client.user, client.users, client.logs, client.templates, client.environments, and the other APIs.

Links

Metadata

Release files for pingram-python 1.0.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pingram-python 1.0.19
File Size Uploaded
pingram_python-1.0.19.tar.gz 154.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pingram-python 1.0.19
File Interpreter ABI Platform
pingram_python-1.0.19-py3-none-any.whl Python 3 none any Details

Total release size: 644.1 kB

Release files / pingram_python-1.0.19.tar.gz

Download URL pingram_python-1.0.19.tar.gz
Size 154.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9360b37860ad84d4ec0eade3e9a243a0df3e9e65a39879846ba694d15750264d
BLAKE2b-256 checksum
How to use checksums
d88e8b86e227fd8600f554ff7575aafa4181acdc7c87bbe6fd222eb1f30aa050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / pingram_python-1.0.19-py3-none-any.whl

Download URL pingram_python-1.0.19-py3-none-any.whl
Size 490.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
857084aab34da25a695c0f0fda6bea3ec7f6ee19e59ee0293cf87f627a101e61
BLAKE2b-256 checksum
How to use checksums
cbe9e3b330544fca3fb2ce1acdb330bc0990a5e3061349f9f0eb9ebce87f3458
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release history Release notifications | RSS feed

1.0.36

2 release files

1.0.35

2 release files

1.0.34

2 release files

1.0.33

2 release files

1.0.32

2 release files

1.0.31

2 release files

1.0.30

2 release files

1.0.29

2 release files

1.0.28

2 release files

1.0.27

2 release files

1.0.25

2 release files

1.0.24

2 release files

1.0.23

2 release files

1.0.22

2 release files

1.0.20

2 release files

This release

1.0.19 This release

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.9

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page