Skip to main content

AAPNS

CircleCI Documentation Status

Asynchronous Apple Push Notification Service client.

  • Requires TLS 1.2 or better
  • Requires Python 3.8 or better

Quickstart

from aapns.api import Server
from aapns.config import Priority
from aapns.models import Notification, Alert, Localized

async def send_hello_world():
    client = await Server.production('/path/to/push/cert.pem').create_client()
    apns_id = await client.send_notification(
        'my-device-token',
        Notification(
            alert=Alert(
                body=Localized(
                    key='Hello World!',
                    args=['foo', 'bar']
                ),
            ),
            badge=42
        ),
        priority=Priority.immediately
    )
    print(f'Sent push notification with ID {apns_id}')
    await client.close()

Release files for aapns 23.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aapns 23.7
File Size Uploaded
aapns-23.7.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aapns 23.7
File Interpreter ABI Platform
aapns-23.7-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / aapns-23.7.tar.gz

Download URL aapns-23.7.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e0ae15db36b35dc76b07b588259068fafdcd38be8684d5d3807dddd6b450de1f
BLAKE2b-256 checksum
How to use checksums
3ae0b0828a1ac432ea8254f8fd8c61baf80747abe65248a075e8ecae0c843487
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / aapns-23.7-py3-none-any.whl

Download URL aapns-23.7-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70929f9a619b1cb53f04868b90a537e342ad659f4b7506850a6a38b1c38ff05a
BLAKE2b-256 checksum
How to use checksums
a759a7c64e1411d356026f385c0035c7dcf9de118e9acdf3a637efec6af9549a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4
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