- Notifications
You must be signed in to change notification settings - Fork16
An asynchronous AWS client on Tornado.
License
NotificationsYou must be signed in to change notification settings
yyuu/botornado
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An asynchronous AWS client on Tornado.
This is a dirty work to move boto onto Tornado ioloop.Only SQS and S3 have been implemented as of 2012/Jan/26.
- boto (https://github.com/boto/boto)
- tornado (https://github.com/facebook/tornado)
almost all options are same with boto other than callback.
sample S3 client.
import os, sysfrom botornado.s3.connection import AsyncS3Connectionclient = AsyncS3Connection(aws_access_key_id=os.getenv('AWS_ACCESS_KEY_ID'), aws_secret_access_key=os.getenv('AWS_SECRET_ACCESS_KEY'))# getting all your bucketsdef cb1(buckets): print 'your buckets:', bucketsclient.get_all_buckets(callback=cb1)
sample SQS client.
import os, sysimport botornado.sqsclient = botornado.sqs.connect_to_region('ap-northeast-1', aws_access_key_id=os.getenv('AWS_ACCESS_KEY_ID'), aws_secret_access_key=os.getenv('AWS_SECRET_ACCESS_KEY'))def cb2(queues): print 'your queues:', queuesclient.get_all_queues(callback=cb2)
MIT
- Copyright (C) 2015 Yamashita, Yuuyamashita@geishatokyo.com
About
An asynchronous AWS client on Tornado.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.