Skip to main content

Asynchronous Apple Push Notification Service Client

Project description


CircleCI Documentation Status

Asynchronous Apple Push Notification Service client.

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


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(
                    key='Hello World!',
                    args=['foo', 'bar']
    print(f'Sent push notification with ID {apns_id}')
    await client.close()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aapns, version 20.8.1
Filename, size File type Python version Upload date Hashes
Filename, size aapns-20.8.1-py3-none-any.whl (16.7 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page