def delay(self, seconds):
return gen.Task(ioloop.IOLoop.instance().add_timeout, time.time() + seconds)@gen.coroutine
def foo(self):
yield self.delay(5) from Crypto.Cipher import XOR
key = '123'
cipher = XOR.new(key)
text = 'plaintext'
cipher.encrypt(text) es.create_index(index, {
'index': {
'refresh_interval': -1,
}
})es.refresh(index) SOCIAL_AUTH_ODNOKLASSNIKI_OAUTH2_KEY = '123.'
SOCIAL_AUTH_ODNOKLASSNIKI_OAUTH2_SECRET = 'B36A06...'
SOCIAL_AUTH_ODNOKLASSNIKI_OAUTH2_PUBLIC_NAME = 'CBAKNK..'