Skip to main content

Plug Kinto notifications into Pusher.com

Project description

https://img.shields.io/travis/Kinto/kinto-pusher.svg https://img.shields.io/pypi/v/kinto-pusher.svg

proof-of-concept: Plug Kinto notifications into Pusher.com.

Install

pip install kinto-pusher

Depending on your environment, it might be necessary to install the ffi system library with sudo apt-get install libffi-dev.

Setup

In the Kinto-based application settings:

kinto.includes = kinto_pusher

kinto.event_listeners = pusher
kinto.event_listeners.pusher.use = kinto_pusher.listener
kinto.event_listeners.pusher.resources = <list of resource names>
kinto.event_listeners.pusher.channel = <channel-name or pattern>

pusher.app_id = <pusher-app-id>
pusher.key = <pusher-key>
pusher.secret = <pusher-secret>

For example, in Kinto, to be notified of record updates per collection:

kinto.event_listeners.pusher.resources = record
kinto.event_listeners.pusher.channel = {bucket_id}-{collection_id}-{resource_name}

> Note: This channel format is the one used in the demo

TODO

  • Add view for authenticated channels

Changelog

0.3.0 (2016-05-23)

  • Project renamed to Kinto-fxa to match the rename of cliquet to kinto.core.

  • Update to kinto.core for compatibility with Kinto 3.0. This release is no longer compatible with Kinto < 3.0, please upgrade!

0.2.0 (2015-11-20)

  • Add HTML demo with Kinto and Leaflet

  • Works with Cliquet 2.11

0.1.0 (2015-11-05)

  • Initial working proof-of-concept.

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

kinto-pusher-0.3.0.tar.gz (3.6 kB view hashes)

Uploaded Source

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