Skip to main content

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

Project description

BaiduPCS

Build 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}

Changelog

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.1.zip (14.8 kB view details)

Uploaded Source

File details

Details for the file baidupcs-0.3.1.zip.

File metadata

  • Download URL: baidupcs-0.3.1.zip
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for baidupcs-0.3.1.zip
Algorithm Hash digest
SHA256 4cc13ccf8f30a844bfc211dd46c077bd5ae60a59093ee209643ab4ccbb840d91
MD5 104dc97b6ab47fe8e57bd35912c338e6
BLAKE2b-256 6a2ef3f17b4b4351b7538c52ffa0c19c434e8c0061b38ec17d72d65585207afd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page