A low-level Amazon Web Services API client for Tornado
Project description
A low-level Amazon Web Services API client for Tornado
Installation
tornado-aws may be installed via the Python package index with the tool of your choice. I prefer pip:
pip install tornado-aws
Example
import json
import pprint
import tornado_aws
from tornado import gen, ioloop
HEADERS = {'Content-Type': 'application/x-amz-json-1.0',
'x-amz-target': 'DynamoDB_20120810.DescribeTable'}
PAYLOAD = {'TableName': 'prod-us-east-1-history-events'}
@gen.coroutine
def async_request():
client = tornado_aws.AsyncAWSClient('dynamodb')
response = yield client.fetch('POST', '/', headers=HEADERS,
body=json.dumps(PAYLOAD))
x = json.loads(response.body.decode('utf-8'))
pprint.pprint(x)
ioloop.IOLoop.instance().stop()
_ioloop = ioloop.IOLoop.instance()
_ioloop.add_callback(async_request)
_ioloop.start()
Documentation
Documentation is available on ReadTheDocs.
Requirements
Version History
Available at https://tornado-aws.readthedocs.org/en/latest/history.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tornado-aws-0.1.1.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for tornado_aws-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0d603669be453206b18211ea9fbb7125dc777653dd44bbc3141bab20eb6866f |
|
MD5 | 1229ec5f9ec173fd7433a4d16491460b |
|
BLAKE2b-256 | 05644ea369717f29c04214cc5375e38be795681e7b93665c2899cf24f9e438a3 |