Skip to main content

pypusher pushes stuff from Python

Project description

http://github.com/idlesign/pypusher

What’s that

pypusher pushes stuff from Python

This module allows you to send Apple Push Notifications to various Apple devices from your Python code.

It relies on libcapn to feature Apple Push Notification Service support.

Requirements

  1. Python 3

  2. capn library - http://libcapn.org/

Quick example

# Create a notification.
notification = AppleNotification('This notification is brought to you by pypusher.', ['DEVICE_01_TOKEN_HEXSTRING', 'DEVICE_02_TOKEN_HEXSTRING'])

# Set connection parameters.
with ApplePushConnection('/home/idle/my_cert.pem', '/home/idle/my_key.pem') as connection:
    # Send the notification using the connection data.
    connection.send_notification(notification)

Documentation: http://pypusher.readthedocs.org/

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

pypusher-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

File details

Details for the file pypusher-0.1.0.tar.gz.

File metadata

  • Download URL: pypusher-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pypusher-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b87278bff3d768d7e87876b1a55964f98026602075787a74718894e7166326f2
MD5 cf2a24e12ec01ee8e05f3e7e3c7328f8
BLAKE2b-256 ccc2f7899a8e30c32d2ba506bfa9dd6788a8c90526936ae0aba2dae262b7a310

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