Skip to main content

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"

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)

Source distribution for qiniufs 1.0.2
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

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page