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

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.41
File Size Uploaded Provenance Actions
pingram_python-1.0.41.tar.gz 212.2 kB Without provenance Details for pingram_python-1.0.41.tar.gz

Built distribution (wheel)

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

Total release size: 897.6 kB

Release files / pingram_python-1.0.41.tar.gz

Download URL pingram_python-1.0.41.tar.gz
Size 212.2 kB
Tags Source
SHA-256 checksum
How to use checksums
52c34dbe04ca0f6de8be0ff396d8f4ba2221b5c8246746424755bd205c2d695a
BLAKE2b-256 checksum
How to use checksums
87239287a75bac7e0a46726b7faf5966c6b404461a0aea5492a45c21213e4711
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.41-py3-none-any.whl

Download URL pingram_python-1.0.41-py3-none-any.whl
Size 685.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a78474ad1253a370545dc171c4146b9df6bd75a2d45b575a8a516cfecc2c9be
BLAKE2b-256 checksum
How to use checksums
babfb82c5e9984bd282a6109f0f954cb6b694b94f7b63329d5153c13ad21aa66
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.41

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