Skip to main content

Send global broadcast messages to Megaphone on changes

Project description

kinto-megaphone

travis Coverage

Send global broadcast messages to Megaphone on changes.

Installation

Install the Python package:

pip install kinto-megaphone

Add it to kinto.includes:

kinto.includes = 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.2.3 (2018-11-07)

  • Remove a broken log message (#10).

0.2.2 (2018-11-07)

  • I failed to correctly release 0.2.1. Try again.

0.2.1 (2018-11-07)

  • Add a few log messages to help try to troubleshoot.

0.2.0 (2018-09-25)

  • Update to match kinto 10.1.1 – see Kinto/kinto#1770 (#2).

  • Add a heartbeat feature.

0.1.0 (2018-09-12)

  • Initial implementation

Contributors

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-megaphone-0.2.3.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

kinto_megaphone-0.2.3-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kinto-megaphone-0.2.3.tar.gz.

File metadata

  • Download URL: kinto-megaphone-0.2.3.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for kinto-megaphone-0.2.3.tar.gz
Algorithm Hash digest
SHA256 1139a4a3127a4c6edaa7116489465d0c8e42ad94b43f5b3487c34cfd49927b27
MD5 7ec5708d0e2c1fb3247b163c0f593a0e
BLAKE2b-256 8ad0dd0ca9d4698e0f5cf3c8536d1e86f0be8cfa324f665b99610271393c8113

See more details on using hashes here.

File details

Details for the file kinto_megaphone-0.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: kinto_megaphone-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for kinto_megaphone-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 418823f0ee87b851606ab8ddc3ebe3cb43312a164a4615d9177da3083ab91284
MD5 2a480cf6ede9f58240c4b7fdb2fdbab8
BLAKE2b-256 af99465f0e053097589bcc40e323fe80ad8f32768f4eba637ff738a6b1b93717

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