Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Push Notification Service handling Apple Push Notification Service (APNS), and Google Cloud Messaging (GCM).

Project description

A Push Notification Service, written in Python, handling Apple APNS, and Google GCM.

Installation

Pulsus configuration file over at /home/example/etc/pulsus/pulsus.conf:

[server]
address = 127.0.0.1
port = 8321

[apns:sandbox]
cert_file_pem = /home/example/etc/pulsus/apns-dev.pem

[apns]
cert_file_pem = /home/example/etc/pulsus/apns.pem

[gcm]
api_key=AIzaSyATHISISSECRET

A logging.conf file is required to be present in the same directory. Then, start as follows:

/home/example/virtualenv/bin/python -m pulsus.server.serve /home/example/etc/pulsus/

Certificates

Export your certificate from Keychain in .p12 format. Then:

openssl pkcs12 -in certificate.p12 -out apns.pem -nodes

Usage

Client:

from pulsus.client import Client
from pulsus.services.apns import APNSNotification
from pulsus.services.gcm import GCMJSONMessage

android_message = GCMJSONMessage(
    registration_ids=['APA91bF....zLnytKBQ'],
    data={'message': 'Hello World!'})

ios_message = APNSNotification(
    token='676be1c77...',
    sandbox=True,
    alert='Helo World!')])

client = Client('127.0.0.1', 8321)
client.push([android_message, ios_message])

Frequently Asked Questions

What is the status of this project?

Even while this project may seem a bit inactive when looking at public repository, do note that this project has been (and still is) running rock solid in production for several years now.

Project details


Release history Release notifications

This version
History Node

1.0.0

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pulsus-1.0.0.tar.gz (9.9 kB) Copy SHA256 hash SHA256 Source None Jul 3, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page