Send global broadcast messages to Megaphone on changes
Project description
kinto-megaphone
Send global broadcast messages to Megaphone on changes.
Installation
Install the Python package:
pip install kinto-megaphone
Then, you’ll want to add a listener.
The kinto-megaphone listener is called CollectionTimestampListener and it notifies megaphone with the new collection timestamp every time it changes. If talking to megaphone fails, it will abort the request (including rollback the changes made in the request).
kinto-megaphone only offers this one kind of listener right now, but that could change later.
Add it using configuration like:
kinto.event_listeners = mp kinto.event_listeners.mp.use = kinto_megaphone.listeners
Every listener also needs the following settings (with real values):
kinto.event_listeners.mp.api_key = foobar kinto.event_listeners.mp.url = http://megaphone.example.com/ kinto.event_listeners.mp.broadcaster_id = remote-settings
Changelog
This document describes changes between each past release.
0.1.0 (2018-09-12)
Initial implementation
Contributors
Ethan Glasser-Camp <eglassercamp@mozilla.com>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kinto-megaphone-0.1.0.tar.gz
.
File metadata
- Download URL: kinto-megaphone-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c91929c8706ca090314f5887c5a831925b0907d9633a276202104867851dadb3 |
|
MD5 | cb27e39aca0ccafcea11c9a84ae69047 |
|
BLAKE2b-256 | f64d0c61d170d6807335303d5296da73ac49382407a911cc69260248dca0ed21 |
Provenance
File details
Details for the file kinto_megaphone-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: kinto_megaphone-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4df5945266d3a7de6a123f05f21ee365a7ea39c20fcd65b80a02d4d42c8c6124 |
|
MD5 | 720a90973872d4c15bf55adcec0dff54 |
|
BLAKE2b-256 | 300d4498c76db032bdc0baac1313f5f0cf09101ec5cb3729f86230b3e841a2f6 |