Skip to main content

Introduction

PushBaby is a simple APNS library using gevent. PushBaby aims to do the hard bits of APNS for you and no more. It handles:

  • Packing APNS messages into the binary payload format

  • Establishing and reestablishing SSL connections

  • Receiving and propagating errors to your application, asynchronously

  • Encoding pushes to JSON using efficient encoding

  • Truncating messages to fit APNS

  • Retrying pushes on nonfatal errors

PushBaby takes APNS payloads as dictionaries: it does not attempt to construct them for you.

PushBaby does not load balance over multiple connections, although this is something that would be considered in the future.

If you use PushBaby, remember that the rest of your application must be gevent compatible, or you’ll find PushBaby won’t do important things like receive errors.

Why PushBaby?

There are many alternative APNS libraries for Python, for example:

applepushnotification

https://github.com/martinkou/applepushnotification Similar, gevent-based library. Unmaintained.

apns

https://github.com/djacobs/PyAPNs Uses pure python threads but will not always feed back errors if pushes can’t be sent to the gateway.

pyapns

https://github.com/samuraisam/pyapns/tree/master A full-featured XML-RPC HTTP-to-APNS server.

apns-clerk

https://bitbucket.org/aleksihoffman/apns-clerk Fork of apns-client. Waits for error responses but means all calls to send a push block synchronously for some time.

APNSWrapper / HypnoAPNSWrapper

https://code.google.com/p/apns-python-wrapper/ Unmaintained. Uses openssl s_client.

apns-client

https://bitbucket.org/sardarnl/apns-client Unmaintained

Metadata

Release files for pushbaby 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pushbaby 0.0.9
File Size Uploaded Provenance Actions
pushbaby-0.0.9.tar.gz 14.3 kB Without provenance Details for pushbaby-0.0.9.tar.gz

Release files / pushbaby-0.0.9.tar.gz

Download URL pushbaby-0.0.9.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
29bf7a0bbc3ed0c67d9aa51099d6072ae6839c4c1aaabb15b97a3638d2f4a474
BLAKE2b-256 checksum
How to use checksums
76cc0df814c6356c42d41e892ee39d59b9d38d5d7589750b96220ca532151da9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pushbaby 0.0.9

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page