Monarch is a throttle for communication via APN & GCM push notifications.
$ pip install monarch-dnd
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]
$ python setup.py develop
$ python setup.py test