pip install RedisScheduler
from RedisScheduler.RedisScheduler import RedisScheduler
Initialise RedisScheduler
listener = RedisScheduler()
Set SQS keys
listener.set_sqs_keys(access_key='', secret_key='', queue_name='emails', region='ap-south-1')
Start Listening
listener.start_listening(handler='sqs')
setter = RedisScheduler()
key = str(int(time()))
value = json.dumps({'time': time(), 'foo':{'bar': 'foo', 'baz': 3, 'bor': {'foo':'bar', 'bar': 'foo'}}})
scheduled_time = '2017-02-25T12:30:00+05:30'
Register your event
setter.register_event(value, scheduled_time)
Modify your registered event
setter.modify_event(key, value, scheduled_time)