Skip to main content

百度个人云存储(PCS)Python SDK

Project description

BaiduPCS

Build Coverage Pypi version Pypi downloads

百度个人云存储(PCS) Python SDK.

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for baidupcs, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size baidupcs-0.3.2.zip (16.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page