For the source code, see GitHub.
OSS Python SDK provides a variety of code samples for your reference or use. The following table describes the content of code samples.
|object_basic.py||Quick start, including creating a bucket, and uploading, downloading, listing, and deleting objects|
|object_extra.py||Upload and manage objects, including managing Object, copying objects, append upload|
|upload.py||Upload objects, including resumable upload and multipart upload|
|download.py||Download objects, including streaming download, range download, resumable download|
|object_check.py||Data verification methods during uploads and downloads, including MD5 and CRC|
|object_progress.py||Upload progress bars and download progress bars|
|object_callback.py||Upload callback in object upload|
|object_post.py||Operations related to form upload|
|sts.py||STS usage, including obtaining the temporary user key for playing a role and using the temporary user key to access the OSS|
|image.py||Operations related to image processing|
|bucket.py||Bucket management, including creating, deleting, and listing buckets, configuring static website hosting, and configuring lifecycle rules.|