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

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.45
File Size Uploaded Provenance Actions
pingram_python-1.0.45.tar.gz 221.6 kB Without provenance Details for pingram_python-1.0.45.tar.gz

Built distribution (wheel)

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

Total release size: 934.3 kB

Release files / pingram_python-1.0.45.tar.gz

Download URL pingram_python-1.0.45.tar.gz
Size 221.6 kB
Tags Source
SHA-256 checksum
How to use checksums
56ea60d08af2091c923b920253a43925b88660a7108bec23d98db74159e56a50
BLAKE2b-256 checksum
How to use checksums
91b56e4d66635c34cb9c7c3e143bf280ca47890e8cadb3104f6fbc0f30a76c98
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.45-py3-none-any.whl

Download URL pingram_python-1.0.45-py3-none-any.whl
Size 712.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7859db02b3adb441981535a5a9f2f8c3d9daea5c6784c771e00462a3b2f40c2
BLAKE2b-256 checksum
How to use checksums
2a4f03467873a621bd5b77f5f1c373db3ebfdb98517b55b1f43a3e8cefc12ec4
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.45

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