authentication for aliyun service
Project description
Aliyun authentication for the awesome requests!
[x] OSS (api-version: 2014-08-28)
[x] ECS (api-version: 2014-05-26)
[ ] RDS (work in process: eta 2014-12)
Play with Oss
Full api document avaiable at: OSS API
>>> import requests
>>> from aliyunauth import OssAuth
>>> req = request.get(
... "http://bucket-name.oss-url.com/path/to/file",
... auth=OssAuth("bucket-name", "access-key", "secret-key")
... )
<Response [200]>
Play with ECS
Full api document avaiable at: ECS API
>>> import requests
>>> from aliyunauth import EcsAuth
>>> req = request.get(
... "https://ecs.aliyuncs.com",
... params=dict(Action="DescribeInstanceTypes"),
... auth=EcsAuth("access-key", "secret-key")
... )
<Response [200]>
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
requests-aliyun-0.1.2.tar.gz
(10.6 kB
view hashes)