Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 680 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 680 Bytes

Build Status

Monarch

Monarch is a throttle for communication via APN & GCM push notifications.

Install

$ pip install monarch-dnd

Getting Started

import monarch
monarch.configure()
monarch.config.rule.add('notification', 'promotion', 60)

array = []
with monarch.throttle('notification', 10, 'promotion') as pipe:
    if pipe: array.append(1)
with monarch.throttle('notification', 10, 'promotion') as pipe:
	if pipe: array.append(2)

print array
# [1]

Development

	$ python setup.py develop

Tests

  $ python setup.py test