Source code

For the source code, see GitHub.

Code samples

OSS Python SDK provides a variety of code samples for your reference or use. The following table describes the content of code samples.

Sample file Content Quick start, including creating a bucket, and uploading, downloading, listing, and deleting objects Upload and manage objects, including managing Object, copying objects, append upload Upload objects, including resumable upload and multipart upload Download objects, including streaming download, range download, resumable download Data verification methods during uploads and downloads, including MD5 and CRC Upload progress bars and download progress bars Upload callback in object upload Operations related to form upload STS usage, including obtaining the temporary user key for playing a role and using the temporary user key to access the OSS Operations related to image processing Bucket management, including creating, deleting, and listing buckets, configuring static website hosting, and configuring lifecycle rules.