Skip to main content

No project description provided

Project description

Rust implementation for sending APNs push notifications

Usage

import py3a2

# Returns integer as request status code
# * 200 Success
# * 400 Bad request
# * 403 There was an error with the certificate or with the provider authentication token
# * 405 The request used a bad `:method` value. Only `POST` requests are supported.
# * 410 The device token is no longer active for the topic.
# * 413 The notification payload was too large.
# * 429 The server received too many requests for the same device token.
# * 500 Internal server error.
# * 503 The server is shutting down and unavailable.
py3a2.send_notification(cert_file       # Binary p12 file
                        password,       # Password for the p12 file
                        device_token,   # Device token
                        title,          # Title of the message
                        message,        # Body of message
                        is_sandbox,     # Is sandbox environment
                        topic,          # Topic
                        badge,          # Badge
                        custom_id,      # APNS-ID
                        user_id)        # Custom data - user id

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

py3a2-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

py3a2-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

py3a2-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

py3a2-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

py3a2-0.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

File details

Details for the file py3a2-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py3a2-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 721fcda2ab85e34af5981abeff42ea5660ab4f8ad4f02683f8cb63e025109727
MD5 e2c6e532bfaa00aeec2a2266233e33dd
BLAKE2b-256 c16b50038f018eb7e878646c1268cec6e0e1083a28cd10ca93a311cc67e432a5

See more details on using hashes here.

File details

Details for the file py3a2-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py3a2-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c1fae3ccccbcd78a15d518c2479ebbe0e3a1c6ab1d23cbccecc0688454d64231
MD5 8040e851eabf3493c95620e461a1c7a9
BLAKE2b-256 684b01c1dc007b661ef0b25e55390228b1cca2a3b35acf17365a50536e834f62

See more details on using hashes here.

File details

Details for the file py3a2-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py3a2-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d90264f54fbc22fed043a4a6b3bf64f3a228bd2a9a41bdb0f5fca68562b9adea
MD5 c3c09af59de2bc730098538659118467
BLAKE2b-256 e3e61e6dc1c717cde33bc7d6b7fe21db54ad8b7f835ec9c07edc1f0fc140ad57

See more details on using hashes here.

File details

Details for the file py3a2-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py3a2-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b45bd90caeac885da5d3a70dcdff16e72dc06457193f4cf4eb47487d30994fc
MD5 9f8945d456830c2212780e369d747465
BLAKE2b-256 adf6183e88a48ec88b5bb5a46cd391728907925e05e7561041e8690ce118b809

See more details on using hashes here.

File details

Details for the file py3a2-0.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for py3a2-0.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 87ac5014f32c916d2eb3b059963ed34e4ea3e8a9f78d9745df159c120a9238bf
MD5 6c44f3122e0eea6ea6972dfe6105b1ef
BLAKE2b-256 968bd4e6f8c7ee0f7f32559d9e017fea7b39e9afb065a28a2da87e4fbf87bb95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page