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.

Metadata

Release files for pingram-python 1.0.44

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.44
File Size Uploaded Provenance Actions
pingram_python-1.0.44.tar.gz 218.2 kB Without provenance Details for pingram_python-1.0.44.tar.gz

Built distribution (wheel)

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

Total release size: 922.7 kB

Release files / pingram_python-1.0.44.tar.gz

Download URL pingram_python-1.0.44.tar.gz
Size 218.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d8048d8f1fe9d46b8cec1313ba51769330f5f15b63496949cdf331ba40b22472
BLAKE2b-256 checksum
How to use checksums
28824221192efb81c79a2025ffa72bb313a2b08d6985c1b8a5f975bf719c4811
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

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

Download URL pingram_python-1.0.44-py3-none-any.whl
Size 704.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5986622a60cc41ea08035fe52a033175b41a14622ae9f978647830b66e817e5
BLAKE2b-256 checksum
How to use checksums
61ddc834728be6d4fc5dbc129b86eee9d36cfe5d6d626c65f873d53f724d4584
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for pingram-python 1.0.44

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.

Release history Release notifications | RSS feed

This release

1.0.44 This release

2 release files No provenance

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