文件名称:PyAPNs2:用于通过HTTP2协议与Apple Push Notification Service(APN)进行交互的Python库
文件大小:17KB
文件格式:ZIP
更新时间:2024-06-02 05:45:02
apple python-library apns Python
PyAPNs2 用于通过HTTP / 2协议与Apple Push Notification Service(APN)进行交互的Python库 安装 从GitHub下载源代码或使用pip: $ pip install apns2 样品用法 from apns2 . client import APNsClient from apns2 . payload import Payload token_hex = 'b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b87' payload = Payload ( alert = "Hello World!" , sound = "default" , badge = 1 ) topic = 'com.example.App' client = APNsClient ( 'key.pe
【文件预览】:
PyAPNs2-master
----setup.py(942B)
----.gitignore(492B)
----apns2()
--------errors.py(5KB)
--------__init__.py(0B)
--------client.py(12KB)
--------payload.py(4KB)
--------credentials.py(4KB)
----.drone.jsonnet(1KB)
----MANIFEST.in(39B)
----LICENSE(1KB)
----setup.cfg(631B)
----.github()
--------workflows()
----README.md(3KB)
----.pylintrc(177B)
----test()
--------test_payload.py(3KB)
--------eckey.pem(302B)
--------test_credentials.py(1KB)
--------__init__.py(0B)
--------test_client.py(5KB)
----tox.ini(105B)