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

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.42
File Size Uploaded Provenance Actions
pingram_python-1.0.42.tar.gz 210.1 kB Without provenance Details for pingram_python-1.0.42.tar.gz

Built distribution (wheel)

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

Total release size: 888.6 kB

Release files / pingram_python-1.0.42.tar.gz

Download URL pingram_python-1.0.42.tar.gz
Size 210.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cc61d2948a28f1ba27a269db61c44e6ec7b21fa1554892d9e67eb30245a5b5da
BLAKE2b-256 checksum
How to use checksums
16e6b34008a65a3234c42191e87c76644eac67338388c1ed42d2ecd654dedcca
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.42-py3-none-any.whl

Download URL pingram_python-1.0.42-py3-none-any.whl
Size 678.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76d30ce9c57c36a9b9bfb7cdc35f397f9459350419624be1701e2bd15ecb4cfb
BLAKE2b-256 checksum
How to use checksums
08fd757dba18955a67505a41738a37e451fafeb2c3d712a469d0a64fe13d69f6
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.42

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