aapns-20.8.1
توضیحات
Asynchronous Apple Push Notification Service Client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | aapns-20.8.1 |
| نام | aapns |
| نسخه کتابخانه | 20.8.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jonas Obrist |
| ایمیل نویسنده | jonas.obrist@hennge.com |
| آدرس صفحه اصلی | https://github.com/HENNGE/aapns |
| آدرس اینترنتی | https://pypi.org/project/aapns/ |
| مجوز | Apache-2.0 |
# AAPNS
[](https://circleci.com/gh/HENNGE/aapns)
[](http://aapns.readthedocs.io/en/latest/?badge=latest)
Asynchronous Apple Push Notification Service client.
* Requires TLS 1.2 or better
* Requires Python 3.8 or better
## Quickstart
```python
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()
```
نیازمندی
| مقدار | نام |
|---|---|
| >=19.3.0,<20.0.0 | attrs |
| >=7.0,<8.0) | click |
| >=3.2.0,<4.0.0 | h2 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl aapns-20.8.1:
pip install aapns-20.8.1.whl
نصب پکیج tar.gz aapns-20.8.1:
pip install aapns-20.8.1.tar.gz