AAPNS
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()
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aapns-23.7.tar.gz | 14.3 kB | Without provenance | Details for aapns-23.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aapns-23.7-py3-none-any.whl | Python 3 | none | any | Details for aapns-23.7-py3-none-any.whl |
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
|
Security for aapns 23.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.