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.43

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.43
File Size Uploaded Provenance Actions
pingram_python-1.0.43.tar.gz 217.9 kB Without provenance Details for pingram_python-1.0.43.tar.gz

Built distribution (wheel)

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

Total release size: 922.7 kB

Release files / pingram_python-1.0.43.tar.gz

Download URL pingram_python-1.0.43.tar.gz
Size 217.9 kB
Tags Source
SHA-256 checksum
How to use checksums
31a9d0922072bf846a60e14425ce7fcb1a38bc686ef276a69fb1a6e3d98b1ab4
BLAKE2b-256 checksum
How to use checksums
b8389f84aa5872a221b9803bf6671dcb5987330f5f7741b87bf9612ca7c437b4
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.43-py3-none-any.whl

Download URL pingram_python-1.0.43-py3-none-any.whl
Size 704.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cfec52e73c590860b690ddb774e0b3238fa1d3b722dededecaa4b8347e4923b
BLAKE2b-256 checksum
How to use checksums
86848c444d59e5f40e6cdcce80691fafaf554e580ede10e032cbb7e3f7fb4c47
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.43

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.43 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