Skip to main content

APNS library using gevent

Project description

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

Project details


Download files

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

Source Distribution

pushbaby-0.0.7.tar.gz (14.3 kB view details)

Uploaded Source

File details

Details for the file pushbaby-0.0.7.tar.gz.

File metadata

  • Download URL: pushbaby-0.0.7.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pushbaby-0.0.7.tar.gz
Algorithm Hash digest
SHA256 2c69352462ea31d4ad7d5a0aefcd15e17d1806687e962b308bd66159b343de64
MD5 adbbf6b9322bfde9e1cd68b8959ca1e6
BLAKE2b-256 d6cda34e929be29ec3809f5cab011ebe236f9aa4557053b46c0bda5b4e061c75

See more details on using hashes here.

Supported by

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