Metadata-Version: 2.1
Name: aapns
Version: 19.2
Summary: Asynchronous Apple Push Notification Service client
Home-page: https://github.com/HDE/aapns
Author: Jonas Obrist
Author-email: ojiidotch@gmail.com
License: APLv2
Project-URL: Documentation, https://aapns.readthedocs.io/en/latest/
Project-URL: Code, https://github.com/HDE/aapns
Project-URL: Issue tracker, https://github.com/HDE/aapns/issues
Platform: UNKNOWN
Classifier: Framework :: AsyncIO
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: h2 (>3)
Requires-Dist: attrs
Requires-Dist: structlog
Provides-Extra: cli
Requires-Dist: click ; extra == 'cli'

# AAPNS

[![CircleCI](https://circleci.com/gh/HDE/aapns/tree/master.svg?style=svg)](https://circleci.com/gh/HDE/aapns/tree/master)
[![Documentation Status](https://readthedocs.org/projects/aapns/badge/?version=latest)](http://aapns.readthedocs.io/en/latest/?badge=latest)

Asynchronous Apple Push Notification Service client.


## Quickstart


```python
from aapns import connect, Notification, Alert, Production, Localized
from aapns.config import Priority

async def send_hello_world():
    connection = await connect('/path/to/push/cert.pem', Production)
    apns_id = await connection.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 connection.close()
```


