百度个人云存储(PCS)Python SDK
Project description
BaiduPCS
百度个人云存储(PCS) Python SDK.
Documentation: http://baidupcs.rtfd.org
Free software: MIT license
Python version: 2.6, 2.7, 3.3
Installation
To install baidupcs, simply:
$ pip install baidupcs
Basic Usage
>>> from baidupcs import PCS
>>> pcs = PCS('access_token')
>>> response = pcs.info()
>>> response
<Response [200]>
>>> response.ok
True
>>> response.status_code
200
>>> response.content
'{"quota":6442450944,"used":5138887,"request_id":1216061570}'
>>> response.json()
{u'used': 5138887, u'quota': 6442450944L, u'request_id': 1216061570}
FAQ
Please visit Wiki .
Changelog
0.3.2 (2014-03-23)
新增:添加 tools.get_new_access_token 用于获取新的 Access Token 和 Refresh Token;
改进:解决上传大文件时的内存占用问题;
变更:去掉 verify=False 。如果有出现 SSLError 请参考 此文 。
0.3.1 (2013-10-25)
改进:上传、下载部分的 api 改用加速域名 c.pcs.baidu.com 和 d.pcs.baidu.com
0.3.0 (2013-09-13)
新增:添加 baidupcs.InvalidToken 异常
0.2.0 (2013-09-12)
新增:支持 Python 3
0.1.0 (2013-09-09)
新增:第一版,封装了所有 文件操作 RESET API .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
baidupcs-0.3.2.zip
(16.9 kB
view details)
File details
Details for the file baidupcs-0.3.2.zip
.
File metadata
- Download URL: baidupcs-0.3.2.zip
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47964f763aa0c00f061ed93c30c23baf4fcd89db5e381d3708aa2f28d800de8b |
|
MD5 | a2717283928ebf4208d1756422d16b68 |
|
BLAKE2b-256 | 4c8eb2ee68a4826479d58def8cb6fc3d6d60c99e1feda0604353a2ea9e0ab7ff |