Catalog PyPI
PACKAGE EXPLORERView in registry

aapns

PyPI

Asynchronous Apple Push Notification Service Client

appleasyncioiospush-notification
Versions collected1
Direct dependencies3From release 23.7
Last observed20 Oct, 17:00 UTC

README

Version 23.7 documentation

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()

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
23.77 Jul 20233

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
hennge/aapns

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:00 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:796bbf4f9c336282a70fb1be9a42e3dc53a7b540111fd3c49dae265fbefc4b9e