Uploader files in a folder to Aliyun OSS
Project description
Uploader all files in a folder to Aliyun OSS
Must load OSS_ACCESS_KEY_ID
and OSS_ACCESS_KEY_SECRET
into environment variables first.
Usage
only executable under if __name__ == "__main__":
if __name__ == "__main__":
from oss2_uploader import folder_uploader
folder_uploader(, ,
folder_path="./test-folder,
bucket_name="test-bucket",
oss_endpoint="oss-ap-southeast-1.aliyuncs.com",
oss_path="pathname",
)
if oss_path
is omitted, will use the folder name as prefix in oss
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oss2_uploader-0.0.8.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for oss2_uploader-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0262d1391e302b51fe729c4174d3fe4ec9cc780a3a05b6a210609fd804c9114 |
|
MD5 | 5e542f612c18402514970b74926a4bf1 |
|
BLAKE2b-256 | cfce55fa54b0c346fa904fd692e523f3cfb19e82fb9dd31c7af1a9fd5cf4f662 |