Skip to content

Monarch is a throttle for jobs/tasks like email, sms or notification.

Notifications You must be signed in to change notification settings

shishirsharma/monarch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Monarch is a throttle for jobs/tasks like email, sms or notification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%