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': 'my-dynamodb-table'}
_ioloop = ioloop.IOLoop.instance()
@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.stop()
_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-1.5.2.tar.gz
(14.2 kB
view hashes)
Built Distribution
Close
Hashes for tornado_aws-1.5.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cc7824a0c2eb4a41341b9f5dff41ac9da9b0da2986f2a4d55542914a6c059b3 |
|
MD5 | ae435ac97e41921f2b8df912dd1e6e05 |
|
BLAKE2b-256 | 3cd299377d3fb9327f3f3b472d4fc774615f6a7ba1c266be3d02b2f0d445ad88 |