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 .
Metadata
Release files for baidupcs 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| baidupcs-0.3.2.zip | 16.9 kB | Without provenance | Details |
Release files / baidupcs-0.3.2.zip
| Download URL | baidupcs-0.3.2.zip |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47964f763aa0c00f061ed93c30c23baf4fcd89db5e381d3708aa2f28d800de8b
|
|
BLAKE2b-256 checksum How to use checksums |
4c8eb2ee68a4826479d58def8cb6fc3d6d60c99e1feda0604353a2ea9e0ab7ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for baidupcs 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.