Current collected state Current
Observed since 20 Oct, 17:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Asynchronous Apple Push Notification Service Client
Asynchronous Apple Push Notification Service client.
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()
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 23.7 | 7 Jul 2023 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:796bbf4f9c336282a70fb1be9a42e3dc53a7b540111fd3c49dae265fbefc4b9e