Install
pip install qiniufs
Usage
# init
bucket_name = "your-qiniu-bucket-name"
prefix_url = "your-qiniu-domain"
fs = QiniuFS(bucket_name, access_key, secret_key, prefix_url)
# upload
mime = data.mimetype
r, d = fs.upload_data(data, mime=mime)
if r and d:
key = d.get('key')
url = fs.get_url(d.get('key'))
# delete
r = fs.delete_file(key)
if r:
print "success"
Links
Metadata
Release files for qiniufs 1.0.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 | |
|---|---|---|---|
| qiniufs-1.0.2.tar.gz | 2.7 kB | Details |
Release files / qiniufs-1.0.2.tar.gz
| Download URL | qiniufs-1.0.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f978c012045810d4329a3db5b3ee0c8ab9a58cc6c074eac451d105173d479550
|
|
BLAKE2b-256 checksum How to use checksums |
363ff19e90242ac6f18119f1f448ef8b4f9341ddb1043666a61b6e5690692a83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |