Skip to main content

Feature complete upyun REST client

Project description

pyupyun - Feature complete upyun REST client ===

>>> import upyun
>>> client = upyun.UpYun(bucket='bucket', auth=('user', 'pass'), stype=upyun.const.SPACE_TYPE_FILE)
>>> resp = client.put('/test/test.txt', open('/tmp/test.txt'))
>>> print resp.success
True
>>> print resp.url
http://bucket.b0.upaiyun.com/test/test.txt

Compatible with [upyun REST API v1.5](http://static.b0.upaiyun.com/upyun_api_doc.pdf)

Installation

$ pip install pyupyun

Documentation

https://pyupyun.readthedocs.org

Test

To run the tests, first install the dependencies

$ pip install -r requirements.txt

Then fill in all the blank settings(documented) at the beginning part of UpYunTestCase class, which is inside test/test_upyun.py

And run

$ py.test

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

pyupyun-0.1.3.tar.gz (11.1 kB view details)

Uploaded Source

File details

Details for the file pyupyun-0.1.3.tar.gz.

File metadata

  • Download URL: pyupyun-0.1.3.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyupyun-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d02f74c86f184826b0fc884a3f31fb423e13b3e6aa48b2c84ce3f966b72c85dd
MD5 c5d621356121454180b327cb0a2fa580
BLAKE2b-256 81af4c7b9aab5f7e103dcdee69914afd6b0a687c4a7ab2ff68dab6a14bb34193

See more details on using hashes here.

Supported by

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